We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
let player = new Player({ el: document.querySelector("#mmid"), // url: 'https://video.pearvideo.com/mp4/third/20201113/cont-1706821-15126082-111655-hd.mp4', // url: 'https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/hls/xgplayer-demo.m3u8', url: this.videoUrl, width: "100%", height: "100%", fluid: true, volume: 0.6, // 初始音量 useHls: true, fluid: true, // 流体 autoplay: this.autoplay, // 自动播放 playsinline: true, miniprogress: true, poster: this.poster,//封面图 isLive: this.isLive, cors: true, fullscreen: { // needBackIcon: this.needBackIcon, //左上角返回 // useCssFullscreen: true,//全屏按钮将会调用页面内全屏 // rotateFullscreen: true, //旋转横屏 }, controls: { mode: 'bottom' }, /**初始化首帧 */ videoInit: true, //截图 screenShot: { saveImg: false,//是否下载 quality: .92,//图片质量, type: 'image/png', format: '.png' }, plugins, // 菜单控件 // controlPlugins: [ // // volume,// 音量按钮 移动端不推荐显示该按钮,原因:有点多余 // playbackRate,//倍速 // download,//设置download控件显示 // // playNext,//下一集视频按钮 // // pip,//画中画 // // miniplayer,// 迷你播放器控件 // cssFullscreen,//竖屏全屏 // screenShot,//截屏 // ],
});
The text was updated successfully, but these errors were encountered:
我也发现了这个问题,刚想提issue就看到了~~总视频1分31秒,已经在死循环播放第3个HLS切片了 这些HLS是放在S3存储的,同样放在上面的H264切片就正常播放,几个H265源的切片都不行,可能跟格式有关
Sorry, something went wrong.
No branches or pull requests
let player = new Player({
el: document.querySelector("#mmid"),
// url: 'https://video.pearvideo.com/mp4/third/20201113/cont-1706821-15126082-111655-hd.mp4',
// url: 'https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/hls/xgplayer-demo.m3u8',
url: this.videoUrl,
width: "100%",
height: "100%",
fluid: true,
volume: 0.6, // 初始音量
useHls: true,
fluid: true, // 流体
autoplay: this.autoplay, // 自动播放
playsinline: true,
miniprogress: true,
poster: this.poster,//封面图
isLive: this.isLive,
cors: true,
fullscreen: {
// needBackIcon: this.needBackIcon, //左上角返回
// useCssFullscreen: true,//全屏按钮将会调用页面内全屏
// rotateFullscreen: true, //旋转横屏
},
controls: {
mode: 'bottom'
},
/**初始化首帧 */
videoInit: true,
//截图
screenShot: {
saveImg: false,//是否下载
quality: .92,//图片质量,
type: 'image/png',
format: '.png'
},
plugins,
// 菜单控件
// controlPlugins: [
// // volume,// 音量按钮 移动端不推荐显示该按钮,原因:有点多余
// playbackRate,//倍速
// download,//设置download控件显示
// // playNext,//下一集视频按钮
// // pip,//画中画
// // miniplayer,// 迷你播放器控件
// cssFullscreen,//竖屏全屏
// screenShot,//截屏
// ],
The text was updated successfully, but these errors were encountered: