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

How to use media:subtitle in RSS feed


First question, I cannot get the playlist RSS feed to also include subtitles or closed captions. Is there a way to have them include it for each video?

Second question if the answer to the first question is "no", how can I manually add the subtitles to the RSS? I have attempted to do this and it works, but only the first video in the playlist captions gets displayed on every video instead of individual caption tracks for their own video.

Here is what I have in my RSS feed.

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Video 3</title>
<link></link>
<description></description>
<itunes:keywords>video3</itunes:keywords>
<item>
<title>fv_unit_1a_video_3.mp4</title>
<description></description>
<pubDate>Tue, 10 Nov 2015 21:13:30 -0000</pubDate>
<guid isPermaLink="false">HAdXtrMQ</guid>
<enclosure url="https://content.jwplatform.com/videos/HAdXtrMQ-xxxxxx.mp4" length="25810014" type="video/mp4" />
<itunes:duration>674</itunes:duration>
<itunes:keywords>fv, unit1, video3</itunes:keywords>
<media:content url="https://content.jwplatform.com/videos/HAdXtrMQ-xxxxxx.mp4" type="video/mp4" duration="674.91" fileSize="25810014">
<media:thumbnail url="https://content.jwplatform.com/thumbs/HAdXtrMQ-720.jpg" />
<media:keywords>fv, unit1, video3</media:keywords>
<media:subtitle url="//content.jwplatform.com/tracks/HAdXtrMQ.vtt" lang="en" kind="captions" default="true" />
<!--THIS IS THE ONLY CAPTION THAT GETS DISPLAYED OVER ALL THE VIDEOS-->
</media:content>
</item>
<item>
<title>fv_unit_1b.mp4</title>
<description></description>
<pubDate>Sun, 18 Oct 2015 23:17:08 -0000</pubDate>
<guid isPermaLink="false">0u3SLaay</guid>
<enclosure url="https://content.jwplatform.com/videos/0u3SLaay-xxxxxx.mp4" length="24903585" type="video/mp4" />
<itunes:duration>491</itunes:duration>
<itunes:keywords>fv, fv-noword, unit1, video1, video2, video3, video4</itunes:keywords>
<media:content url="https://content.jwplatform.com/videos/0u3SLaay-xxxxxx.mp4" type="video/mp4" duration="491.70" fileSize="24903585">
<media:thumbnail url="https://content.jwplatform.com/thumbs/0u3SLaay-720.jpg" />
<media:keywords>fv, fv-noword, unit1, video1, video2, video3, video4</media:keywords>
<media:subtitle url="//content.jwplatform.com/tracks/0u3SLaay.vtt" lang="en" kind="captions" default="true" />
<!--THIS CAPTION NEVER DISPLAYS-->
</media:content>
</item>
</channel>
</rss>

Please excuse my ignorance on this and thank you for your time and patience.
-max

4 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, Max.

Please check out our RSS Playlist Embed support article fore more information on how to do this. Essentially, instead of the following:

<media:subtitle url="//content.jwplatform.com/tracks/0u3SLaay.vtt" lang="en" kind="captions" default="true" />

you would use this:

<jwplayer:track file="//content.jwplatform.com/tracks/0u3SLaay.vtt" kind="captions" label="English" default="true" />

Please let me know if you need any more help or have any other questions.

Thank you!

max

User  
0 rated :

I was using "jwplayer:track' before and Firefox seems to not want to play after clicking the big play button.

example here:
http://butterflyfe.com/assets/

I've tried it on 2 different Firefoxs. one on a mac and another on a pc, same result.

it did start working properly in Firefox when I used:
jwplayer:track

max

User  
0 rated :

ok I think the problem is using file="//content.jwplatform.com...

note the missing https:? I do this so that my SLL doesn't pitch a fit about outside unsecure resources. so I updated my RSS feed to have all https: included.

Results: the captions are all form the first video no matter which video from the playlist you choose from.

I put another example using a javascript playlist. It has the same behavior.

Is there a working example of a playlist that uses captions? The caption example on this website only has one video attached to it.

Thanks again for your time. I appreciate it.

Alex

JW Player Support Agent  
-1 rated :

Hi, Max.

There’s currently a bug in the player when two different playlist items have different captions tracks specified. Try setting the language for the first one to “English” and the second one to “English " (note the extra space in the second one. As of right now, the workaround for the issue is to have the labels for the caption tracks slightly different.

Please let me know if that resolves your issue.

This question has received the maximum number of answers.