Hide the native controls completely, in both normal and full-screen mode:
video::-webkit-media-controls-enclosure {
display:none !important;
}
Set the z-index
for the custom controls to be equal to or higher than 2147483647
:
#video-controls {
z-index: 2147483647;
}
Source: Hiding Native HTML5 Video Controls in Full-Screen Mode
Note: if you are following the tutorial, then you need to also set position
of custom controls to make it visible:
#video-controls {
z-index: 2147483647;
position: absolute; /* top left corner, change it if you like */
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…