Enable the background music back after the app plays a video - ios

I have an app that at the beginning plays a video with AVPlayer. The video is muted. The problem is it stops the music that let say iPhone was playing on iTunes and after the video playback is finished the music does not come back automatically. Is there a way to play the video in my app, during the playback of the video the music on iTunes can be muted which is fine with me, but what I want to achieve is to get the iTunes music back playing when the video is finished without the user's interference.

Related

Audio Recording Stop when play video file in other Apps

We have functionality for background recording in app. It is working fine when app in background mode but it is stop when we open other app and play video file in other app then audio recording stop to recording sound in it.How can we continue recording even without stop recording when other app play video file.
Thanks

Recording video with audio using "AVCaptureSession" while background music is playing (iTunes, Spotify)

I am trying to record videos with audio (using "AVCaptureSession") while background music keeps playing from any music player such as iTunes or Spotify.
The CameraViewController is the the default page, so it would be convenient not to pause the user's background music while he/she records a video.
Really hoping someone can help with this issue.

Is it Possible to play video in UIwebView while app in Background mode?

In my app i have UIWebView in which i had give option to user for watch video from video hosting sites(i.e. Youtube, Vimeo, DailyMotion). When I click Home button the app goes to background mode, the video is paused.
I wants to Play sound of that video while app in background mode.
I had implemented same while play local video in AVPlayer. But till now having no luck to achieve this.
I already refereed below stuff:
--> UIWebView: HTML5 audio pauses in iOS 6 when app enters background
--> Is it possible to play video using Avplayer in Background?
If you guys have any solution with this it will be great help.

CDAudioManager (cocos2d, ios) how to mix game music and background music so that they play at the same time

I am using CDAudioManager and Cocos2d for my iOs game. I need the iOs player music and game music to play at the same time along with the sound effects. Neither of the modes suits me, since they either shut off the background music or game music.
Here is what I am looking to get:
ipod player music playing, launch game. ipod, game music and effects all play together.
upon resume all the channels should work as they did prior to resume.
ipod player music NOT playing, launch game. game music and effects play. as well as after resume.
kAMM_FxOnly, //!Other apps will be able to play audio
---ipod music plays, game effects play. game music doesn't play.
kAMM_FxPlusMusic, //!Only this app will play audio
---ipod music doesnt play
kAMM_FxPlusMusicIfNoOtherAudio
---ipod music plays, game music doesnt play.
In all of the modes I have tries the ipod music doesn't resume after minimizing.
I'm 99% sure that this is not possible. If the iPod player is playing music, and you play game music it'll stop the iPod player. And vice versa.
I have personally never seen (heard) an app that did this, and the general concern of game developers is more along the lines of not interrupting iPod music if it is playing - meaning how to detect if iPod music is playing in order to prevent the game music from playing and interrupting the iPod music (therefore annoying the user).

Stop the sound of a video without stoping the video

I have a video with sounds, and I want to play other sounds on the background. So I want to stop the video music to keep playing just the other music. I have to code for all except to stop the music for the video. Is it possible to build?

Resources