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
5cdff7d4
Commit
5cdff7d4
authored
Aug 19, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prueba command conversion 3
parent
2e789058
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
16 deletions
+34
-16
templates/test/index.html.twig
templates/test/index.html.twig
+34
-16
No files found.
templates/test/index.html.twig
View file @
5cdff7d4
...
@@ -3,37 +3,55 @@
...
@@ -3,37 +3,55 @@
<title>
Video
</title>
<title>
Video
</title>
<meta
charset=
utf-8/
>
<meta
charset=
utf-8/
>
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"
></script>
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"
></script>
{#Librerias necesarias para utilizar video.js#}
<link
href=
"//vjs.zencdn.net/7.3.0/video-js.min.css"
rel=
"stylesheet"
>
<link
href=
"//vjs.zencdn.net/7.3.0/video-js.min.css"
rel=
"stylesheet"
>
<script
src=
"//vjs.zencdn.net/7.3.0/video.min.js"
></script>
<script
src=
"//vjs.zencdn.net/7.3.0/video.min.js"
></script>
</head>
</head>
<body>
<body>
{#<div id='player'>
<video width="800" height="800" src="http://newbackendcontenidos.gearlabs.cl/videos/0/video.m3u8" controls autoplay>
</video>
</div>#}
<h1>
Video
</h1>
<h1>
Video
</h1>
<video
{#estructura de generacion necesaria para utilizar el reproductor de la libreria...#}
<video
width=
"800"
height=
"800"
width=
"800"
height=
"800"
id=
"
my-player
"
id=
"
dg-vid-01
"
class=
"video-js"
class=
"video-js"
controls
controls
preload=
"auto"
preload=
"auto"
poster=
"//vjs.zencdn.net/v/oceans.png"
poster=
""
{#por si se requiere cargar una imagen de preview en el video, sino se vera en negro#}
data-setup=
'{"fluid": true}'
>
<
p
class=
"vjs-no-js"
>
<source
src=
"http://newbackendcontenidos.gearlabs.cl/videos/0/video.m3u8"
type=
"application/x-mpegURL"
></source>
{#fallback en caso de que el navegador no posea javascript...#}
{#<source src="//vjs.zencdn.net/v/oceans.mp4" type="video/mp4"></source>
Para ver este video, por favor habilita javascript en tu navegador o considera
<source src="//vjs.zencdn.net/v/oceans.webm" type="video/webm"></source>
actualizar a la ultima version que
<source src="//vjs.zencdn.net/v/oceans.ogv" type="video/ogg"></source>#}
<p
class=
"vjs-no-js"
>
To view this video please enable JavaScript, and consider upgrading to a
web browser that
<a
href=
"https://videojs.com/html5-video-support/"
target=
"_blank"
>
<a
href=
"https://videojs.com/html5-video-support/"
target=
"_blank"
>
s
upports HTML5 video
s
oporte HTML 5
</a>
</a>
</p>
</p>
>
</video>
</video>
<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
();
//evento que escucha cuando el video del reproductor actual termina...
this
.
on
(
'
ended
'
,
function
()
{
videojs
.
log
(
'
Video terminado...
'
);
});
});
</script>
</body>
</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