Skip to content
New issue

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

h5播放m3u8时,同一个源会出现 有时能直接播放, 退出去再进来有时会出现一直拉流 一直在加载中现象 #1672

Open
hzx1994211 opened this issue Dec 5, 2024 · 1 comment

Comments

@hzx1994211
Copy link

image

image

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,//截屏
// ],

  });
@voidping
Copy link

voidping commented Dec 11, 2024

我也发现了这个问题,刚想提issue就看到了~~总视频1分31秒,已经在死循环播放第3个HLS切片了
这些HLS是放在S3存储的,同样放在上面的H264切片就正常播放,几个H265源的切片都不行,可能跟格式有关

sony_4k_hls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants