Hi there, I’m trying to use FMOD with the OS’s MPMoviePlayerController class and am hitting some difficulties.
Why do this instead of playing audio from inside the video file? In my case I need to have multiple audio tracks that can be switched by the user in realtime and MPMoviePlayerController does not support that functionality.
I took the Apple provided "MoviePlayer" sample ([url:1y3nr9e6]http://developer.apple.com/iphone/library/samplecode/MoviePlayer_iPhone/[/url:1y3nr9e6]) and incorporated some simple FMOD code to play a looping sound.
If I initialize FMOD and play the sound before playing the video, FMOD is cutoff when the video begins.
If I initialize FMOD and play the sound after the video is already playing, the video blackscreens and sound continues.
Has anyone else tried this? Any suggestions for things to try? Thanks.
- Guile0 asked 9 years ago
Thanks for the quick response. In Apple’s MPMoviePlayerController API there is no way to turn off sound.
Correct, the video I am using already has no sound, so it looks like this is currently not going to be possible.
Does anyone know of another video playback solution on the iPhone with more configuration options than MPMoviePlayerController?
This comes down to audio sessions, FMOD runs in an audio session, so does the movie player. When the movie player starts it interrupts FMOD, in this situation we must silence our playback, when the movie is complete it should relinquish the audio session back to us (although currently that is broken).
I am not overly familiar with the movie player API, but I would look for some way to disable sound while continuing video. Or play a movie that has no sound (this might be what you are doing already). Basically if you can tell the movie player it has nothing to do with sound, it probably won’t interfere with FMOD.
If the movie player API doesn’t have the ability to disable sound (requiring no audio session activation) you may need to send a feature request to Apple.
Please login first to submit.