ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
org.osmf.net 

StreamingItem  - AS3 OSMF

Packageorg.osmf.net
Classpublic class StreamingItem
InheritanceStreamingItem Inheritance Object

Language Version: ActionScript 3.0
Product Version: OSMF 1.6
Runtime Versions: Flash Player 10, AIR 1.5

The StreamingItem class represents a single media stream within a StreamingURLResource.

Related API Elements



Public Properties
 PropertyDefined By
  bitrate : Number
[read-only] Returns a Number giving the stream’s bit rate, specified in kilobits per second (kbps).
StreamingItem
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  info : Object
[read-only] Returns an Object containing any custom information associated with the stream.
StreamingItem
  streamName : String
[read-only] Returns a String used to identify the stream.
StreamingItem
  type : String
[read-only] Returns a String specifying the type of the stream.
StreamingItem
Public Methods
 MethodDefined By
  
StreamingItem(type:String, streamName:String, bitrate:Number = 0, info:Object = null)
Default constructor
StreamingItem
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail

bitrate

property
bitrate:Number  [read-only]

Language Version: ActionScript 3.0
Product Version: OSMF 1.6
Runtime Versions: Flash Player 10, AIR 1.5

Returns a Number giving the stream’s bit rate, specified in kilobits per second (kbps).



Implementation
    public function get bitrate():Number

info

property 
info:Object  [read-only]

Language Version: ActionScript 3.0
Product Version: OSMF 1.6
Runtime Versions: Flash Player 10, AIR 1.5

Returns an Object containing any custom information associated with the stream. Typically, this can include the width and height of the video, but it could also contain a user-friendly description of the stream.



Implementation
    public function get info():Object

streamName

property 
streamName:String  [read-only]

Language Version: ActionScript 3.0
Product Version: OSMF 1.6
Runtime Versions: Flash Player 10, AIR 1.5

Returns a String used to identify the stream.



Implementation
    public function get streamName():String

type

property 
type:String  [read-only]

Language Version: ActionScript 3.0
Product Version: OSMF 1.6
Runtime Versions: Flash Player 10, AIR 1.5

Returns a String specifying the type of the stream. Possible values are VIDEO, for a stream that includes video, and AUDIO, for a stream that contains only audio.



Implementation
    public function get type():String
Constructor Detail

StreamingItem

()Constructor
public function StreamingItem(type:String, streamName:String, bitrate:Number = 0, info:Object = null)

Language Version: ActionScript 3.0
Product Version: OSMF 1.6
Runtime Versions: Flash Player 10, AIR 1.5

Default constructor

Parameters
type:String — The StreamingItemType of the stream. Allowed values are VIDEO, for a stream that includes video, and AUDIO, for a stream that contains only audio.
 
streamName:String — A String used to identify this stream.
 
bitrate:Number (default = 0) — A Number specifying the stream’s encoded bit rate in kbps (kilobits per second).
 
info:Object (default = null) — An Object containing any custom information associated with the stream. Typically, this can include the width and height of the video, but it could also contain a user-friendly description of the stream.