I have some questions about Audio muted after getting any call on iOS.
First, I implemented a sound that plays when the mute button is turned on
Related
On opening the app, the app will play a muted video, till here it's perfectly fine. But when I play music in any audio supported Apllication in the background, and then I try to open my Flutter app, audio supported Apllication pauses the background music. So all I want is, to keep audio supported Apllication playing music in background while the video in my app keeps playing muted.
I have problem into mute and sound , I have Played the video in iPad using URL then using button I need to mute the audio of that video player.Please help me out dis Problem Thanks.
When playing a movie through a UIWebView, and then outputting to AppleTV via Airplay, turning off iPhone screen stops playback. Why?
Anyone know how to solve this so AirPlay continues when the screen is off with my app?
Doing these two things solved it for me:
Airplay of audio using AVPlayer does not work in the background (Put the key "audio" as the key in the XML of the property list)
UIWebView: HTML5 audio pauses in iOS 6 when app enters background
Looks like it works for video too!
I have a custom video player that works very well. I discovered a problem and would like to know if this is a problem of iOS or is there a way to solve. When I'm watching and listening to the video with headphones on and take off my headphones, the sound continues, but the video freezes.
I am using MPMoviePlayerController for video and AVAudioPlayer for audio.
Tks for help
You can get a callback when headphones are unplugged from the device. This might be a good starting point.
Check out this SO question: Headphones unplugged during playback cause bug on iPhone app
When my app is backgrounded, the audioplayer continues to play, but i cant hear any sound. When i open my app again, it plays from the point where it would have been had the app not been backgrounded at all. This shows that the app is playing in the background though it is not audible. Why could this be happening?
I have set the audio key in the info.plist for the UIBackgroundModes array. Also my audioplayer is set to the "AVAudioSessionCategoryPlayback" category with an override to allow for audio mixing. So what am i doing wrong that im unable to hear the audio even though it is playing in the background?
Could this be an issue with the simulator alone as i have not been able to test this on a device with iOS4 so iv only been testing it on the simulator.
It's an issue with the simulator most likely. I implemented what you stated and it works just fine on the device: Entering background on iOS4 to play audio