mpegts.js
mpegts.js copied to clipboard
Directly add a buffer programmatically?
I have a WS based server that streams video, but it is multiplexed with some other stuff in the same websocket.
Is there an API to feed the player directly with buffers of MPEG2-TS packets?
Construct a customized IO Loader
with the following interface:
https://github.com/xqq/mpegts.js/blob/master/src/io/loader.js
And then pass the class into player here: https://github.com/xqq/mpegts.js/blob/master/src/config.js#L53
https://github.com/xqq/mpegts.js/blob/master/src/io/websocket-loader.js This class could be a reference sample.