Hello i have this code
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Channel1</title>
<link href="https://unpkg.com/video.js/dist/video-js.css" rel="stylesheet">
<script src="https://unpkg.com/video.js/dist/video.js"></script>
<script src="https://unpkg.com/videojs-contrib-hls/dist/videojs-contrib-hls.js"></script>
</head>
<body>
<video id="my_video_1" class="video-js vjs-fluid vjs-default-skin" controls preload="auto"
data-setup='{}'>
<source src="http://example.com/example.com/dir/url.txt" type="application/x-mpegURL">
</video>
<script>
var player = videojs('my_video_1');
player.play();
</script>
</body>
</html>
I have to insert a url. But i want to read a txt file in the same local location which contains the url..
I tried
$html = file_get_contents("link.txt");
But php doesn't work on html file...
How do i do that?
Thanks alot