My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Links

Allows you to slice an FLV at runtime in AS3. Slices can also be merged into a single FLV file.

FLVSlicer can also extract sound or video only from an FLV.

AS3 Code Sample :

//create the FLVSlice object
var slicer:FLVSlicer = new FLVSlicer(new flvBytes());

// listen for the SlicedEvent.COMPLETE event
slicer.addEventListener( SlicedEvent.COMPLETE, onSliced );

// extract the slice with the specific timing (in ms) and save it
var firstSlice:FLVSlice = slicer.slice(1000, 3000);

// extract another slice with the specific timing (in ms) and save it
var secondSlice:FLVSlice = slicer.slice(7200, 8900);

// create a FLVSlice vector
var slices:Vector.<FLVSlice> = new Vector.<FLVSlice>();

// store the slices
slices.push ( firstSlice );
slices.push ( secondSlice );

// merge them as a single FLV stream
var merged:FLVSlice = slicer.merge( slices );
Powered by Google Project Hosting