How to remove HTML5 video player navigation button

17,925

You can disabled controls via Javascript:

document.getElementById('video-player').controls = false

Or simply remove controls attribute:

<video id='video-player' autoplay="autoplay" loop preload="metadata">
    <source src="Video/1.MP4" type="video/mp4">
</video>
Share:
17,925
Pritish kumar
Author by

Pritish kumar

Updated on June 05, 2022

Comments

  • Pritish kumar
    Pritish kumar almost 2 years

    I am using HTML5 video player to play video constantly.Every thing is fine except the video navigation button displaying at the last of the video screen as soon as the mouse cursor moves over the video. I want to remove or hide it but not getting how to do it .. Here is the HTML for the Video used..

    <video id='video-player' autoplay="autoplay" loop  preload='metadata' controls>
    <source src="Video/1.MP4" type="video/mp4">
    </video>
    

    Please help me to remove the navigation bar from the last ..Thanks..