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

播放flv直播流时setEventsMiddleware添加play事件中间件的问题 #1475

Open
dyxweb opened this issue May 31, 2024 · 1 comment
Open
Assignees
Labels
flv xgplayer-flv

Comments

@dyxweb
Copy link

dyxweb commented May 31, 2024

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

您使用的操作系统和浏览器分别是? What OS and browser are you using?
windows Chrome

如何复现问题? How to reproduce the problem?

使用FlvPlugin播放直播流时,使用setEventsMiddleware为play事件添加中间件,点击暂停后再继续播放,观察setEventsMiddleware为play事件添加的逻辑执行情况

您期望的播放器正常行为是? What did you expect to happen?

  1. 触发一次setEventsMiddleware添加的事件
  2. play事件等待setEventsMiddleware添加的事件执行后再执行

实际播放器的表现是? What actually happened?

  1. 使用FlvPlugin播放直播流时,当使用setEventsMiddleware为play事件添加中间件后,此时点击播放器暂停按钮后点击播放按钮继续播放时,会触发两次setEventsMiddleware添加的事件
  2. 监听的play事件会等待setEventsMiddleware添加的事件执行完毕后再执行,但是没有等待setEventsMiddleware添加的事件执行完毕播放器就开始拉取直播流数据。

可填写您所在的公司和相关产品业务,方便我们提供更好的技术支持 You can write your company and product which uses xgplayer, for helping us provide better technical support.

@gemxx gemxx added the flv xgplayer-flv label Jun 11, 2024
@dyxweb
Copy link
Author

dyxweb commented Jun 24, 2024

请问这个问题能否解决呢有预计解决时间吗

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

No branches or pull requests

3 participants