index.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Video.js Text Descriptions, Chapters &amp; Captions Example</title>
  6. <link href="http://vjs.zencdn.net/7.0/video-js.min.css" rel="stylesheet">
  7. <script src="http://vjs.zencdn.net/7.0/video.min.js"></script>
  8. </head>
  9. <body>
  10. <!-- NOTE: we have to disable native Text Track support for the HTML5 tech,
  11. since even HTML5 video players with native Text Track support
  12. don't currently support 'description' text tracks in any
  13. useful way! Currently this means that iOS will not display
  14. ANY text tracks -->
  15. <video id="example_video_1" class="video-js" controls preload="none" width="640" height="360"
  16. data-setup='{ "html5" : { "nativeTextTracks" : false } }'
  17. poster="http://d2zihajmogu5jn.cloudfront.net/elephantsdream/poster.png">
  18. <source src="//d2zihajmogu5jn.cloudfront.net/elephantsdream/ed_hd.mp4" type="video/mp4">
  19. <source src="//d2zihajmogu5jn.cloudfront.net/elephantsdream/ed_hd.ogg" type="video/ogg">
  20. <track kind="captions" src="captions.en.vtt" srclang="en" label="English" default>
  21. <track kind="captions" src="captions.sv.vtt" srclang="sv" label="Swedish">
  22. <track kind="captions" src="captions.ru.vtt" srclang="ru" label="Russian">
  23. <track kind="captions" src="captions.ja.vtt" srclang="ja" label="Japanese">
  24. <track kind="captions" src="captions.ar.vtt" srclang="ar" label="Arabic">
  25. <track kind="descriptions" src="descriptions.en.vtt" srclang="en" label="English">
  26. <track kind="chapters" src="chapters.en.vtt" srclang="en" label="English">
  27. <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>
  28. </video>
  29. </body>
  30. </html>