西瓜视频流媒体播放

2024-02-22 17:36:14
2024-10-23 00:12:51

CDN导入依赖,也可以NPM安装,(该CDN仅供测试使用,线上请用自己或者公司的CDN资源)

language 复制代码
https://xiaolong0418.com/cdn/xgplayer@3.0.12/dist/index.min.js
https://xiaolong0418.com/cdn/xgplayer-hls.js@3.0.12/dist/index.min.js

使用教程

language 复制代码
<div id="banner"></div>

          let  Player = new window.Player({
              id: "banner",
              url: "https://cdn.xiaolong0418.com/blog/CDN/2/1.m3u8",
              autoplayMuted: true,
              autoplay: true,
              plugins: [window.HlsJsPlugin],
              fluid: true,
              loop: true,
              controls: false,
              fitVideoSize: "auto",
            });

MP4转m3u8工具网站

language 复制代码
https://www.mp4.to/m3u8/?lang=zh
目录

运营需要亿点资金维持,您的支持,是小白龙创作的动力!!!

昵称
留言
赞赏金额
暂无评论,欢迎留下你的评论