본문 바로가기
실시간TV∴영화∴드라마∴예능

심플한 동영상 플레이어 MPlayer HTML5 Media Player

반응형

MPlayer HTML5 Media Player

더보기
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>MPlayer HTML5 Media Player</title>
<style>
* {-webkit-tap-highlight-color:transparent;}
body {
background:#000;
padding:0px;
margin:0px;
}
video{
position: fixed;
left:0px;
top:0px;
padding:0px;
margin:0px;
height: 100vh;
width: 100vw;
}
</style>
</head>
<body>
<video id="basic" poster="https://cdn.pixabay.com/animation/2022/12/26/09/50/09-50-13-682_512.gif" controls>
<source src="https://story-v1.kakaocdn.net/dn/brvUpk/oWUa35bOLc/NnYyldT98G3ILpS3XLNKv1/m2.mp4" type="video/mp4">
</video>
<script src="https://dohoons.github.io/mplayer/demo/mplayer.min.js"></script>
<script>
var basic = new MPlayer('#basic', {
flexible: true,
volume: 1,
autoplay : true,
contextmenu: false,
loop: false
}).on('play', function() {
console.log('play!');
});
</script>
</body>
</html>
반응형

댓글


Copyright ⓒ SmartWeb All rights reserved.