samirkumardas / jmuxer

jMuxer - a simple javascript mp4 muxer that works in both browser and node environment.
Other
559 stars 114 forks source link

Improvement - allow "live" streaming by ditching data #54

Closed tzah4748 closed 4 years ago

tzah4748 commented 4 years ago

I would like to offer an improvement to support more real live streaming.

Assume the following :

  1. jMuxer is getting its data from some external source via WebSocket.
  2. jMuxer refreshes frequently and with constant 60 fps.
  3. the

The problem: While all works fine and well, changing Tabs in chrome (for example) will cause the

Suggestions: (one of the following i assume)

  1. Skip to the end of the video (flag) when tab gets focus again /
  2. Ignoring any "data" (not config) NAL Units coming when tab isn't focused.
  3. Not appending any data (again not config) to the MSE while the

These are just some of the suggestions came to my mind, i would be happy with anything that solves that "problem".

Many thanks.

samirkumardas commented 4 years ago

Thanks but why don't you apply this logic on your application end? You are feeding buffer yourself from your application end, so you can implement this logic on your end.