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
1a1760c9
Commit
1a1760c9
authored
Aug 20, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prueba thumbnail
parent
919eee69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
13 deletions
+42
-13
templates/test/index.html.twig
templates/test/index.html.twig
+42
-13
No files found.
templates/test/index.html.twig
View file @
1a1760c9
...
...
@@ -4,8 +4,10 @@
<meta
charset=
utf-8/
>
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"
></script>
{#Librerias necesarias para utilizar video.js#}
<link
href=
"
{{
asset
(
'videojs-plugins/thumbnails/videojs-thumbnails.min.css'
)
}}
"
rel=
"stylesheet"
>
<link
href=
"//vjs.zencdn.net/7.3.0/video-js.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'
)
}}
"
>
<script
src=
"//vjs.zencdn.net/7.3.0/video.min.js"
></script>
</head>
...
...
@@ -20,19 +22,20 @@
controls
preload=
"auto"
poster=
""
{#por si se requiere cargar una imagen de preview en el video, sino se vera en negro#}
>
>
<p
class=
"vjs-no-js"
>
{#fallback en caso de que el navegador no posea javascript...#}
Para ver este video, por favor habilita javascript en tu navegador o considera
actualizar a la ultima version que
Para ver este video, por favor habilita javascript en tu navegador o considera
actualizar a la ultima version que
<a
href=
"https://videojs.com/html5-video-support/"
target=
"_blank"
>
soporte HTML 5
</a>
</p>
</video>
<script
src=
"
{{
asset
(
'videojs-plugins/thumbnails/videojs-thumbnails.min.js'
)
}}
"
></script>
<link
href=
"
{{
asset
(
'videojs-plugins/overlay/videojs-overlay.min.js'
)
}}
"
>
<script>
//uri codificada
var
dmUri
=
"
{{
url
}}
"
;
...
...
@@ -46,7 +49,7 @@
type
:
'
application/x-mpegURL
'
,
src
:
atob
(
dmUri
)
});
///reproduccion de video
this
.
play
();
...
...
@@ -55,13 +58,39 @@
videojs
.
log
(
'
Video terminado...
'
);
});
});
player
.
overlay
({
content
:
'
Default overlay content
'
,
debug
:
true
,
overlays
:
[{
content
:
'
The video is playing!
'
,
start
:
'
play
'
,
end
:
'
pause
'
},
{
start
:
0
,
end
:
15
,
align
:
'
bottom-left
'
},
{
start
:
15
,
end
:
30
,
align
:
'
bottom
'
},
{
start
:
30
,
end
:
45
,
align
:
'
bottom-right
'
},
{
start
:
20
,
end
:
'
pause
'
}]
});
player
.
thumbnails
(
{
width
:
50
,
spriteUrl
:
'
http://placehold.it/350x150
'
,
stepTime
:
2
,
}
{
width
:
50
,
spriteUrl
:
'
http://placehold.it/350x150
'
,
stepTime
:
2
,
}
</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