| Package | tv.ustream.broadcaster.logic.publishers |
| Class | public class Publisher |
| Inheritance | Publisher Dispatcher flash.events.EventDispatcher |
| Subclasses | FlashPublisher, FlixPublisher, FmePublisher |
| Property | Defined By | ||
|---|---|---|---|
![]() | active : Boolean [read-only] | Dispatcher | |
| activityLevel : Number [read-only]
Returns the activity level. | Publisher | ||
| activityLevelAvailable : Boolean [read-only]
Returns true if the activity level is available
| Publisher | ||
| audioEnabled : Boolean
Enables / disables the broadcasting of the audio part of the stream. | Publisher | ||
| audioQualityPercent : Number
Sets and gets the audio quality percent. | Publisher | ||
| audioQualityValue : Number [read-only]
Returns the audio quality. | Publisher | ||
| broadcasting : Boolean [read-only]
Returns the broadcasting state of the stream. | Publisher | ||
| cameraName : String
Sets and gets the current video device's name. | Publisher | ||
| cameraNames : Array [read-only]
Returns the list of available video devices. | Publisher | ||
| canSetDevices : Boolean [read-only]
Returns true, if the broadcaster is allowed set the video device. | Publisher | ||
| canSetQuality : Boolean [read-only]
Returns true, if the broadcaster is allowed set the quality of the video. | Publisher | ||
| canSetVolume : Boolean [read-only]
Returns true, if the broadcaster is allowed set the volume. | Publisher | ||
| canSetWideScreen : Boolean [read-only] | Publisher | ||
| fpsPercent : Number
Sets and gets the fps percent. | Publisher | ||
| fpsValue : Number [read-only]
Gets the fps value. | Publisher | ||
| localMonitorAvailable : Boolean [read-only]
Returns true if the local monitor is available. | Publisher | ||
| localMonitorEnabled : Boolean
Sets and gets if the monitor should show the local stream. | Publisher | ||
| microphoneName : String
Sets and gets the current audio device. | Publisher | ||
| microphoneNames : Array [read-only]
Returns the list of available audio devices. | Publisher | ||
| remoteMonitorAvailable : Boolean [read-only]
Returns true, if the remote monitor is available. | Publisher | ||
| remoteMonitorEnabled : Boolean
Sets and gets if the monitor should show the encoded stream. | Publisher | ||
| streamNamePrefix : String [static] [read-only]
Generates a random prefix which will constant for this session. | Publisher | ||
| videoEnabled : Boolean
Enables / disables the broadcasting of the video part of the stream. | Publisher | ||
| videoQualityPercent : Number
Sets and gets the video quality in percent. | Publisher | ||
| videoQualityValue : Number [read-only]
Returns the video quality. | Publisher | ||
| volume : Number
Sets and gets the volume
| Publisher | ||
| wideScreen : Boolean | Publisher | ||
| Method | Defined By | ||
|---|---|---|---|
Constructor. | Publisher | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void [override] | Dispatcher | |
audioQualityFormat(percent:Number = 0):String
Formats the percent value of the audio quality to a more user friendly format. | Publisher | ||
destroy(... e):* [override]
Clean up method. | Publisher | ||
![]() | dispatchEvent(event:Event):Boolean [override] | Dispatcher | |
![]() | eliminateEventListeners():void | Dispatcher | |
fpsFormat(percent:Number = 0):String
Formats the percent value of the fps to a more user friendly format. | Publisher | ||
![]() | removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void [override] | Dispatcher | |
![]() | setEchoPrefix(str:String):void | Dispatcher | |
startBroadcast():void
If the logic isn't in sleep mode, then calls the FMS to put the stream online. | Publisher | ||
stopBroadcast():void
Calls the FMS to put the stream offline. | Publisher | ||
videoQualityFormat(percent:Number = 0):String
Formats the percent value of the video quality to a more user friendly format. | Publisher | ||
| Method | Defined By | ||
|---|---|---|---|
![]() | dispatch(eventName:String, bubbles:Boolean = false, data:* = null):void
Dispatches the event, if the class is active. | Dispatcher | |
![]() | echo(what:String):void | Dispatcher | |
fmeConnected(streamName:String = null, online:Boolean = false, serverUrl:String = null, forced:Boolean = false):void
Abstract method. | Publisher | ||
init():void
Abstract method. | Publisher | ||
onBroadcastStarted(... e):void | Publisher | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Fires when the broadcaster changes the selected video device. | Publisher | |||
![]() | Dispatcher | |||
| Fires when the local stream selected as monitor. | Publisher | |||
| Fires when the broadcaster changes the selected audio device. | Publisher | |||
| Fires, when the server stream selected as monitor | Publisher | |||
| activityLevel | property |
activityLevel:Number [read-only] Returns the activity level.
public function get activityLevel():Number| activityLevelAvailable | property |
activityLevelAvailable:Boolean [read-only] Returns true if the activity level is available
public function get activityLevelAvailable():Boolean| audioEnabled | property |
audioEnabled:BooleanEnables / disables the broadcasting of the audio part of the stream.
public function get audioEnabled():Boolean public function set audioEnabled(value:Boolean):void| audioQualityPercent | property |
audioQualityPercent:NumberSets and gets the audio quality percent.
public function get audioQualityPercent():Number public function set audioQualityPercent(value:Number):void| audioQualityValue | property |
audioQualityValue:Number [read-only] Returns the audio quality.
public function get audioQualityValue():Number| broadcasting | property |
broadcasting:Boolean [read-only] Returns the broadcasting state of the stream.
public function get broadcasting():Boolean| cameraName | property |
cameraName:StringSets and gets the current video device's name.
public function get cameraName():String public function set cameraName(value:String):void| cameraNames | property |
cameraNames:Array [read-only] Returns the list of available video devices.
public function get cameraNames():Array| canSetDevices | property |
canSetDevices:Boolean [read-only] Returns true, if the broadcaster is allowed set the video device.
public function get canSetDevices():Boolean| canSetQuality | property |
canSetQuality:Boolean [read-only] Returns true, if the broadcaster is allowed set the quality of the video.
public function get canSetQuality():Boolean| canSetVolume | property |
canSetVolume:Boolean [read-only] Returns true, if the broadcaster is allowed set the volume.
public function get canSetVolume():Boolean| canSetWideScreen | property |
canSetWideScreen:Boolean [read-only] public function get canSetWideScreen():Boolean| fpsPercent | property |
fpsPercent:NumberSets and gets the fps percent.
public function get fpsPercent():Number public function set fpsPercent(value:Number):void| fpsValue | property |
fpsValue:Number [read-only] Gets the fps value.
public function get fpsValue():Number| localMonitorAvailable | property |
localMonitorAvailable:Boolean [read-only] Returns true if the local monitor is available.
public function get localMonitorAvailable():Boolean| localMonitorEnabled | property |
localMonitorEnabled:BooleanSets and gets if the monitor should show the local stream.
public function get localMonitorEnabled():Boolean public function set localMonitorEnabled(value:Boolean):void| microphoneName | property |
microphoneName:StringSets and gets the current audio device.
public function get microphoneName():String public function set microphoneName(value:String):void| microphoneNames | property |
microphoneNames:Array [read-only] Returns the list of available audio devices.
public function get microphoneNames():Array| remoteMonitorAvailable | property |
remoteMonitorAvailable:Boolean [read-only] Returns true, if the remote monitor is available.
public function get remoteMonitorAvailable():Boolean| remoteMonitorEnabled | property |
remoteMonitorEnabled:BooleanSets and gets if the monitor should show the encoded stream. Used to verify the quality of the stream. It doesn't show the stream on the server, only the result of the encoding process.
public function get remoteMonitorEnabled():Boolean public function set remoteMonitorEnabled(value:Boolean):void| streamNamePrefix | property |
streamNamePrefix:String [read-only] Generates a random prefix which will constant for this session.
public static function get streamNamePrefix():String| videoEnabled | property |
videoEnabled:BooleanEnables / disables the broadcasting of the video part of the stream.
public function get videoEnabled():Boolean public function set videoEnabled(value:Boolean):void| videoQualityPercent | property |
videoQualityPercent:NumberSets and gets the video quality in percent. Saves it to the Shared too.
public function get videoQualityPercent():Number public function set videoQualityPercent(value:Number):voidSee also
| videoQualityValue | property |
videoQualityValue:Number [read-only] Returns the video quality.
public function get videoQualityValue():Number| volume | property |
volume:NumberSets and gets the volume
public function get volume():Number public function set volume(value:Number):void| wideScreen | property |
wideScreen:Boolean public function get wideScreen():Boolean public function set wideScreen(value:Boolean):void| Publisher | () | Constructor |
public function Publisher(logic:Logic, fms:Connection)Constructor.
Parameterslogic:Logic | |
fms:Connection |
| audioQualityFormat | () | method |
public function audioQualityFormat(percent:Number = 0):StringFormats the percent value of the audio quality to a more user friendly format.
Parameters
percent:Number (default = 0) |
String —
|
| destroy | () | method |
override public function destroy(... e):*Clean up method.
Parameters
... e |
* —
|
| fmeConnected | () | method |
protected function fmeConnected(streamName:String = null, online:Boolean = false, serverUrl:String = null, forced:Boolean = false):voidAbstract method.
Parameters
streamName:String (default = null) | |
online:Boolean (default = false) | |
serverUrl:String (default = null) | |
forced:Boolean (default = false) |
| fpsFormat | () | method |
public function fpsFormat(percent:Number = 0):StringFormats the percent value of the fps to a more user friendly format.
Parameters
percent:Number (default = 0) |
String —
|
| init | () | method |
protected function init():voidAbstract method.
| onBroadcastStarted | () | method |
protected function onBroadcastStarted(... e):voidParameters
... e |
| startBroadcast | () | method |
public function startBroadcast():voidIf the logic isn't in sleep mode, then calls the FMS to put the stream online.
| stopBroadcast | () | method |
public function stopBroadcast():voidCalls the FMS to put the stream offline.
| videoQualityFormat | () | method |
public function videoQualityFormat(percent:Number = 0):StringFormats the percent value of the video quality to a more user friendly format.
Parameters
percent:Number (default = 0) |
String —
|
| cameraName | Event |
flash.events.EventFires when the broadcaster changes the selected video device.
| localMonitor | Event |
flash.events.EventFires when the local stream selected as monitor.
| microphoneName | Event |
flash.events.EventFires when the broadcaster changes the selected audio device.
| remoteMonitor | Event |
flash.events.EventFires, when the server stream selected as monitor