English 中文(简体)
传播或使用roid媒体课
原标题:A mutable MediaPlayer class that extends or uses android s MediaPlayer class

I ve been developing a cool game for android recently (http://www.androidzoom.com/android_games/cards_and_casino/the-best-card-game-everyaniv_jrbe_download.html) and I ve been getting requests for a mute button. So I ve implemented all the required UI stuff and I m using the application s sharedPreferences to store the isMuted state, but now I need that functionality in the mediaplayer class. I ve thought about extending it, but since the original mediaplayer has the static create method, overriding it might not be a great solution, the same goes for creating a class that holds a mediaplayer instance and creating my own create method - it s doable but it s dirty. I m sure I m not the first person to encounter this issue, can somebody please share their experience on the matter? Thanks

问题回答

为此,你不能使用媒体。





相关问题
Playing a Sound With Monotouch

No matter what I try (build -> content, NSUrl, filename) I get a null exception : file not found when I try to play a .caf sound file in monotouch. //var path = NSBundle.MainBundle.PathForResource("...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

Play sound in iPhone web app with Javascript?

I m currently creating an iPhone web application for piano chords, and I wanted to add an option that would let the user press a Play button and play the selected chord. However, I m not sure how to ...

热门标签