Skip to content
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

[BUG]: [Android] How to hide the video controls by default, and show it when user taps the video player #4406

Open
cool725 opened this issue Feb 5, 2025 · 7 comments
Labels
Accepted Issue is confirmed and accepted by maintainers team feature Platform: Android

Comments

@cool725
Copy link

cool725 commented Feb 5, 2025

Version

6.10.0

What platforms are you having the problem on?

Android

System Version

12

On what device are you experiencing the issue?

Real device, Simulator

Architecture

Old architecture

What happened?

Android: How to hide the video controls at first, show it when user taps the video player for the first time.
It works fine on iOS.

Reproduction Link

No response

Reproduction

If you play a video, video controls will be shown by default on Android. And it disappears after about 5 seconds.
By default, I want to hide this video controls. Only show it when user taps the video player, exactly same as iOS.

@cool725 cool725 added the bug label Feb 5, 2025
Copy link

github-actions bot commented Feb 5, 2025

Previous bot comment (click to expand)

Thank you for your bug report. We will review it and get back to you if we need more information.

There is a newer version of the library available. You are using version 6.8.0, while the latest stable version is 6.10.0. Please update to the latest version and check if the issue still exists.

Note: If the issue still exists, please update the issue report with the latest information.

Copy link

github-actions bot commented Feb 5, 2025

Thank you for your bug report. We will review it and get back to you if we need more information.

@cool725
Copy link
Author

cool725 commented Feb 5, 2025

Is there any this kind of property hideControlsOnStart?

@freeboub
Copy link
Collaborator

freeboub commented Feb 8, 2025

you need to develop it ...

@freeboub freeboub added feature Accepted Issue is confirmed and accepted by maintainers team and removed bug Repro Provided Waiting for Review labels Feb 8, 2025
@cool725
Copy link
Author

cool725 commented Feb 9, 2025

you need to develop it ...

Hi @freeboub Thanks for your reply.
I tried to develop it, but it doesn't work as intended.
I would deeply appreciate it if you can guide me how to do it.
Thanks!

@freeboub
Copy link
Collaborator

freeboub commented Feb 15, 2025

@cool725 did you try to remove this call in onEvents ?

                    // Setting the visibility for the playerControlView
                    if (playerControlView != null) {
                        playerControlView.show();
                    }

@cool725
Copy link
Author

cool725 commented Feb 18, 2025

Hi @freeboub I am not sure where to put this code. Could you please explain in more detail?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue is confirmed and accepted by maintainers team feature Platform: Android
Projects
Status: To Triage
Development

No branches or pull requests

2 participants