This repository has been archived by the owner on Mar 20, 2023. It is now read-only.
forked from leochen1216/video.js-chromecast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·43 lines (41 loc) · 1.81 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!doctype html>
<html>
<head data-cast-api-enabled="true">
<meta charset="utf-8">
<title>videojs-chromecast Demo</title>
<link href="/node_modules/video.js/dist/video-js.css" rel="stylesheet">
<link href="/dist/videojs-chromecast.css" rel="stylesheet">
<script src="/node_modules/video.js/dist/video.js"></script>
<script src="/dist/videojs-chromecast.js"></script>
</head>
<body>
<video class="video-js vjs-default-skin" controls width="640px" height="360px" crossorigin="anonymous"
poster="http://content.bitsontherun.com/thumbs/3XnJSIm4-480.jpg">
<!--<track kind="captions" src="//playertest.longtailvideo.com/captions/bunny-en.srt" srclang="en"-->
<!--label="English"/>-->
<!--<track kind="captions" src="https://www.mynetworktv.com/player/demo.captions.vtt" srclang="en"-->
<!--label="English"/>-->
<!--<track kind="chapters" src="//playertest.longtailvideo.com/chapters/bunny-chapters.vtt">-->
<track kind="captions" src="./node_modules/video.js/dist/examples/shared/example-captions.vtt" srclang="fr"
label="Francais" default/>
<!--Tracks need an ending tag thanks to IE9-->
<track kind="captions" src="./node_modules/video.js/dist/examples/shared/example-captions.vtt" srclang="en"
label="English"/>
<source src="//content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4" type="video/mp4">
<source src="//content.bitsontherun.com/videos/bkaovAYt-27m5HpIu.webm" type="video/webm">
</video>
<ul>
<li><a href="/test/">Run unit tests in browser.</a></li>
</ul>
<!-- chromecast sdk -->
<script src="http://www.gstatic.com/cv/js/sender/v1/cast_sender.js"></script>
<script>
var player = videojs(document.querySelector('video'), {
language: 'fr',
plugins: {
chromecast: {}
}
}).toJSON();
</script>
</body>
</html>