npmi-Sxgplayer-flv 然后就可以使用了。 importPlayerfrom'xgplayer'importFlvPluginfrom'xgplayer-flv'import"xgplayer/dist/index.min.css"newPlayer({id:'dom-id',isLive:true,plugins:[FlvPlugin],url:'test.flv',}) CDN 方式安装使用 在HTML 文件中加入如下代码。
constplayer=newPlayer({id:'vs',plugins:[FlvPlayer],url:'index.flv',isLive:true|false,flv:{loadTimeout:10000,preloadTime:4,retryCount:2,retryDelay:1000}}); #Config Config of plugin specialized passed by flv:{} when init player #xgplayer-flv ...
/xgplayer-flv/ /xgplayer-flv/ dist/ folder 711 kB es/ folder 101 kB CHANGELOG.md text/markdown 7.3 kB package.json application/json 635 BPackage Sidebar Install npm i xgplayer-flv Weekly Downloads 506 Version 3.0.21 License MIT Unpacked Size 820 kB Total Files 23 Last publish 5 days ago...
<!-- 引用XGPlayer的js文件 --> <!-- 页面初始化xgplayer --> new window.FlvJsPlayer({ id: 'player', playsinline: true, url: '视频地址', autoplay: true, volume: 0.6, height: 290, width: 225 }); 代码简介 url:视频链接地址 autoplay:true 是否自动播放,自动播放在chrome下需要先进行设...
--引用XGPlayer的js文件--><!--页面初始化xgplayer-->newwindow.FlvJsPlayer({id:'player',playsinline:true,url:'视频地址',autoplay:true,volume:0.6,height:290,width:225}); 代码简介 url:视频链接地址 autoplay:true 是否自动播放,自动播放在chrome下需要先进行设置否则会造成此功能被拦截,chrome默认不允许...
在Vue项目中使用xgplayer.js库播放FLV视频,可以按照以下步骤进行: 1. 在Vue项目中安装xgplayer.js库 首先,你需要在Vue项目中安装xgplayer.js库。可以通过npm或yarn进行安装: bash npm install xgplayer --save # 或者 yarn add xgplayer 2. 在Vue组件中引入xgplayer.js库 在你的Vue组件中,通过import语句引入xgpla...
Latest version: 3.0.21, last published: a month ago. Start using xgplayer-flv in your project by running `npm i xgplayer-flv`. There are 17 other projects in the npm registry using xgplayer-flv.
"xgplayer-flv": "^3.0.20-beta.0" 您使用的操作系统和浏览器分别是? What OS and browser are you using? windows11 版本127.0.6533.89(正式版本) (64 位) 如何复现问题? How to reproduce the problem? 使用播放器播放http-flv直播流时,当网络情况不好时会出现 ...
xgplayer-flv-vod About Us Network Stats Sponsors Tools Purge cache Convert from GitHub Google Hosted Libraries unpkg Skypack esm.sh Resources Blog Newsletter esm.run Documentation Open Source CDN Public API Globalping Github Twitter Discord xiyuyizhi...
xgplayer-hls@3.0.21-beta.0 … v3.0.21-alpha.1 gemxxcommittedSep 26, 2024 1 parent81ffebccommit1d7e96d Showing1 changed filewith11 additionsand1 deletion. Whitespace Ignore whitespace Split Unified 12 changes: 11 additions & 1 deletion12packages/xgplayer-transmuxer/src/flv/index.js ...