How do you insert markers into a Silverlight LIVE video stream?

The client has a live video stream and a Silverlight player, we would like to add closed captions to the player. However, because of the lag, we need a way to synchronize video and captions.

TimelineMarkers ( http://msdn.microsoft.com/en-us/library/system.windows.media.timelinemarker(VS.95).aspx ) seems like a way to archive this, however I cannot find an example of how to embed them into a live stream.

Im looking for something like http://www.adobe.com/devnet/flashmediaserver/articles/metadata_video_streaming_print.html but for Silverlight.

+5
source share
1 answer

You can dynamically add markers to a media item as follows:

TimelineMarker marker = new TimelineMarker();
marker.Text = "Some caption text...";
marker.Time = new TimeSpan(0, 30, 00);
mediaElement.Markers.Add(marker);  
-2
source

All Articles