Alter Closed Captions inside the player?

Apr 10, 2012 at 1:44 PM


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?




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("", UriKind.RelativeOrAbsolute),
	DeliveryMethod = DeliveryMethods.AdaptiveStreaming,
pitem.MarkerResources.Add(new MarkerResource { Source = new Uri("", UriKind.RelativeOrAbsolute) });


// 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