Open AlexV525 opened 1 month ago
try master branch
Error (Xcode): ../../../../.pub-cache/git/fvp-8281ae0ab6057e6665d181fb7ed1ebd99da06f71/lib/src/video_player_mdk.dart:344:26: Error: The method 'setMixWithOthers' isn't defined for the class 'FvpPlatform'.
How about Android and other platforms (I know that macOS has nothing to do with the playback mode support)?
Error (Xcode): ../../../../.pub-cache/git/fvp-8281ae0ab6057e6665d181fb7ed1ebd99da06f71/lib/src/video_player_mdk.dart:344:26: Error: The method 'setMixWithOthers' isn't defined for the class 'FvpPlatform'.
i forgot to commit some files. try master branch again
i forgot to commit some files. try master branch again
The code is working.
How about Android and other platforms (I know that macOS has nothing to do with the playback mode support)?
android should be similar. i guess desktop platforms have no such feature
So I guess the remain thing is to implement this with the Android platform.
So I guess the remain thing is to implement this with the Android platform.
yes, but i don't have enough time recently
Is the repo open for pull requests? If so I can try to add the functionality.
yes
I took some investigation with Android. video_player
deals with the audio session within the ExoPlayer
, but we don't seem to have such an interface to control that behavior. The video's audio track is always mixed with other audio on Android, so we should implement the contrary. I don't think there is anything I can do further.
same as #72, audio_session package support this feature
same as #72, audio_session package support this feature
Absolutely! But it would be better to perform the same behavior as the video_package
since the library declares itself as a plugin set.
yes, so that issue is still open. we can use audio_session's implementation
Describe the bug
When using
fvp
on iOS, settingmixWithOthers
in theVideoPlayerController
will still cause the background playback to stop when calling theVideoPlayerController.initialize
orVideoPlayerController.play
.Also, playing background audio when the video is playing will cause the video to run into a very slow framerate.
Logs mdk.log