Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 988 Bytes

README.md

File metadata and controls

41 lines (26 loc) · 988 Bytes

H264.js Build Status

npm

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");