分享你我的心得.
共乘一片美好网络.

ArtPlayer.js —— HTML5 视频播放器

下载地址1:https://gitee.com/522497065/ArtPlayer

下载地址2:https://codeload.github.com/zhw2590582/ArtPlayer/zip/refs/heads/master

详细教程: https://artplayer.org/document/

<!DOCTYPE html>
<html>
    <head>
        <title>ArtPlayer Demo</title>
        <meta charset="UTF-8" />
        <style>
            .artplayer-app {
                width: 600px;
                height: 400px;
            }
        </style>
    </head>
    <body>
        <div class="artplayer-app"></div>
        <script src="artplayer.js"></script>
        <script>
            var art = new Artplayer({
                container: '.artplayer-app',
                url: 'video.mp4',
                poster: '/assets/sample/poster.jpg',
                isLive: true,//直播模式隐藏进度条
                muted: true,//默认静音
                autoplay: true,
                autoSize: true,//隐藏黑边
                loop: true,//循环播放
                setting: true,//隐藏设置
                fullscreen: true,//全屏
            });
        </script>
    </body>
</html>
赞(0)
未经允许不得转载:小叶白龙博客 » ArtPlayer.js —— HTML5 视频播放器
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!