Custom MediaStreamSource implementation

As you know, you can use MediaElement.SetSource(Stream) to set the media source to a stream, like a file on your local hard drive, now assume that the video consists of several streams. For example, a video about 1 hour long is divided into 6 ten-minute segments. Do I need to implement my own MediaStreamSource?

Note. I am developing a Silverlight OOB application.

Any help would be greatly appreciated.

+4
source share
2 answers

You probably have no more problems, but anyway: I think you need to implement the source if you want to smooth the details together. In practice, however, I successfully used two media elements that quickly mixed together to achieve a reasonable transition. This is not ideal, but the implementation of the source seemed a little more complicated.

If you have a stub implementation for the source or find a better solution, I will still be interested.

0
source

If you do not want to pre-buffer everything before playing, you definitely need to implement the source of the media history and continue writing bytes to MediaStream

0
source

All Articles