prueba plugins

parent 86c51e7c
......@@ -7,7 +7,7 @@
<link href="{{asset('videojs/video.min.css')}}" rel="stylesheet">
<link href="{{asset('videojs-plugins/thumbnails/videojs-thumbnails.min.css')}}" rel="stylesheet">
<link href="{{asset('videojs-plugins/overlay/videojs-overlay.css')}}">
</head>
<body>
......@@ -39,28 +39,45 @@
<script>
//uri codificada
var dmUri = "{{url}}";
//Para generar el reproductor de forma responsive...
var options = {"fluid": true};
// Seteo del reproductor y carga de url...
var player = videojs('dg-vid-01', options, function onPlayerReady() {
videojs.log('Reproductor Cargado...');
//carga url y content type hls
this.src({
type: 'application/x-mpegURL',
src: atob(dmUri)
});
///reproduccion de video
this.play();
/*
//Para generar el reproductor de forma responsive...
// Seteo del reproductor y carga de url...
var player = videojs('dg-vid-01', options, function onPlayerReady() {
videojs.log('Reproductor Cargado...');
//carga url y content type hls
this.src({
type: 'application/x-mpegURL',
src: atob(dmUri)
});
///reproduccion de video
this.play();
//evento que escucha cuando el video del reproductor actual termina...
this.on('ended', function () {
videojs.log('Video terminado...');
});
});*/
//evento que escucha cuando el video del reproductor actual termina...
this.on('ended', function () {
videojs.log('Video terminado...');
});
});
(function (window, videojs) {
window.player = player.overlay({
var player = window.player = videojs('dg-vid-01', options, function onPlayerReady() {
videojs.log('Reproductor Cargado...');
//carga url y content type hls
this.src({
type: 'application/x-mpegURL',
src: atob(dmUri)
});
///reproduccion de video
this.play();
//evento que escucha cuando el video del reproductor actual termina...
this.on('ended', function () {
videojs.log('Video terminado...');
});
});
player.overlay({
content: 'Default overlay content',
debug: true,
overlays: [{
......@@ -84,7 +101,8 @@
end: 'pause'
}]
});
}(window, window.videojs));
}(
window, window.videojs));
</script>
</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