samirkumardas/jmuxer

SourceBuffer remove issue

hopestar702 opened this issue · 1 comments

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.

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

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

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