Packagetv.ustream.viewer.logic.media
Classpublic class Channel
InheritanceChannel Inheritance Recorded Inheritance Media Inheritance Dispatcher Inheritance flash.events.EventDispatcher

This class represents the online, currently streaming channel.



Public Properties
 PropertyDefined By
 Inheritedactive : Boolean
[read-only]
Dispatcher
 Inheritedaudio : Boolean
Set and get if the stream should receive audio.
Recorded
 InheritedautoPlay : Boolean
Recorded
 Inheritedbrand : String
[read-only] Returns the brand of the stream
Media
 InheritedbrandId : String
[read-only]
Recorded
  buffer : Number
[override]
Channel
 InheritedbufferLength : Number
[read-only]
Recorded
 InheritedbufferProgress : Number
[read-only]
Recorded
 InheritedbufferStart : Number
[read-only]
Recorded
 InheritedbufferTime : Number
[read-only]
Recorded
  cdngw : Boolean = true
[static]
Channel
  channels : Array
[static] [read-only]
Channel
 Inheritedduration : Number
[read-only] Returns the duration of the stream, if available.
Recorded
  featured : Boolean
[read-only]
Channel
 InheritedhasKeyData : Boolean
[read-only]
Recorded
 InheritedhighlightId : Number
[read-only]
Recorded
 Inheritedmedia : Sprite
[read-only] Returns the sprite that can be used for displaying the given media
Media
 InheritedmediaId : String
[read-only]
Recorded
 Inheritedmeta : Object
[read-only] Returns the meta tags of the stream, if available.
Recorded
 Inheritedmodules : ViewerModuleManager
[read-only] A reference to the ViewerModuleManager object.
Media
  muted : Boolean
[override] Mutes the channel, and every layers on it.
Channel
 Inheritedoffset : Number
[read-only]
Recorded
  online : Boolean
[read-only]
Channel
 InheritedpageUrl : String
[read-only] Tries to extract the url of the page, where the swf has embeded.
Media
  playing : Boolean
[override] Toggles the playing state of the stream and it's layers.
Channel
  preferredCdn : String
[static]
Channel
 Inheritedprogress : Number
[read-only] Returns the current playing progress of the stream.
Recorded
 Inheritedprogressive : Boolean
[read-only]
Recorded
 InheritedseekTo : Number
[write-only] Seeks the stream to the received time.
Recorded
 InheritedsessionId : String
[read-only]
Recorded
 Inheritedsmooth : Boolean
Sets the smoothing of the stream.
Recorded
 InheritedstreamBounds : Rectangle
[read-only]
Recorded
 InheritedstreamRect : Rectangle
[read-only]
Recorded
 Inheritedtakeover : Boolean
Recorded
 Inheritedtime : Number
[read-only] Returns the current time of the stream.
Recorded
 Inheritedtitle : String
[read-only] Returns the title of the stream.
Media
  url : String
[override] [read-only] Returns the channel's page url.
Channel
 Inheritedvideo : Boolean
Set and get if the stream should receive video.
Recorded
  volume : Number
[override] Sets the volume of the channel.
Channel
Protected Properties
 PropertyDefined By
 Inherited_active : Boolean = true
Dispatcher
 Inheritedapplication : String
Recorded
 Inherited_backupVolume : Number
Recorded
 Inherited_buffer : Number = 5
Recorded
 InheritedcampaignId : String
Recorded
 Inherited_duration : Number
Recorded
 Inherited_hasKeyData : Boolean = false
Recorded
 Inherited_highlightId : Number
Recorded
 InheritedhostBrandId : String = null
Recorded
 InheritedidValidator : IdValidator
[static]
Recorded
 Inheritedinplay : Generic_IP
Recorded
 InheritedkeyBytes : Array
Recorded
 InheritedkeyTimes : Array
Recorded
 Inheritedlayers : Sprite
Recorded
 Inherited_muted : Boolean = false
Recorded
  p2pFallBack : Boolean = false
Channel
  p2pForce : Boolean
Channel
  p2pHash : String
Channel
 Inheritedquantcast : Quantcast
Recorded
 InheritedreConnect : Boolean = false
Recorded
 Inheritedrejected : Boolean = false
Recorded
 Inherited_sessionId : String
Recorded
 Inheritedshared : Shared
Recorded
 InheritedsnapActive : Boolean
[read-only]
Recorded
 Inheritedstats : StreamStats
Recorded
 InheritedstreamId : Number
Recorded
  streamOwner : Connection
[override]
Channel
  streamStatus : String
[override]
Channel
 Inherited_takeover : Boolean = false
Recorded
 Inherited_volume : Number = 1
Recorded
 Inheritedw84keys : Boolean = false
Recorded
 Inheritedw84ModulesLock : Boolean = false
Recorded
Public Methods
 MethodDefined By
  
Channel(id:String, autoPlay:Boolean = true, password:String = null, sessionId:String = null, application:String = null, args:Object = null)
Constructor.
Channel
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
[override]
Dispatcher
  
destroy(... e):*
[override] Destroys the current channel.
Channel
 Inherited
dispatchEvent(event:Event):Boolean
[override]
Dispatcher
 Inherited
Dispatcher
 Inherited
pause(... e):void
Pauses the stream.
Recorded
  
play(... e):void
[override] Plays the stream.
Channel
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
[override]
Dispatcher
 Inherited
seek(percent:Number, bufferOnly:Boolean = false, forceJump:Boolean = false):Boolean
Seeks to the received percent of the stream.
Recorded
 Inherited
setEchoPrefix(str:String):void
Dispatcher
 Inherited
pauses or resumes playback of a stream
Recorded
 Inherited
pauses or resumes playback of a stream
Recorded
Protected Methods
 MethodDefined By
 Inherited
Recorded
 Inherited
Recorded
  
connect():void
[override]
Channel
 Inherited
Recorded
  
createModules(... e):void
[override]
Channel
 Inherited
dispatch(eventName:String, bubbles:Boolean = false, data:* = null):void
Dispatches the event, if the class is active.
Dispatcher
 Inherited
echo(what:String):void
Dispatcher
 Inherited
getSnapUrl():String
Recorded
 Inherited
Recorded
 Inherited
jump(index:int):void
Recorded
 Inherited
Recorded
 Inherited
onCreateMeta(... e):void
Recorded
 Inherited
onEmbedLimitReached(... e):Boolean
Recorded
  
[override]
Channel
 Inherited
onGwCallFailed(... e):void
Recorded
  
onGwResult(result:Object):void
[override]
Channel
 Inherited
onLockerResize(... e):void
[override]
Recorded
 Inherited
onPassword(... e):void
Recorded
 Inherited
onPlayTimer(evtX:TimerEvent):void
Recorded
  
onPostRollDone(... e):void
[override]
Channel
  
onPpvGoFree(e:Event = null):void
[override]
Channel
  
[override]
Channel
 Inherited
onRejected(reason:*, rejectUrl:String = null):void
Recorded
 Inherited
onStreamFinish(... e):void
Recorded
 Inherited
Recorded
  
[override]
Channel
 Inherited
resizeAd():void
Recorded
 Inherited
streamInfo(info:Object):void
Recorded
 Inherited
updateLogoPos(... e):void
Media
Events
 Event Summary Defined By
 InheritedThe stream's audio streaming property has changed.Recorded
 InheritedThe stream has connected and playing.Recorded
 InheritedDispatcher
 InheritedLooking for the channelRecorded
 InheritedThe stream has ended.Recorded
 InheritedThe channel has been foundRecorded
 InheritedThis is a progressive flv file, not a real stream from a media server.Recorded
 InheritedThe video has a highlighted momentRecorded
 InheritedThe stream's muted property has changed.Recorded
  The channel is offlineChannel
  The channel is onlineChannel
  The channel is password protected, and no password provided.Channel
 InheritedRecorded
 InheritedThe stream's video streaming property has changed.Recorded
Property Detail
bufferproperty
buffer:Number[override]


Implementation
    public function get buffer():Number
    public function set buffer(value:Number):void
cdngwproperty 
public static var cdngw:Boolean = true

channelsproperty 
channels:Array  [read-only]


Implementation
    public static function get channels():Array
featuredproperty 
featured:Boolean  [read-only]


Implementation
    public function get featured():Boolean
mutedproperty 
muted:Boolean[override]

Mutes the channel, and every layers on it.


Implementation
    public function get muted():Boolean
    public function set muted(value:Boolean):void
onlineproperty 
online:Boolean  [read-only]


Implementation
    public function get online():Boolean
p2pFallBackproperty 
protected var p2pFallBack:Boolean = false

p2pForceproperty 
protected var p2pForce:Boolean

p2pHashproperty 
protected var p2pHash:String

playingproperty 
playing:Boolean[override]

Toggles the playing state of the stream and it's layers.


Implementation
    public function get playing():Boolean
    public function set playing(value:Boolean):void
preferredCdnproperty 
public static var preferredCdn:String

streamOwnerproperty 
streamOwner:Connection[override]


Implementation
    protected function get streamOwner():Connection
    protected function set streamOwner(value:Connection):void
streamStatusproperty 
streamStatus:String[override]


Implementation
    protected function get streamStatus():String
    protected function set streamStatus(value:String):void
urlproperty 
url:String  [read-only] [override]

Returns the channel's page url.


Implementation
    public function get url():String
volumeproperty 
volume:Number[override]

Sets the volume of the channel.


Implementation
    public function get volume():Number
    public function set volume(value:Number):void
Constructor Detail
Channel()Constructor
public function Channel(id:String, autoPlay:Boolean = true, password:String = null, sessionId:String = null, application:String = null, args:Object = null)

Constructor. Creates a channel for the given channel ID. If the autoPlay parameter set to false, the channel won't start, only show a snapshot. If the channel password protected, and password provided, it will connect with that password.

Parameters
id:String
 
autoPlay:Boolean (default = true)
 
password:String (default = null)
 
sessionId:String (default = null)
 
application:String (default = null)
 
args:Object (default = null)
Method Detail
connect()method
override protected function connect():void

createModules()method 
override protected function createModules(... e):void

Parameters

... e

destroy()method 
override public function destroy(... e):*

Destroys the current channel.

Parameters

... e

Returns
*
onFmsRejected()method 
override protected function onFmsRejected(e:DynamicEvent):void

Parameters

e:DynamicEvent

onGwResult()method 
override protected function onGwResult(result:Object):void

Parameters

result:Object

onPostRollDone()method 
override protected function onPostRollDone(... e):void

Parameters

... e

onPpvGoFree()method 
override protected function onPpvGoFree(e:Event = null):void

Parameters

e:Event (default = null)

onPpvGoPaid()method 
override protected function onPpvGoPaid(e:DynamicEvent):void

Parameters

e:DynamicEvent

play()method 
override public function play(... e):void

Plays the stream.

Parameters

... e

ppvMergeGwResult()method 
override protected function ppvMergeGwResult():void

Event Detail
offline Event
Event Object Type: flash.events.Event

The channel is offline

online Event  
Event Object Type: flash.events.Event

The channel is online

password Event  
Event Object Type: flash.events.Event

The channel is password protected, and no password provided.