mpegts.js icon indicating copy to clipboard operation
mpegts.js copied to clipboard

What is the difference between flv.js and mpegts.js packages?

Open insonifi opened this issue 3 years ago • 3 comments

I just noticed a remark that mpegts.js somehow inherits functionality from flv.js. This brings me to my questions:

  • what is the difference between them?
  • should I move to mpegts.js?
  • is mpegts.js a drop-in replacement for flv.js?

Thank you!

insonifi avatar Feb 07 '22 16:02 insonifi

what is the difference between them?

Okay. The main difference is that mpegts.js adds playback support for MPEG-TS streams (mainly because of my personal needs). In addition, mpegts.js also improves live latency even further that has been as low as about 0.5 seconds over the Internet. mpegts.js inherited all the features from flv.js so FLV live stream playback could also be benefited from this.

should I move to mpegts.js?

Yes. mpegts.js will be more likely to have further updates and maintenance in the future, but I'm NOT guaranteeing that.

is mpegts.js a drop-in replacement for flv.js?

Just some interface names have been changed (like flvjs => mpegts, FlvPlayer => MSEPlayer) so It should be very easy to migrate from flv.js.

xqq avatar Feb 08 '22 11:02 xqq

I see, thank you. I will replace flvjs.js with mpegts.js.

insonifi avatar Feb 08 '22 13:02 insonifi

ALso flv.js is currently no longer maintained anymore!

melroy89 avatar Jun 03 '23 22:06 melroy89