actualizacion

parent 6d0410f4
<html lang="en"> <html lang="en">
<head> <head>
<meta charset=utf-8/> <meta charset=utf-8/>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script> <link href="https://unpkg.com/video.js/dist/video-js.css" rel="stylesheet">
</head> </head>
<body> <body>
{#<div id='player'> {#<div id='player'>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<!-- Or if you want a more recent canary version --> <!-- Or if you want a more recent canary version -->
<!-- <script src="https://cdn.jsdelivr.net/npm/hls.js@canary"></script> --> <!-- <script src="https://cdn.jsdelivr.net/npm/hls.js@canary"></script> -->
<video id="video"></video> {#<video id="video"></video>
<script> <script>
var video = document.getElementById('video'); var video = document.getElementById('video');
if (Hls.isSupported()) { if (Hls.isSupported()) {
...@@ -33,7 +33,28 @@ ...@@ -33,7 +33,28 @@
video.play(); video.play();
}); });
} }
</script> </script>#}
<script src="https://unpkg.com/video.js/dist/video.js"></script>
<script src="https://unpkg.com/videojs-flash/dist/videojs-flash.js"></script>
<script src="https://unpkg.com/videojs-contrib-hls/dist/videojs-contrib-hls.js"></script>
<script>
(function(window, videojs) {
var player = window.player = videojs('example-video');
// hook up the video switcher
var loadUrl = document.getElementById('load-url');
var url = document.getElementById('url');
loadUrl.addEventListener('submit', function(event) {
event.preventDefault();
player.src({
src: 'http://newbackendcontenidos.gearlabs.cl/videos/0/video.m3u8',
type: 'application/x-mpegURL'
});
return false;
});
}(window, window.videojs));
</script>
</body> </body>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment