Hi Zhiming,
please check the video for the issue I experienced when playing video with cog.
cog --platform=drm --platform-params="renderer=gles" test3.html
Again a very simple html page called test3.html to test:
Please also download the video resource referenced by test3.html.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Video + Ticker</title>
<style>
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: black;
position: relative;
font-family: Arial, sans-serif;
}
/* Video fills the screen */
video#bgvid {
width: 100%;
height: 100%;
object-fit: cover; /* or contain if you want letterbox */
z-index : 100;
}
</style>
</head>
<body>
<video id="bgvid" src="13131508_1920_1080_24fps.mp4" autoplay loop muted playsinline></video>
</body>
</html>