-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(android): add onControlsVisiblityChange
#3925
Conversation
@freeboub, any idea how I can fix this ESLint error? I've tried a few approaches |
@ashnfb did you try : "yarn lint" ? |
I added 1 minor comment, but code looks good ! Thank you |
onControlsVisiblityChange
@KrzysztofMoch @freeboub, corrections made. I haven't been involved in this project in a while, may I ask what steps are next? |
If all checks will be green, and @freeboub will approve it (as he requested change) - we can go with it and merge it |
Summary
A callback event for when the Android Exoplayer controls show and hide.
Issue request: #2686
Motivation
Since the Android video player LegacyControls have limited controls (play, pause, rewind, forward, scrubber, etc., and do not provide an interface for changing the Captions or Audio of a stream, or implementing additional buttons), having an event allows a consumer class to overlay buttons / information at the same time as controls are shown.
Changes
Adds onControlsVisibilityChange to VideoEventEmitter
Adds a visibility listener to the playerControlView in ReactExoplayerview to trigger the new event
Not available for iOS, due to no public methods for monitoring native control visibility
Test plan