Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Caption align not working


Hi,

i am using jwplayer and add vtt file but in video player caption align not show according to left right middle. can u help me about this.

my vtt file content here:-
c3
00:00:11.000 --> 00:00:15.000 position:5% align:start
This cue is positioned at the left side of the video.

c4
00:00:16.000 --> 00:00:20.000 position:95% align:end
And this one ate the right side.

i also change and check align:start to align left or align:end to align right but always show in middle.

Thanks
Ramesh

6 Community Answers

George

JW Player Support Agent  
0 rated :

Hello Ramesh,

JW Player does not currently support the webvtt attributes you are asking for as standard captions. They are currently only supported in HTML5 video tags.

However I did put together a small hack here:
http://qa.jwplayer.com/~george/webvtt.html

Totally not the way to do it, but just as demo, it was fun to build. Enjoy!

Let me know if you need anything else.

ramesh

User  
0 rated :

Hi thanks for reply me. your demo code for with mp4 but its not working with mp3 file.

Can u explain. how we do with mp3 file.

Thanks
Ramesh

George

JW Player Support Agent  
0 rated :

My demo illustrated the position:5% align:start capabilities of HTML5, I’m too sure what you’re trying to build. Could you please send me the test page that is having the issue? Keep it as simple as possible, just the jw player embed.

ramesh

User  
0 rated :

thanks for reply me.

i send u test page url.
http://demo.cognizsoft.com/demo/my.php

On this page first video player working fine with caption and .mp4 file but in second video caption not show. in second video i use .mp3 file.

Can u explain me how we show caption with mp3 file in proper alignment.

Thanks
Ramesh

George

JW Player Support Agent  
0 rated :

I believe you should stick to supported file types:
Caption Docs:
http://support.jwplayer.com/customer/en/portal/articles/1482067-styling-captions-for-fcc-compliance
http://support.jwplayer.com/customer/en/portal/articles/1407438-adding-closed-captions

Here’s a test page using mp3 and dfxp subtitles.
http://qa.jwplayer.com/~george/dfxp.html

fsanchezpriego N/A

User  
0 rated :

George, your little hack works great, but when I try to use it with my jwplayer in local, with my key, it appears invalid license key error message.

link http://www.dokumentalniefilmi-besplatno.com/player5.php

How can this small hack can be used in local, with your jwplayer platform library jwplayer?

It would be very interestign to align left or right the captions for 3D videos, which could be seen with jw player with a VR cardboard. The captions in the center would not be useful

This question has received the maximum number of answers.