简体   繁体   中英

play multiple media element in windows phone 7 silverlight?

i have multiple mediaElement and multiple buttons to play each, however , each time al play the different media element though they have different source

how to play the different ones ?

如果要一次播放多个元素,则需要使用XNA中的SoundEffect类。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM