Code snippet
<video class="video-js vjs-fluid" controls autoplay playsinline>Generally, we recommend avoiding autoplay. However, if you insist on autoplay functionality, thr Nuevo plugin features automatic detection of autoplay support in the browser.
- If autoplay is supported - the player will play
- If autoplay is allowed only when <video> or <audio> is muted - the player will play muted content, muted button will appear over player to easily unmute content.
- If muted autoplay fails - the player will be paused and big play icon displayed.
When the player starts playback muted, a big mute icon appears by default, centered on the player. If you prefer not to show such icon, you can set appropriate nuevo plugin option.
Code snippet
const player = videojs("my_player_id");player.nuevo({automuteButton:false});Code snippet
const player = videojs("my_player_id", {automuteButton:false});For the live video it is suggested to set video attribute "preload="auto".