Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
musica_listas_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
musica_listas_backend
Commits
46e131b1
Commit
46e131b1
authored
Aug 20, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prueba plugins
parent
86c51e7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
21 deletions
+39
-21
templates/test/index.html.twig
templates/test/index.html.twig
+39
-21
No files found.
templates/test/index.html.twig
View file @
46e131b1
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment