| Package | com.adobe.rtc.collaboration |
| Class | public class ScreenSharePublisher |
| Inheritance | ScreenSharePublisher mx.core.UIComponent |
| Implements | ISessionSubscriber |
It also provides an facility to do following:
When ScreenSharePublisher is launched, a dialog will appear on the publisher side and ask permission to share user's desktop. Publisher user has opportunity to select following choices:
User can choose above option or he/she can also cancel the screen share. The ScreenSharePublisher has no user interface of its own, but provides a basic API through which any commands concerning publishing screen share should be routed. You can load publisher on stage as your display component through addChild method. By default, only users with role UserRoles.PUBLISHER or greater may publish screen share, and all users with role of greater than UserRoles.VIEWER are able to subsribe to these streams. What is NOT in this feature Ability to control screen during a screen share session is an advanced feature. As of now, ScreenSharePublisher does not allow user to control screen. Here is the example of calling sequence to use ScreenSharePublisher
import com.adobe.rtc.collaboration.ScreenSharePublisher; var sspublisher:ScreenSharePublisher = new ScreenSharePublisher(); //this is optional var userlist:ArrayCollection = connectSession.userManager.userCollection; var recipientIDs:Array = new Array(); for(var i:int=0; i<userlist.length; i++){ recipientIDs.push((userlist.getItemAt(i) as UserDescriptor).userID); } // this is optional, default is everyone in the room can see the screen share sspublisher.recipientIDs = recipientIDs; // see APIs section for the options sspublisher.quality = DEFAULT_SS_QUALITY; sspublisher.performance = DEFAULT_SS_PERFORMANCE; sspublisher.keyframeInterval = DEFAULT_SS_KFI; sspublisher.fps = DEFAULT_SS_FPS; sspublisher.enableHFSS = DEFAULT_SS_ENABLEHFSS; sspublisher.bandwidth = DEFAULT_SS_BANDWIDTH; sspublisher.publish();
| Property | Defined by | ||
|---|---|---|---|
| accessModel : Number | ScreenSharePublisher | ||
| bandwidth : Number | ScreenSharePublisher | ||
| connectSession : IConnectSession
| ScreenSharePublisher | ||
| enableHFSS : Boolean | ScreenSharePublisher | ||
| fps : Number | ScreenSharePublisher | ||
| groupName : String | ScreenSharePublisher | ||
| isLaunched : Boolean [read-only]
| ScreenSharePublisher | ||
| isPaused : Boolean [read-only]
| ScreenSharePublisher | ||
| isPublishing : Boolean [read-only]
| ScreenSharePublisher | ||
| isSynchronized : Boolean [read-only]
| ScreenSharePublisher | ||
| keyFrameInterval : Number | ScreenSharePublisher | ||
| performance : Number | ScreenSharePublisher | ||
| playerVersion : Number | ScreenSharePublisher | ||
| publishModel : Number | ScreenSharePublisher | ||
| quality : Number | ScreenSharePublisher | ||
| sharedID : String | ScreenSharePublisher | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| ScreenSharePublisher | ||
|
addinReadyForLC(status:String):void
| ScreenSharePublisher | ||
|
addinSharingStoppedForLC(status:String):void
| ScreenSharePublisher | ||
|
close():void
TODO: close vs.
| ScreenSharePublisher | ||
|
Gets the NodeConfiguration that defines message permissions and storage policies for the current stream group.
| ScreenSharePublisher | ||
|
getUserRole(p_userID:String):int
Returns the given stream publisher or subscriber's user role within the stream's group.
| ScreenSharePublisher | ||
|
pause(p_pause:Boolean):void
| ScreenSharePublisher | ||
|
publish():void
| ScreenSharePublisher | ||
|
setNodeConfiguration(p_nodeConfiguration:NodeConfiguration):void
Sets the NodeConfiguration that defines message permissions and storage policies for the current stream group.
| ScreenSharePublisher | ||
|
setUserRole(p_userID:String, p_userRole:int):void
Sets the user role that enables publishing to the component's group specified by the
groupName. | ScreenSharePublisher | ||
|
stop(p_publisherid:String = null):void
| ScreenSharePublisher | ||
|
subscribe():void
methods
| ScreenSharePublisher | ||
| Method | Defined by | ||
|---|---|---|---|
|
onSynchronizationChange(p_evt:CollectionNodeEvent):void
EVENTS
| ScreenSharePublisher | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when the jey frame interval of camera changes. | ScreenSharePublisher | |||
| Dispatched when the camera is accessed for publishing or is stopped. | ScreenSharePublisher | |||
| Dispatched when Adobe Addin failed to launch. | ScreenSharePublisher | |||
| Dispatched when the FPS of the camera has changed. | ScreenSharePublisher | |||
| Dispatched when the jey frame interval of camera changes. | ScreenSharePublisher | |||
| Dispatched when the user's camera publishing state changes. | ScreenSharePublisher | |||
| Dispatched when the jey frame interval of camera changes. | ScreenSharePublisher | |||
| Dispatched when Adobe Addin is launched. | ScreenSharePublisher | |||
| Dispatched when the jey frame interval of camera changes. | ScreenSharePublisher | |||
| Dispatched when the quality of the camera has changed. | ScreenSharePublisher | |||
| Dispatched when Adobe Addin failed to launch. | ScreenSharePublisher | |||
| Dispatched when the current user's webcam stream stops publishing. | ScreenSharePublisher | |||
| Dispatched when the current user's webcam stream is paused. | ScreenSharePublisher | |||
| Dispatched when the current user's webcam stream is published by the component. | ScreenSharePublisher | |||
| Dispatched when the component either loses its connection to the session or regains it and has finished re-synchronizing itself to the rest of the room. | ScreenSharePublisher | |||
| Dispatched when the user's role with respect to the component changes. | ScreenSharePublisher | |||
| accessModel | property |
accessModel:Number [read-write]Implementation
public function get accessModel():Number
public function set accessModel(value:Number):void
| bandwidth | property |
bandwidth:Number [read-write]Implementation
public function get bandwidth():Number
public function set bandwidth(value:Number):void
| connectSession | property |
connectSession:IConnectSession [read-write]Implementation
public function get connectSession():IConnectSession
public function set connectSession(value:IConnectSession):void
| enableHFSS | property |
enableHFSS:Boolean [read-write]Implementation
public function get enableHFSS():Boolean
public function set enableHFSS(value:Boolean):void
| fps | property |
fps:Number [read-write]Implementation
public function get fps():Number
public function set fps(value:Number):void
| groupName | property |
groupName:String [read-write]Implementation
public function get groupName():String
public function set groupName(value:String):void
| isLaunched | property |
isLaunched:Boolean [read-only]Implementation
public function get isLaunched():Boolean
| isPaused | property |
isPaused:Boolean [read-only]
This property can be used as the source for data binding.
Implementation public function get isPaused():Boolean
| isPublishing | property |
isPublishing:Boolean [read-only]
This property can be used as the source for data binding.
Implementation public function get isPublishing():Boolean
| isSynchronized | property |
isSynchronized:Boolean [read-only]Implementation
public function get isSynchronized():Boolean
| keyFrameInterval | property |
keyFrameInterval:Number [read-write]Implementation
public function get keyFrameInterval():Number
public function set keyFrameInterval(value:Number):void
| performance | property |
performance:Number [read-write]Implementation
public function get performance():Number
public function set performance(value:Number):void
| playerVersion | property |
playerVersion:Number [read-write]Implementation
public function get playerVersion():Number
public function set playerVersion(value:Number):void
| publishModel | property |
publishModel:Number [read-write]Implementation
public function get publishModel():Number
public function set publishModel(value:Number):void
| quality | property |
quality:Number [read-write]Implementation
public function get quality():Number
public function set quality(value:Number):void
| sharedID | property |
sharedID:String [read-write]Implementation
public function get sharedID():String
public function set sharedID(value:String):void
| ScreenSharePublisher | () | constructor |
public function ScreenSharePublisher()Constructor. Creates Instance of the ScreenSharePublisher object and set up resources needed for screen sharing.
| addinReadyForLC | () | method |
public function addinReadyForLC(status:String):voidParameters
status:String |
| addinSharingStoppedForLC | () | method |
public function addinSharingStoppedForLC(status:String):voidParameters
status:String |
| close | () | method |
public function close():voidTODO: close vs. stop?
| getNodeConfiguration | () | method |
public function getNodeConfiguration():NodeConfigurationGets the NodeConfiguration that defines message permissions and storage policies for the current stream group.
ReturnsNodeConfiguration |
| getUserRole | () | method |
public function getUserRole(p_userID:String):intReturns the given stream publisher or subscriber's user role within the stream's group.
Parametersp_userID:String — The user ID of the user whose role we should get.
|
int |
| onSynchronizationChange | () | method |
protected function onSynchronizationChange(p_evt:CollectionNodeEvent):voidEVENTS
Parametersp_evt:CollectionNodeEvent |
| pause | () | method |
public function pause(p_pause:Boolean):voidParameters
p_pause:Boolean |
| publish | () | method |
public function publish():void
| setNodeConfiguration | () | method |
public function setNodeConfiguration(p_nodeConfiguration:NodeConfiguration):voidSets the NodeConfiguration that defines message permissions and storage policies for the current stream group.
Parametersp_nodeConfiguration:NodeConfiguration — The current stream groups node configuration.
|
| setUserRole | () | method |
public function setUserRole(p_userID:String, p_userRole:int):void
Sets the user role that enables publishing to the component's group specified by the groupName.
p_userID:String — The user ID of the user whose role should be set.
|
|
p_userRole:int — The role value to assign to the user with this user ID.
|
| stop | () | method |
public function stop(p_publisherid:String = null):voidParameters
p_publisherid:String (default = null) |
| subscribe | () | method |
public function subscribe():voidmethods
| bandwidthChanged | event |
com.adobe.rtc.events.CameraConfigurationEvent
Dispatched when the jey frame interval of camera changes.
| change | event |
flash.events.Event
Dispatched when the camera is accessed for publishing or is stopped.
| fail | event |
com.adobe.rtc.events.AddinLauncherEvent
Dispatched when Adobe Addin failed to launch.
| fpsChanged | event |
com.adobe.rtc.events.CameraConfigurationEvent
Dispatched when the FPS of the camera has changed.
| hfssChanged | event |
com.adobe.rtc.events.CameraConfigurationEvent
Dispatched when the jey frame interval of camera changes.
| isScreenSharePublishingChanged | event |
| keyFrameIntervalChanged | event |
com.adobe.rtc.events.CameraConfigurationEvent
Dispatched when the jey frame interval of camera changes.
| launch | event |
| performanceChanged | event |
com.adobe.rtc.events.CameraConfigurationEvent
Dispatched when the jey frame interval of camera changes.
| qualityChanged | event |
com.adobe.rtc.events.CameraConfigurationEvent
Dispatched when the quality of the camera has changed.
| stop | event |
com.adobe.rtc.events.AddinLauncherEvent
Dispatched when Adobe Addin failed to launch.
| streamDelete | event |
com.adobe.rtc.events.StreamEvent
Dispatched when the current user's webcam stream stops publishing.
| streamPause | event |
com.adobe.rtc.events.StreamEvent
Dispatched when the current user's webcam stream is paused.
| streamReceive | event |
com.adobe.rtc.events.StreamEvent
Dispatched when the current user's webcam stream is published by the component.
| synchronizationChange | event |
com.adobe.rtc.events.CollectionNodeEvent
Dispatched when the component either loses its connection to the session or regains it and has finished re-synchronizing itself to the rest of the room.
| userRoleChange | event |
com.adobe.rtc.events.CollectionNodeEvent
Dispatched when the user's role with respect to the component changes.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/collaboration/ScreenSharePublisher.html