Jump to content

HTML5 track doesn't work

Recommended Posts

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 --> A:middle T:50%First line00:00:03.000 --> A:end D:verticalSecond line00:00:06.000 --> A:start T:100% L:0%Third line
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?

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?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...