History check
Please confirm that you've checked issues history and you didn't find anything which may solve your issue.
Describe the bug
Whenever the user enters pip (picture-in-picture) mode, we are wanting to post a BetterPlayerEventType.pipStartBetterPlayerEvent to BetterPlayerController's _eventListeners. This is only being posted on Android, not iOS.
To Reproduce
Steps to reproduce the behavior:
Add print statements in a BetterPlayerController listener, so that we can see which BetterPlayerEvent.betterPlayerEventType is being posted.
Go into a video on a pip-enabled iOS device and app.
Enter pip mode.
Exit pip mode.
See that only BetterPlayerEventType.pipStopBetterPlayerEvents are ever being posted to the listener.
History check Please confirm that you've checked issues history and you didn't find anything which may solve your issue.
Describe the bug Whenever the user enters pip (picture-in-picture) mode, we are wanting to post a
BetterPlayerEventType.pipStart
BetterPlayerEvent
toBetterPlayerController
's_eventListeners
. This is only being posted on Android, not iOS.To Reproduce Steps to reproduce the behavior:
BetterPlayerEvent.betterPlayerEventType
is being posted.BetterPlayerEventType.pipStop
BetterPlayerEvent
s are ever being posted to the listener.Example code
Expected behavior Both "pipStart" and "pipStop" would be logged when entering and exiting pip mode.
Screenshots N/a
Flutter doctor [✓] Flutter (Channel stable, 3.0.4, on macOS 12.6.1 21G217 darwin-arm, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 14.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.2) [✓] VS Code (version 1.70.0) [✓] Connected device (3 available) [✓] HTTP Host Availability
• No issues found!
Better Player version
Smartphone (please complete the following information):
Additional context My team was wanting to log analytics anytime a user enters/exits pip mode, and this was a blocker to us completing this task.