H264.js
H264/AVC, MPEG2-TS ByteStream, H.264 RawStream to NALUnit.
This module made of WebModule.
Documentation
Browser, NW.js and Electron
<script src="<module-dir>/lib/WebModule.js"></script>
<script src="<module-dir>/lib/H264.js"></script>
<script>
var videoH264RawStream = new Uint8Array(...)
var videoNALUnitObject = H264.convertRawStreamToNALUnitObject( videoH264RawStream );
</script>
WebWorkers
importScripts("<module-dir>lib/WebModule.js");
importScripts("<module-dir>lib/H264.js");
Node.js
require("<module-dir>lib/WebModule.js");
require("<module-dir>lib/H264.js");