I need to play video on my web-page. But I need to deny control. I put \"controls=0\", but player has pause action when I click on it. Can I disable \"pause\" action in YouT
If you're displaying you video through HTML and have access to the CSS class used to display your video, you can do the following.
Your HTML will look something like this:
add a class name of your choice, I choose ytplayer
class="ytplayer"
it will look like the following with my example
Then in your CSS file add rules for modifying your class. I used ytplayer but you may choose a different class name, be sure that it matches the one you used above.
.ytplayer {
pointer-events: none;
position: absolute;
}
That should do it.