AirenSoft / OvenPlayer

OvenPlayer is JavaScript-based LLHLS and WebRTC Player for OvenMediaEngine.
https://airensoft.com/ome.html
MIT License
506 stars 126 forks source link

Allow disable auto hide when showControls #444

Open vinamartin opened 3 days ago

vinamartin commented 3 days ago

Hi there 👋

I am working on a project where I would like the controls to stay open after another action is performed that calls showControls. I suggest adding an additional optional argument that allows a consumer to disable autoHide when calling showControls.

Usage would be: showControls(true, true) -> Show controls and don't auto hide. showControls(true) -> Show controls and auto hide.

I am happy to take feedback on this! Thank you for considering this.