<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Titan M1-Pro</title>
<link rel="stylesheet" href="css/video-js.css">
</head>
<body>
<video
id="my-video"
class="video-js vjs-default-skin vjs-big-play-centered"
style="object-fit: cover"
preload="auto"
data-setup="{}"
>
<source src="./images/column/Titan%20M1-Pro.mp4" type="video/mp4" />
</video>
</body>
<script src="js/video.min.js"></script>
<script>
player = videojs("my-video", {
controls: true,
poster: 'xxx',
muted: true,
preload: 'auto',
autoplay: true,
fluid: true,
loop: true,
width: innerWidth,
height: innerHeight,
});
window.onresize = function () {
$("#my-video").width(innerWidth)
$("#my-video").height(innerHeight)
}
player.on('timeupdate', function (event) {
var currentTime = parseInt(this.currentTime());
var video = document.getElementById('my-video')
if (currentTime >= 0) {
video.classList.add("vjs-has-started")
}
})
</script>
</html>