开发者

How to provide a buffer instance as Source in a MediaElement in windows phone 7

I have a buffer object as source which I need to play in windows phone 7(video). Is there a way to provide a buffer source as the input for the MediaElemen开发者_开发问答t either through the xaml or programmatically? thanks.

<MediaElement x:Name="media" Source="xbox.wmv" Width="300" Height="300" />


A mediaElement can have it's "source" specified as a Uri by setting Source directly. You can also call SetSource() to pass it a stream.

If your buffer object is a stream you shoudl call SetSource(). Note that you can implement a custom format using a MediaStreamSource if need be.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜