Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Updated 29-Aug-12 6:39am
v2

1 solution

HTML
<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[^]
 
Share this answer
 
Comments
footballpardeep 29-Aug-12 13:05pm    
I have Google chrome 21.0.1180.60 will it work
Shelby Robertson 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900