Posted on:
I've created Apple HTTP Live Streaming JavaScript player created by performing realtime conversion of MPEG-TS video chunks to MPEG-4 in parallel thread using Web Worker and playing them one by one in main thread.
How does it work? #
Conversion is done using jBinary library with programmatically described data structures according to ISO 13818-1, ISO-14496-2, ISO-14496-12 and ITU-T H.222.0 specifications.
Where does it work? #
Works best in Chrome (stable branch), having more noticable lags when switching videos but still working in latest Firefox versions and IE10+.
Disclaimer #
Please note that demo uses 3rd-party HLS demo source and service http://www.corsproxy.com/ for proxying it with needed Cross-Origin-Request headers for browsers to allow chunk downloading, so it may be unstable.
Where I can see that? #
Check out http://rreverser.github.io/mpegts/ for live demo.
More posts:
- Next: Github project: compile2js
- Previous: Github project: es6-import