play sound of youtube video when app is in background - objective-c

I am using RMYouTubeExtractor to play youtube video inside my app in a MPMoviePlayerController.
I need to play the sound of the video (and show the thumbnail of the video on the lock screen) if the phone is locked or the app is in the background.
Is there any way to do that ?
Please help.
Thank you.

Related

React Native: Continue to play song from other app after my sound finished

I see the following behavior from other apps: I play a Spotify song. I switch to Instagram (Spotify song is still playing in the background). I watch a video on Instagram - the Spotify song stops. If I stop watching the video on Instagram, the Spotify song continues.
With expo-av (Audio.setAudioModeAsync) I see that it's possible to either stop the song in the background or to duck the volume. Is it possible with expo-av to continue the song that was played in the background? How?
Is there any other library that is capable of doing that? How can I tackle this problem?

MPMoviePlayer or AVPlayer play advertisements(ads) in the middle of a video iOS

We are trying to play ads while playing a video using MPMoviePlayer or AVPlayer in our iOS app. What is the best way to achieve this functionality? Can anyone suggest the right way to make it work as YOUTUBE Player which plays ads in the middle of video.
https://github.com/androidios/AVEditDemo is the wonderful example for merging multiple videos in iOS.
Here is apple WWDC video for editing videos in iOS http://adcdownload.apple.com//videos/wwdc_2010__hd/session_407__editing_media_with_av_foundation.mov

Lock screen wallpaper without audio playing in background iphone

I am working on application in which i have to change the lock screen wallpaper without playing audio in background through application programmatically. I have done with audio in background but is there any way i can do through application. There is an app on appstore here is the link https://itunes.apple.com/us/app/sticky-notes-hd-with-bump/id364874025?mt=8 I dont know how it is possible.
Thanks.

Play video as background in iPad App

I have an app and it has a static uimage as the background. To dress up the app, I have a video that would be great as the background but I cannot find any examples of how to play a video as a background view. I have looked at MPMoviePlayerController but I am not sure if it would do what I am expecting.
Anyone have any ideas, or an example of a video as a background to an app?
Thanks
I guess you could just use the MPMoviePlayerController, if you don't do it fullscreen (which is not possible on the iPhone, but it is so on the iPad).
Then you can just put buttons, labels whatever you want on top of that.
Should work fine :)

Objective-C iPhone - Playing youtube within an app

Is it possible to play youtube using the method described in this url
http://iphoneincubator.com/blog/audio-video/how-to-play-youtube-videos-within-an-application
but with a custom button? (i.e in the picture in the link, it's of a baseball game with the play button overlay on top, I want that to be a custom button that I create)
Thank you,
Tee
No, the way that you play YouTube videos is by opening it in the mobile site, which takes you to the embedded QuickTime/YouTube viewer. It doesn't play them in the view of your app like the QTView would on a Mac.