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.
精彩评论