Sign in to follow this  
Followers 0
hcccs

HTML5 track doesn't work

8 posts in this topic

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Is it downloading and playing the video?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

I'm not sure, I've never tried to debug something like that.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0