You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey:-)
first of all, thank you so much for this amazing package.
My question is about integration with video_player service. I have an app that plays videos, and I want to have background control when the user exits from the app. The problem is that the video_player plays the video as an audio stream in the background isolate, but doesn't play the video in the app (I tried to transfer the videoPlayerController to my main code using customAction, but it can't convert this object in the channel, and returns Unhandled Exception: PlatformException(error, Converting object to an encodable object failed: Instance of 'VideoPlayerController', null, null) ).
The only solution that I have been able to do is to use separate video & audio services (with just_audio) to implement this feature, but this solution using two players has performance issues.
The video_player plugin does not support background execution, although I am creating a fork of this project to support it. Once that is done, you should also be able to add background and lock screen controls with audio_service.
Is that still a problem? Do you have another idea to solve it?
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with audio_service.
VideoPlayer integration
Hey:-)
first of all, thank you so much for this amazing package.
My question is about integration with video_player service. I have an app that plays videos, and I want to have background control when the user exits from the app. The problem is that the video_player plays the video as an audio stream in the background isolate, but doesn't play the video in the app (I tried to transfer the videoPlayerController to my main code using customAction, but it can't convert this object in the channel, and returns
Unhandled Exception: PlatformException(error, Converting object to an encodable object failed: Instance of 'VideoPlayerController', null, null)
).The only solution that I have been able to do is to use separate video & audio services (with just_audio) to implement this feature, but this solution using two players has performance issues.
I saw that you wrote here an year ago that:
Is that still a problem? Do you have another idea to solve it?
The text was updated successfully, but these errors were encountered: