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

SourceBuffer remove issue #140

Open
hopestar702 opened this issue Apr 17, 2023 · 1 comment
Open

SourceBuffer remove issue #140

hopestar702 opened this issue Apr 17, 2023 · 1 comment

Comments

@hopestar702
Copy link

hopestar702 commented Apr 17, 2023

Hello,
I am using jmuxer to play h264 stream. I don't need to store frames' history. That is, I only need to play current frame of the stream. And in the h264 stream I am playing, only the first frame is the key frame. All the other frames are p frames.
After playing a min, the video play stops because of QuotaExceededError. So, I called SourceBuffer.remove() function to remove the buffered data.
But the video does never play after calling the remove function. So, my questions are:

  • What is the best solution to play only the current frame of h264 stream using jmuxer?
  • When and how should I call the SourceBuffer.remove function?

Thank you.

@zhang22113
Copy link

您好, 我正在使用 jmuxer 播放 h264 流。我不需要存储框架的历史记录。也就是说,我只需要播放流的当前帧。而我正在播放的h264流中,只有第一帧是关键帧。所有其他帧都是 p 帧。 播放一分钟后,由于 QuotaExceededError,视频播放停止。因此,我调用 SourceBuffer.remove() 函数来删除缓冲的数据。 但调用删除函数后视频永远不会播放。所以,我的问题是:

  • 使用 jmuxer 仅播放 h264 流的当前帧的最佳解决方案是什么?
  • 我应该何时以及如何调用 SourceBuffer.remove 函数?

谢谢。
您好,我不知道,您这边解决这个问题了吗

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