HTML5 video - show/hide controls programmatically

后端 未结 3 1916
渐次进展
渐次进展 2020-11-29 03:58

I am looking for a way to show or hide HTML5 video controls at will via javascript. The controls are currently only visible when the video starts to play

Is there a

3条回答
  •  天命终不由人
    2020-11-29 04:30

    CARL LANGE also showed how to get hidden, autoplaying audio in html5 on a iOS device. Works for me.

    In HTML,

    with JS

    
    

    In CSS,

    #hideme {display: none;}
    

提交回复
热议问题