xgplayer/fixtures/mp4/index.js
2023-05-16 11:19:11 +08:00

26 lines
744 B
JavaScript

// import '../../packages/xgplayer-livevideo/src'
// import MP4Player from '../../packages/xgplayer-mp4/src'
import Player from '../../packages/xgplayer/src';
import Mp4Player from '../../packages/xgplayer-mp4/src';
// console.log(Player, Mp4Player)
let player=new Player({
id: 'vs',
autoplay: true,
volume: 0.3,
url:'./err.mp4',
poster: "//lf3-static.bytednsdoc.com/obj/eden-cn/nupenuvpxnuvo/xgplayer_doc/poster.jpg",
playsinline: true,
thumbnail: {
pic_num: 44,
width: 160,
height: 90,
col: 10,
row: 10,
// urls: ['//lf3-static.bytednsdoc.com/obj/eden-cn/nupenuvpxnuvo/xgplayer_doc/xgplayer-demo-thumbnail.jpg'],
},
height: window.innerHeight,
width: window.innerWidth,
plugins: [Mp4Player]
});