Mediaelement仅播放10(十)个声音。 [英] Mediaelement only play 10(ten) sounds only.

查看:78
本文介绍了Mediaelement仅播放10(十)个声音。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我制作了一个小音板,我使用了mediaelement和wma, 在应用程序中添加了15个按钮,然后触摸按钮并使用mediaelement播放音频wma文件。问题是前10个声音文件播放没问题,但在10个播放文件之前
其他文件什么都不玩,什么事情发生?媒体元素的限制是一个10页的音频?

Hi guys, i made a small soundboard, i use the mediaelement and wma,  added a 15 buttons in the app and touch a button and play audio wma file with the mediaelement. The problem is a the first 10 soundfiles play OK, but before 10 play files others files don´t play nothing, whats happend? the limit of media element is a 10 audio for page?

抱歉,我的英文不好。谢谢。

Sorry my bad english. Thank You.

推荐答案

前段时间我发现了同样的问题。您正在添加的解决方法我在同一页面上猜测10个媒体元素或15个MediaElement。更好的方法是你只需在该页面中添加一个MediaElement并在每个按钮上单击您只需设置
的来源您的MediaElement并播放该MediaElement。它更好的方法,而不是在XAML中为同一目的添加多个MediaElements,也可以由Single MediaElement完成。

I have observed same problem some time ago. The Work Around is You Are Adding I Guess 10 Media Elements or 15 MediaElement On Same Page. The Better Approach is You Just Add One MediaElement in That Page And On Each Button Click You Just Set The Source of Your MediaElement And Play That MediaElement. Its Better Approach Rather Than adding multiple MediaElements For Same Purpose in XAML that can be done by Single MediaElement too.


这篇关于Mediaelement仅播放10(十)个声音。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆