您现在的位置是:网站首页> HTML&JS
DPlayer 播放RTMP
- HTML&JS
- 2023-05-25
- 821人已阅读
摘要
DPlayer 播放RTMP
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>DPlayer</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.css">
<script src="https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.js"></script>
</head>
<body>
<div id="dplayer"></div>
<script>
const dp = new DPlayer({
container: document.getElementById('dplayer'),
video: {
url: 'your rtmp url',
type: 'rtmp'
}
});
</script>
</body>
</html>
上一篇:Three.JS笔记