Relative Content

Tag Archive for iosfluttervideo-playeraudio-service

How to prevent video player from pausing when app goes to background on iOS?

I am trying to integrate audio_service package with video_player package to implement background audio in my app. On Android everything works fine but on iOS when app goes to background the video pauses for some reason (on emulator it just pauses and can be resumed, on physical device it pauses and then process is being instantly killed by the system). How can I prevent this pause from happening so that my audio keeps playing in the background as it does on Android.