Skip to main content

Hide Player UI

Updated over 10 months ago

Overview

This API allows developers to programmatically hide or show the UI controls of the Anyclip player as needed.

Method: Hide Player UI Controls

Hide UI Controls

To hide the UI controls of the player, use the following method:

anyclip.widgets[0].hideUI(true);

Show UI Controls

To re-enable the UI controls, use the same method with a false parameter:

anyclip.widgets[0].hideUI(false);

Notes

  • Indexing: The [0] in anyclip.widgets[0] corresponds to the first player widget initialized on the page. Adjust the index to target a specific player among multiple widgets.

  • Use Case: Hiding the UI controls can be useful for creating custom overlays or ensuring an uncluttered viewing experience.

  • Default Behavior: By default, UI controls are visible. Use this method to toggle visibility as needed.

Did this answer your question?