Skip to main content

clickToPlay

Typeboolean
Defaulttrue
Added inv4.0.0

When you click on the canvas, pause if the video is playing, or play if it is paused.

Example

Below is an example of disabling clickToPlay.

import { ControlBar } from "@egjs/view360";

new ControlBar({
clickToPlay: false
})