flash.net

# NetStreamAppendBytesAction - AS3

Package | flash.net
Class | public final class NetStreamAppendBytesAction
Inheritance | NetStreamAppendBytesAction Object

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 10.1, AIR 2

The NetStreamAppendBytesAction class is an enumeration of the constants you can pass to the `NetStream.appendBytesAction()` method.

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.

Related API Elements

flash.net.NetStream.appendBytesAction()
flash.net.NetStream.appendBytes()

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Public Constants

| Constant | Defined By
--- | --- | ---
|  | END_SEQUENCE : String = "endSequence" [static] Indicates that the media stream data is complete. | NetStreamAppendBytesAction
|  | RESET_BEGIN : String = "resetBegin" [static] Indicates a timescale discontinuity. | NetStreamAppendBytesAction
|  | RESET_SEEK : String = "resetSeek" [static] Indicates a timescale discontinuity. | NetStreamAppendBytesAction

Constant Detail

### END_SEQUENCE

Constant

`public static const END_SEQUENCE:String = "endSequence"`

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 10.1, AIR 2

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.

### RESET_BEGIN

Constant

`public static const RESET_BEGIN:String = "resetBegin"`

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 10.1, AIR 2

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.

### RESET_SEEK

Constant

`public static const RESET_SEEK:String = "resetSeek"`

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 10.1, AIR 2

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.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00