开发者

play multiple media element in windows phone 7 silverlight?

i have multiple mediaElement and multiple buttons to play each, howev开发者_StackOverflower , each time al play the different media element though they have different source

how to play the different ones ?


If you want to play multiple elements at once you need to use the SoundEffect class from XNA.


You shouldn't use multiple MediaElements - just use a single one and wire up the different playback controls to it.

If you hit the play button when another source is playing, stop and reset the MediaElement to the new required source.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜