VLCKit for iOS stops playing when app is in background

This forum is about all development around libVLC.
norel
New Cone
New Cone
Posts: 7
Joined: 19 Dec 2014 09:41

VLCKit for iOS stops playing when app is in background

Postby norel » 30 Dec 2014 14:18

Hi all,


I try to make VLC to continue playing when my application is in the background but it doesn't work.

I already use AVPlayer and it works fine, but not with VLC.

My info.plist is already configured with the "UIBackgroundModes" value containing "audio", and my code is also using AVAudioSessions :

Code: Select all

[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord error:nil]; [[AVAudioSession sharedInstance] setActive:YES error:nil];
I even tried to include the whole player view controller from the VLC iOS application source code but the playback is still stopped when the application is no longer opened.
edit = the view controller from the vlc application actually works as intended. However, my own code doesn't play in the background when I try to implement VLC manually in my own view controller, same for the sample projects (dropin-player etc.)

Do you have any idea of something I miss?

I am using the latest git version of MobileVlcKit, on the iPhone simulator.

Thanks!

norel
New Cone
New Cone
Posts: 7
Joined: 19 Dec 2014 09:41

Re: VLCKit for iOS stops playing when app is in background

Postby norel » 06 Jan 2015 15:40

Actually the simulator on iOS7 doesn't handle background playing very well. (thanks Apple!)

I used a MobileVLCKit build for iOS devices and it worked perfectly on iPhones/iPad.

Closed thread :)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLCKit for iOS stops playing when app is in background

Postby Jean-Baptiste Kempf » 06 Jan 2015 16:29

Interesting to know.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 31 guests