반응형
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Play</title>
<link rel="stylesheet" href="https://cdn.plyr.io/3.6.4/plyr.css" />
<script src="https://cdn.plyr.io/3.6.4/plyr.polyfilled.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<style>
*{
padding: 0;
}
html, body {
padding: 0;
margin: 0;
}
</style>
<script>
$(document).ready(function () {
const player = new Plyr('#player');
player.source = {
type: 'video',
sources: [
{
src: '518467980',
provider: 'vimeo',
},
]
};
});
</script>
</head>
<body>
<video id="player"></video>
</body>
</html>
반응형