Skip to content

Mp4Plugin插件播放某个mp4视频一直加载中但无报错信息 #1793

@zhangzicao

Description

@zhangzicao

您使用的西瓜播放器版本是多少? What version of xgplayer are you using?
v3.0.22

您使用的操作系统和浏览器分别是? What OS and browser are you using?
win10,chrome137.0.7151.56,x64

如何复现问题? How to reproduce the problem?
视频下载地址:https://raw.githubusercontent.com/nickdesaulniers/netfix/gh-pages/demo/frag_bunny.mp4
参考代码:
let player = new Player({ id: 'xgCont', url: this.src, height: '100%', width: '100%', plugins: [Mp4Plugin], mp4plugin: { maxBufferLength: 30, minBufferLength: 10, disableBufferBreakCheck: true, //是否开启卡顿超时检测 }, });
看了下源代码调试,发现进入到这段代码里了,但是不会抛出错误
onProgress(null, state, options, { err: "cannot parse segments" });

您期望的播放器正常行为是? What did you expect to happen?
正常播放、有错误时正常抛出错误

实际播放器的表现是? What actually happened?
一直loading中,无报错信息,查看控制台有一次url请求成功(206,有respond内容)。我移除Mp4Plugin插件后播放正常。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions