2016-03-25 20:16:56 +02:00
<!DOCTYPE html>
2016-04-29 00:29:40 +02:00
<html lang="en">
2016-03-25 20:16:56 +02:00
<head>
<meta charset="utf-8" />
<title>Video.js Text Descriptions, Chapters & Captions Example</title>
<!-- Load the source files -->
2018-01-30 18:17:41 +02:00
<link href="../dist/video-js.css" rel="stylesheet" type="text/css">
2017-06-27 01:51:05 +02:00
<script src="../dist/video.js"></script>
2016-03-25 20:16:56 +02:00
</head>
<body>
2017-05-11 23:16:12 +02:00
2016-03-25 20:16:56 +02:00
<!-- NOTE: we have to disable native Text Track support for the HTML5 tech,
since even HTML5 video players with native Text Track support
don't currently support 'description' text tracks in any
2017-05-11 23:16:12 +02:00
useful way! Currently this means that iOS will not display
ANY text tracks -->
2018-10-10 21:30:20 +02:00
<video id="example_video_1" class="video-js" controls preload="none" width="640" height="360"
2017-05-11 23:16:12 +02:00
data-setup='{ "html5" : { "nativeTextTracks" : false } }'
2020-11-16 22:13:27 +02:00
poster="//d2zihajmogu5jn.cloudfront.net/elephantsdream/poster.png">
2017-05-11 23:16:12 +02:00
2017-02-27 20:53:32 +02:00
<source src="//d2zihajmogu5jn.cloudfront.net/elephantsdream/ed_hd.mp4" type="video/mp4">
<source src="//d2zihajmogu5jn.cloudfront.net/elephantsdream/ed_hd.ogg" type="video/ogg">
2016-03-25 20:16:56 +02:00
2018-03-23 19:25:12 +02:00
<track kind="captions" src="../docs/examples/elephantsdream/captions.en.vtt" srclang="en" label="English" default>
<track kind="captions" src="../docs/examples/elephantsdream/captions.sv.vtt" srclang="sv" label="Swedish">
<track kind="captions" src="../docs/examples/elephantsdream/captions.ru.vtt" srclang="ru" label="Russian">
<track kind="captions" src="../docs/examples/elephantsdream/captions.ja.vtt" srclang="ja" label="Japanese">
<track kind="captions" src="../docs/examples/elephantsdream/captions.ar.vtt" srclang="ar" label="Arabic">
2016-03-25 20:16:56 +02:00
2018-03-23 19:25:12 +02:00
<track kind="descriptions" src="../docs/examples/elephantsdream/descriptions.en.vtt" srclang="en" label="English">
2016-03-25 20:16:56 +02:00
2018-03-23 19:25:12 +02:00
<track kind="chapters" src="../docs/examples/elephantsdream/chapters.en.vtt" srclang="en" label="English">
2016-03-25 20:16:56 +02:00
2020-11-16 22:13:27 +02:00
<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">supports HTML5 video</a></p>
2016-03-25 20:16:56 +02:00
</video>
2017-05-11 23:16:12 +02:00
2016-03-25 20:16:56 +02:00
</body>
</html>