• how to disable video forwarding to prevent user from being skipping the video content

    • This topic was modified 2 years, 5 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • You could hide Video controls so User won’t be able to click in the timeline to skip some parts.

    <video nocontrols>
    </video>

    But keep in mind to set autoplay on your video becouse no user can click play button

    <video nocontrols autoplay>
    </video>

    (Autoplay in Chrome only works muted)

    Depends of the library you use to embed videos.

    Usually, you just remove the “controls” tag. Alternatively, you can remove the controls using javascript:

    document.getElementById(‘video-player’).controls = false

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘disable video forwarding’ is closed to new replies.