@flashport/flashport
Version:
FlashPort is a TypeScript 2D graphics library that largely replicates the Flash ActionScript 3.0 library
40 lines (39 loc) • 2.03 kB
TypeScript
/**
* The NetStreamAppendBytesAction class is an enumeration of the constants you can pass to the <codeph class="+ topic/ph pr-d/codeph ">NetStream.appendBytesAction()</codeph> method.
*
* <p class="- topic/p ">Two of the constants indicate a timescale discontinuity. Every FLV tag has a timestamp indicating its position in the timescale.
* Timestamps are used to synchronize video, audio, and script data playback. Timestamps for FLV tags of the same type
* (video, audio, script data) must not decrease as the FLV progresses.</p>
* @langversion 3.0
* @playerversion Flash 10.1
* @playerversion AIR 2
*/
export declare class NetStreamAppendBytesAction extends Object {
/**
* Indicates that the media stream data is complete. For some codecs, such as H.264, the byte parser waits for
* the buffer to fill to a certain point before beginning playback. Pass END_SEQUENCE to tell the byte parser to
* begin playback immediately.
* @langversion 3.0
* @playerversion Flash 10.1
* @playerversion AIR 2
*/
static END_SEQUENCE: string;
/**
* Indicates a timescale discontinuity. Flushes the FIFO (composed of an incomplete FLV tag) and resets the timescale to begin at the timestamp of the next appended message.
* On the next call to appendBytes(), the byte parser expects a file header and starts at the beginning of a file.
* @langversion 3.0
* @playerversion Flash 10.1
* @playerversion AIR 2
*/
static RESET_BEGIN: string;
/**
* Indicates a timescale discontinuity. Flushes the FIFO (composed of an incomplete FLV tag) and resets the timescale to begin at the timestamp of the next appended message.
* On the next call to appendBytes(), the byte parser expects the beginning of an FLV tag, as though you’ve just done a seek to
* a location in the same FLV, on a tag boundary.
* @langversion 3.0
* @playerversion Flash 10.1
* @playerversion AIR 2
*/
static RESET_SEEK: string;
constructor();
}