Click here to Skip to main content
11,635,656 members (79,030 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Video HTML5 Browser
I am trying to implement video tag, and i want to use track. But as no browser support this track tag , so how will i implement it, as if iy will not working on my browser , how will i check whether it is working correctly or not.
Posted 29-Aug-12 6:37am
Edited 29-Aug-12 6:39am
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

<video width="320" height="240" controls="controls">
  <source src="forrest_gump.mp4" type="video/mp4" />
  <source src="forrest_gump.ogg" type="video/ogg" />
  <track src="subtitles_en.vtt" kind="subtitles" srclang="en">
  label="English">
  <track src="subtitles_no.vtt" kind="subtitles" srclang="no">
  label="Norwegian">
</track></track></video>

As for browser support, the Mozilla Developer Network claims there is partial support in Chrome 16. https://developer.mozilla.org/en-US/docs/HTML/HTML_Elements/track?redirectlocale=en-US&redirectslug=HTML%2FElement%2Ftrack[^]
  Permalink  
Comments
footballpardeep at 29-Aug-12 13:05pm
   
I have Google chrome 21.0.1180.60 will it work
Shelby Robertson at 29-Aug-12 13:20pm
   
Try it. If Mozilla is to be believed, anything above version 16 should have at least partial support.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 8,861
1 Sergey Alexandrovich Kryukov 8,459
2 Mika Wendelius 6,849
3 F-ES Sitecore 2,354
4 Suvendu Shekhar Giri 2,270


Advertise | Privacy | Mobile
Web03 | 2.8.150728.1 | Last Updated 29 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100