Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
- MEU
- <video id="video" controls></video>
- <script>
- if(Hls.isSupported())
- {
- var video = document.getElementById('video');
- var hls = new Hls();
- hls.loadSource('http://54.39.137.181/46/mpegts?token=PYAc5ny--0?');
- hls.attachMedia(video);
- hls.on(Hls.Events.MANIFEST_PARSED,function()
- {
- video.play();
- });
- }
- else if (video.canPlayType('application/vnd.apple.mpegurl'))
- {
- video.src = 'http://54.39.137.181/46/mpegts?token=PYAc5ny--0?';
- video.addEventListener('canplay',function()
- {
- video.play();
- });
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement