Packagecom.adobe.rtc.collaboration
Classpublic class ScreenShareSubscriber
InheritanceScreenShareSubscriber Inheritance mx.core.UIComponent
ImplementsISessionSubscriber
SubclassesScreenShareSubscriberComplex

ScreenShareSubscriber is the foundation class for receiving and displaying screen share in a meeting room. By default, ScreenShareSubscriber simply subscribes to StreamManager notifications and plays screen share in the room with default publisherID or it can also accept an publisherID which restricts the screen share publisher that can publish to this subscriber. ScreenShareSubscriber is a basic screen share subscriber component, it does the minmum needed to subscribe to the screen share. Use ScreenShareSubscriberComplex to enhance the feature with zoom and annotations. Example: _ssSubscriber = new ScreenShareSubscriber(); _ssSubscriber.publisherID = myScreenSharePublisherID; //OPTIONAL, if there is only one publisher in the room, then that publisherID is default. _ssSubscriber.connectSession = _cSession; _ssSubscriber.graphics.drawRect(0, 0, stage.width, stage.height); addChild(_ssSubscriber);

See also

com.adobe.rtc.collaboration.ScreenSharePublisher
com.adobe.rtc.collaboration.ScreenShareSubscriberComplex
com.adobe.rtc.pods.WebCamera
com.adobe.rtc.sharedManagers.StreamManager
com.adobe.rtc.sharedManagers.descriptors.StreamDescriptor


Public Properties
 PropertyDefined by
  connectSession : IConnectSession
return the connectSession object
ScreenShareSubscriber
  fitToWidthPercent : Number
[read-only]
ScreenShareSubscriber
  groupName : String
Components (pods) are assigned to a group via groupName; if not specified, the component is assigned to the default, public group (the room at large).
ScreenShareSubscriber
  iAmPreparingToShare : Boolean
[read-only] returns true if you are preparing to share or if someone else is preparing
ScreenShareSubscriber
  iAmSharing : Boolean
[read-only] returns true if you or someone else is sharing
ScreenShareSubscriber
  isSynchronized : Boolean
[read-only]
ScreenShareSubscriber
  publisherID : String
getting the publisher id for whom you like to view their screen share stream
ScreenShareSubscriber
  scaleToFitPercent : Number
[read-only]
ScreenShareSubscriber
  sharedID : String
Defines the logical location of the component on the service; typically this assigns the sharedID of the collectionNode used by the component.
ScreenShareSubscriber
  sharerUserID : String
[read-only] getting the publisher's id, this is the default streampublisher id
ScreenShareSubscriber
  showMouse : Boolean = true
ScreenShareSubscriber
  showMyStream : Boolean
ScreenShareSubscriber
  someoneElseIsPreparingToShare : Boolean
[read-only] returns true if you are preparing to share or if someone else is preparing
ScreenShareSubscriber
  someoneElseIsSharing : Boolean
[read-only] returns true if you are preparing to share or if someone else is sharing
ScreenShareSubscriber
  videoPercentage : Number
[read-only]
ScreenShareSubscriber
  zoomMode : uint
ScreenShareSubscriber
Protected Properties
 PropertyDefined by
  _autoHideCursorTimer : Timer
ScreenShareSubscriber
  _background : Canvas
ScreenShareSubscriber
  _controlStreamID : String
ScreenShareSubscriber
  _fitToWidthPercent : Number = 0
ScreenShareSubscriber
  _ignoreAutoScrollTimer : Timer
ScreenShareSubscriber
  _invShowMyStream : Boolean = false
ScreenShareSubscriber
  _lastCursorData : Object
ScreenShareSubscriber
  _lastPositionSet : Boolean = false
ScreenShareSubscriber
  _lastX : Number
ScreenShareSubscriber
  _lastY : Number
ScreenShareSubscriber
  _phase : uint = 0
ScreenShareSubscriber
  _publisherID : String
ScreenShareSubscriber
  _requestStreamName : String
ScreenShareSubscriber
  _scaleToFitPercent : Number = 0
ScreenShareSubscriber
  _screenShareDescriptor : StreamDescriptor
ScreenShareSubscriber
  _screenShareNetStream : NetStream
ScreenShareSubscriber
  _screenShareNet_streamIDchanged : Boolean = false
ScreenShareSubscriber
  _shareCursor : ScreenShareSubscriberCursor
ScreenShareSubscriber
  _shareCursorMove : Move
ScreenShareSubscriber
  _sharerUserID : String
ScreenShareSubscriber
  _showMyStream : Boolean = false
ScreenShareSubscriber
  _streamID : String
ScreenShareSubscriber
  _streamManager : StreamManager
ScreenShareSubscriber
  _userManager : UserManager
ScreenShareSubscriber
  _videoComponent : VideoComponent
ScreenShareSubscriber
  _videoPercentage : Number
ScreenShareSubscriber
  _zoomMode : uint = 1
ScreenShareSubscriber
  _zoomModeChanged : Boolean = true
ScreenShareSubscriber
Public Methods
 MethodDefined by
  
ScreenShareSubscriber
  
close():void
ScreenShareSubscriber
  
cursorData(p_x:Number, p_y:Number, p_type:Number, p_isDown:Boolean):void
ScreenShareSubscriber
  
cursorDataNull(p_x:Number, p_y:Number, p_type:Number, p_isDown:Boolean):void
ScreenShareSubscriber
  
subscribe():void
Subscribes to a particular stream.
ScreenShareSubscriber
Protected Methods
 MethodDefined by
  
calculateZoom(zoomType:Number, p_width:Number, p_height:Number, p_isAdvanceCalculate:Boolean = false):void
ScreenShareSubscriber
  
cleanUpVideo():void
ScreenShareSubscriber
  
ScreenShareSubscriber
  
onAutoHide(p_evt:TimerEvent):void
ScreenShareSubscriber
  
onBackgroundScroll(p_evt:ScrollEvent = null):void
ScreenShareSubscriber
  
ScreenShareSubscriber
  
ScreenShareSubscriber
  
ScreenShareSubscriber
  
ScreenShareSubscriber
  
ScreenShareSubscriber
  
ScreenShareSubscriber
Events
 EventSummaryDefined by
    ScreenShareSubscriber
    ScreenShareSubscriber
    ScreenShareSubscriber
    ScreenShareSubscriber
    ScreenShareSubscriber
    ScreenShareSubscriber
   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.ScreenShareSubscriber
    ScreenShareSubscriber
    ScreenShareSubscriber
Public Constants
 ConstantDefined by
  ACTUAL_SIZE : uint = 100
[static]
ScreenShareSubscriber
  FIT_TO_WIDTH : uint = 1
[static]
ScreenShareSubscriber
  RIGHT_MOUSE_DOWN : String = "rightMouseDown"
[static]
ScreenShareSubscriber
  RIGHT_MOUSE_UP : String = "rightMouseUp"
[static]
ScreenShareSubscriber
  SCALE_TO_FIT : uint = 0
[static]
ScreenShareSubscriber
Protected Constants
 ConstantDefined by
  displayInvalidator : Invalidator
ScreenShareSubscriber
  PHASE_I_AM_PREPARING_TO_SHARE : uint = 1
ScreenShareSubscriber
  PHASE_I_AM_SHARING : uint = 2
ScreenShareSubscriber
  PHASE_IDLE : uint = 0
ScreenShareSubscriber
  PHASE_SOMEONE_ELSE_PREPARING : uint = 3
ScreenShareSubscriber
  PHASE_SOMEONE_ELSE_SHARING : uint = 4
ScreenShareSubscriber
Property detail
_autoHideCursorTimerproperty
protected var _autoHideCursorTimer:Timer
_backgroundproperty 
protected var _background:Canvas
connectSessionproperty 
connectSession:IConnectSession  [read-write]

return the connectSession object

Implementation
    public function get connectSession():IConnectSession
    public function set connectSession(value:IConnectSession):void
_controlStreamIDproperty 
protected var _controlStreamID:String
_fitToWidthPercentproperty 
protected var _fitToWidthPercent:Number = 0
fitToWidthPercentproperty 
fitToWidthPercent:Number  [read-only]Implementation
    public function get fitToWidthPercent():Number
groupNameproperty 
groupName:String  [read-write]

Components (pods) are assigned to a group via groupName; if not specified, the component is assigned to the default, public group (the room at large). Groups are like separate conversations within the room, but each conversation could employ one or more pods; for example, one "conversation" may use a web camera, chat, and whiteboard pod, with each pod using different access and publish models. Users are members of and can only see components within the group they are assigned. Room hosts can see all the groups and all the members in those groups.

Implementation
    public function get groupName():String
    public function set groupName(value:String):void
iAmPreparingToShareproperty 
iAmPreparingToShare:Boolean  [read-only]

returns true if you are preparing to share or if someone else is preparing

Implementation
    public function get iAmPreparingToShare():Boolean
iAmSharingproperty 
iAmSharing:Boolean  [read-only]

returns true if you or someone else is sharing

Implementation
    public function get iAmSharing():Boolean
_ignoreAutoScrollTimerproperty 
protected var _ignoreAutoScrollTimer:Timer
_invShowMyStreamproperty 
protected var _invShowMyStream:Boolean = false
isSynchronizedproperty 
isSynchronized:Boolean  [read-only]

This property can be used as the source for data binding.

Implementation
    public function get isSynchronized():Boolean
_lastCursorDataproperty 
protected var _lastCursorData:Object
_lastPositionSetproperty 
protected var _lastPositionSet:Boolean = false
_lastXproperty 
protected var _lastX:Number
_lastYproperty 
protected var _lastY:Number
_phaseproperty 
protected var _phase:uint = 0
_publisherIDproperty 
protected var _publisherID:String
publisherIDproperty 
publisherID:String  [read-write]

getting the publisher id for whom you like to view their screen share stream

Implementation
    public function get publisherID():String
    public function set publisherID(value:String):void
_requestStreamNameproperty 
protected var _requestStreamName:String
_scaleToFitPercentproperty 
protected var _scaleToFitPercent:Number = 0
scaleToFitPercentproperty 
scaleToFitPercent:Number  [read-only]Implementation
    public function get scaleToFitPercent():Number
_screenShareDescriptorproperty 
protected var _screenShareDescriptor:StreamDescriptor
_screenShareNetStreamproperty 
protected var _screenShareNetStream:NetStream
_screenShareNet_streamIDchangedproperty 
protected var _screenShareNet_streamIDchanged:Boolean = false
_shareCursorproperty 
protected var _shareCursor:ScreenShareSubscriberCursor
_shareCursorMoveproperty 
protected var _shareCursorMove:Move
sharedIDproperty 
sharedID:String  [read-write]

Defines the logical location of the component on the service; typically this assigns the sharedID of the collectionNode used by the component. sharedIDs should be unique within a room if they're expressing two unique locations. Note that this can only be assigned once before subscribe() is called. For components with an id property, sharedID defaults to that value.

Implementation
    public function get sharedID():String
    public function set sharedID(value:String):void
_sharerUserIDproperty 
protected var _sharerUserID:String
sharerUserIDproperty 
sharerUserID:String  [read-only]

getting the publisher's id, this is the default streampublisher id

Implementation
    public function get sharerUserID():String
showMouseproperty 
public var showMouse:Boolean = true
_showMyStreamproperty 
protected var _showMyStream:Boolean = false
showMyStreamproperty 
showMyStream:Boolean  [read-write]Implementation
    public function get showMyStream():Boolean
    public function set showMyStream(value:Boolean):void
someoneElseIsPreparingToShareproperty 
someoneElseIsPreparingToShare:Boolean  [read-only]

returns true if you are preparing to share or if someone else is preparing

Implementation
    public function get someoneElseIsPreparingToShare():Boolean
someoneElseIsSharingproperty 
someoneElseIsSharing:Boolean  [read-only]

returns true if you are preparing to share or if someone else is sharing

Implementation
    public function get someoneElseIsSharing():Boolean
_streamIDproperty 
protected var _streamID:String
_streamManagerproperty 
protected var _streamManager:StreamManager
_userManagerproperty 
protected var _userManager:UserManager
_videoComponentproperty 
protected var _videoComponent:VideoComponent
_videoPercentageproperty 
protected var _videoPercentage:Number
videoPercentageproperty 
videoPercentage:Number  [read-only]Implementation
    public function get videoPercentage():Number
_zoomModeproperty 
protected var _zoomMode:uint = 1
zoomModeproperty 
zoomMode:uint  [read-write]Implementation
    public function get zoomMode():uint
    public function set zoomMode(value:uint):void
_zoomModeChangedproperty 
protected var _zoomModeChanged:Boolean = true
Constructor detail
ScreenShareSubscriber()constructor
public function ScreenShareSubscriber()
Method detail
calculateZoom()method
protected function calculateZoom(zoomType:Number, p_width:Number, p_height:Number, p_isAdvanceCalculate:Boolean = false):voidParameters
zoomType:Number
 
p_width:Number
 
p_height:Number
 
p_isAdvanceCalculate:Boolean (default = false)
cleanUpVideo()method 
protected function cleanUpVideo():void
close()method 
public function close():void
cursorData()method 
public function cursorData(p_x:Number, p_y:Number, p_type:Number, p_isDown:Boolean):voidParameters
p_x:Number
 
p_y:Number
 
p_type:Number
 
p_isDown:Boolean
cursorDataNull()method 
public function cursorDataNull(p_x:Number, p_y:Number, p_type:Number, p_isDown:Boolean):voidParameters
p_x:Number
 
p_y:Number
 
p_type:Number
 
p_isDown:Boolean
doInitialSetup()method 
protected function doInitialSetup():void
onAutoHide()method 
protected function onAutoHide(p_evt:TimerEvent):voidParameters
p_evt:TimerEvent
onBackgroundScroll()method 
protected function onBackgroundScroll(p_evt:ScrollEvent = null):voidParameters
p_evt:ScrollEvent (default = null)
onDimensionsChange()method 
protected function onDimensionsChange(p_evt:StreamEvent):voidParameters
p_evt:StreamEvent
onStreamDelete()method 
protected function onStreamDelete(p_evt:StreamEvent):voidParameters
p_evt:StreamEvent
onStreamPause()method 
protected function onStreamPause(p_evt:StreamEvent):voidParameters
p_evt:StreamEvent
onStreamReceive()method 
protected function onStreamReceive(p_evt:StreamEvent):voidParameters
p_evt:StreamEvent
onSynchronizationChange()method 
protected function onSynchronizationChange(p_evt:CollectionNodeEvent):voidParameters
p_evt:CollectionNodeEvent
setUpFromDescriptor()method 
protected function setUpFromDescriptor(p_desc:StreamDescriptor):voidParameters
p_desc:StreamDescriptor
subscribe()method 
public function subscribe():void

Subscribes to a particular stream.

Event detail
controlStartedevent 
Event object type: com.adobe.rtc.events.ScreenShareEvent

controlStoppedevent  
Event object type: com.adobe.rtc.events.ScreenShareEvent

screenSharePausedevent  
Event object type: com.adobe.rtc.events.ScreenShareEvent

screenShareStartedevent  
Event object type: com.adobe.rtc.events.ScreenShareEvent

screenShareStartingevent  
Event object type: com.adobe.rtc.events.ScreenShareEvent

screenShareStoppedevent  
Event object type: com.adobe.rtc.events.ScreenShareEvent

synchronizationChangeevent  
Event object type: 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.

videoPercentageChangeevent  
Event object type: com.adobe.rtc.events.ScreenShareEvent

videoSnapShotevent  
Event object type: com.adobe.rtc.events.ScreenShareEvent

Constant detail
ACTUAL_SIZEconstant
public static const ACTUAL_SIZE:uint = 100
displayInvalidatorconstant 
protected const displayInvalidator:Invalidator
FIT_TO_WIDTHconstant 
public static const FIT_TO_WIDTH:uint = 1
PHASE_I_AM_PREPARING_TO_SHAREconstant 
protected const PHASE_I_AM_PREPARING_TO_SHARE:uint = 1
PHASE_I_AM_SHARINGconstant 
protected const PHASE_I_AM_SHARING:uint = 2
PHASE_IDLEconstant 
protected const PHASE_IDLE:uint = 0
PHASE_SOMEONE_ELSE_PREPARINGconstant 
protected const PHASE_SOMEONE_ELSE_PREPARING:uint = 3
PHASE_SOMEONE_ELSE_SHARINGconstant 
protected const PHASE_SOMEONE_ELSE_SHARING:uint = 4
RIGHT_MOUSE_DOWNconstant 
public static const RIGHT_MOUSE_DOWN:String = "rightMouseDown"
RIGHT_MOUSE_UPconstant 
public static const RIGHT_MOUSE_UP:String = "rightMouseUp"
SCALE_TO_FITconstant 
public static const SCALE_TO_FIT:uint = 0




 

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/ScreenShareSubscriber.html