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
39c6458a
Commit
39c6458a
authored
Aug 17, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
actualizacion
parent
6d0410f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
3 deletions
+24
-3
templates/test/index.html.twig
templates/test/index.html.twig
+24
-3
No files found.
templates/test/index.html.twig
View file @
39c6458a
<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>
...
...
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