Alter Closed Captions inside the player?

Apr 10, 2012 at 1:44 PM

Hi,

We have embedded Closed Captions in each Smooth Stream that sometimes have bad layout.
Can we force certain styling like background-color, text-color etc. from inside the player, that overrides the styling from the TTML within the streams?

 

Thanks,

Rob 

Aug 14, 2012 at 6:46 PM

I am curious to know this as well.

Currently we're setting the captions via marker resources (as shown in code below) however we need to override the style.

PlaylistItem pitem = new PlaylistItem
{
	MediaAssetId = "mediaAssetID",
	MediaSource = new Uri("http://az30243.vo.msecnd.net/ss-video/ElephantsDream_H264_EE4_CBR_1080p_Xbox.ism/manifest", UriKind.RelativeOrAbsolute),
	DeliveryMethod = DeliveryMethods.AdaptiveStreaming,
};
pitem.MarkerResources.Add(new MarkerResource { Source = new Uri("http://someurl.com/ttml.xml", UriKind.RelativeOrAbsolute) });

smfPlayer.Playlist.Clear();
smfPlayer.Playlist.Add(pitem);

// Need to override the styles imported from the ttml somewhere here...

Aug 29, 2012 at 1:57 PM

Have you tried modifying the style of the CaptionPresenter?

I think it has bindings to set its style that you should be able to replace by hard values.

Sep 3, 2012 at 10:56 AM

The only way i could see that happening would be if you parsed the TTML yourself, and then force it into some style.

- Loke