hcccs Posted March 9, 2015 Share Posted March 9, 2015 HTML5 track doesn't work for me. I have tried for a couple of hours and tested in FF, Chrome and Opera. Here are the code and .vtt file.<!DOCTYPE html><html lang="en"><head> <title>Video HTML5</title><style> video { box-shadow: 6px 6px 3px #888888; border: 1px solid grey; padding: 8px; allowfullscreen: true; } </style> </head><body><div class="video"> <video id="video01" controls preload="auto" width="400" height="300" poster="/pics/dnskrapan1.jpg" data-setup='{"autoplay": false}'> <source src="/movies/testbild.mp4" type="video/mp4"> <source src="/movies/testbild.webm" type="video/webm"> <source src="/movies/testbild.ogv" type="video/ogg"> <track src="/tracks/video.vtt" kind="subtitles" srclang="sv" label="Swedish"> </video></div></body>WEBVTT00:00:01.000 --> 00.00.02.900 A:middle T:50%First line00:00:03.000 --> 00.00.05.900 A:end D:verticalSecond line00:00:06.000 --> 00.00.08.000 A:start T:100% L:0%Third line Link to comment Share on other sites More sharing options...
justsomeguy Posted March 9, 2015 Share Posted March 9, 2015 That looks fine to me, what happens when you load the page? Have you checked your browser's network tab in the developer tools to make sure it's downloading all files? Link to comment Share on other sites More sharing options...
hcccs Posted March 10, 2015 Author Share Posted March 10, 2015 That looks fine to me, what happens when you load the page? Have you checked your browser's network tab in the developer tools to make sure it's downloading all files? Yes, the HTML, poster and vtt file downloaded OK. What else is there to check? Link to comment Share on other sites More sharing options...
justsomeguy Posted March 10, 2015 Share Posted March 10, 2015 Is it downloading and playing the video? Link to comment Share on other sites More sharing options...
hcccs Posted March 10, 2015 Author Share Posted March 10, 2015 Is it downloading and playing the video? Yes, it plays the video with sound. Link to comment Share on other sites More sharing options...
justsomeguy Posted March 10, 2015 Share Posted March 10, 2015 It seems like things should be working, are you sure you're using a browser that supports WebVTT? The video is at least 8 seconds right? Link to comment Share on other sites More sharing options...
hcccs Posted March 10, 2015 Author Share Posted March 10, 2015 It seems like things should be working, are you sure you're using a browser that supports WebVTT? The video is at least 8 seconds right? I use FF 36, Chrome 41 and Opera 27 - latest version and the video is 10 seconds long. Is there anything I can find out about this in Firebug? Link to comment Share on other sites More sharing options...
justsomeguy Posted March 10, 2015 Share Posted March 10, 2015 I'm not sure, I've never tried to debug something like that. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now