Packagecom.adobe.rtc.session.managers
Classpublic class SessionManagerPlayback
InheritanceSessionManagerPlayback Inheritance com.adobe.rtc.session.managers.SessionManagerAdobeHostedServices

SessionManagerPlayback is fiendishly constructed. Sequence : 1) Connect to FMS 2) Play the pacingStream in order to get the total time of the recording 3) PacingStream's onMetadata will tell you the total. Stop the pacing stream from here. 4) Flush the offsets stream to get a table of all the streams in this recording, and their offsets. (see definition of "flushing") 5) set a timeout to receiveLogin 6) Start the pacing timer 7) ConnectSession will start subscribing the rootCollection and managers 8) Once that's done, the app logic will start subscribing the individual collections



Public Properties
 PropertyDefined by
  archiveID : String
SessionManagerPlayback
  currentTime : Number = 0
SessionManagerPlayback
  totalTime : Number = -1
SessionManagerPlayback
Protected Properties
 PropertyDefined by
  _avStreams : Object
SessionManagerPlayback
  _dataStreams : Object
SessionManagerPlayback
  _isDisconnected : Boolean = false
SessionManagerPlayback
  _isPlaying : Boolean = true
SessionManagerPlayback
  _lastTime : Number
SessionManagerPlayback
  _lengthPaceStream : NetStream
SessionManagerPlayback
  _offsetsRead : Boolean = false
SessionManagerPlayback
  _offsetStream : NetStream
SessionManagerPlayback
  _offsetTable : Object
SessionManagerPlayback
  PACING_INTERVAL : int = 250
[static]
SessionManagerPlayback
  _pacingTimer : Timer
SessionManagerPlayback
  _startTime : Number
SessionManagerPlayback
  _streamSeekTable : Object
SessionManagerPlayback
Public Methods
 MethodDefined by
  
SessionManagerPlayback
  
onMetaData(info:Object):void
SessionManagerPlayback
  
onOffsetStreamPlayStatus(info:Object):void
SessionManagerPlayback
  
onPlayStatus(info:Object):void
SessionManagerPlayback
  
called when a seek ends and the SeekClient receives an onPlayStatus "switch"
SessionManagerPlayback
  
receiveLogin(p_userData:Object):void
SessionManagerPlayback
  
receiveStreamOffset(p_name:String, p_offset:Number):void
SessionManagerPlayback
  
streamRecordingStart(p_collectionName:String):void
SessionManagerPlayback
  
SessionManagerPlayback
Protected Methods
 MethodDefined by
  
getFMSXML(p_suffix:String = ""):void
SessionManagerPlayback
  
getStreamPath(p_name:String):String
SessionManagerPlayback
  
myTrace(... args):void
SessionManagerPlayback
  
onConnected(p_evt:Event):void
SessionManagerPlayback
  
onFmsConnectorDisconnect(p_evt:Event):void
SessionManagerPlayback
  
onPacing(p_evt:TimerEvent):void
SessionManagerPlayback
Protected Constants
 ConstantDefined by
  OFFSET_FILE_NAME : String = "__StreamOffsets"
[static]
SessionManagerPlayback
  PACING_FILE_NAME : String = "__PacingStream"
[static]
SessionManagerPlayback
Property detail
archiveIDproperty
public var archiveID:String
_avStreamsproperty 
protected var _avStreams:Object
currentTimeproperty 
public var currentTime:Number = 0
_dataStreamsproperty 
protected var _dataStreams:Object
_isDisconnectedproperty 
protected var _isDisconnected:Boolean = false
_isPlayingproperty 
protected var _isPlaying:Boolean = true
isSynchronizedproperty 
isSynchronized:Boolean  [write-only]Implementation
    session_internal function set isSynchronized(value:Boolean):void
_lastTimeproperty 
protected var _lastTime:Number
_lengthPaceStreamproperty 
protected var _lengthPaceStream:NetStream
_offsetsReadproperty 
protected var _offsetsRead:Boolean = false
_offsetStreamproperty 
protected var _offsetStream:NetStream
_offsetTableproperty 
protected var _offsetTable:Object
PACING_INTERVALproperty 
protected static var PACING_INTERVAL:int = 250
_pacingTimerproperty 
protected var _pacingTimer:Timer
_startTimeproperty 
protected var _startTime:Number
_streamSeekTableproperty 
protected var _streamSeekTable:Object
totalTimeproperty 
public var totalTime:Number = -1
Constructor detail
SessionManagerPlayback()constructor
public function SessionManagerPlayback()
Method detail
getAndPlayAVStream()method
session_internal override function getAndPlayAVStream(p_streamID:String, p_peerID:String = null):NetStreamParameters
p_streamID:String
 
p_peerID:String (default = null)

Returns
NetStream
getFMSXML()method 
protected override function getFMSXML(p_suffix:String = ""):voidParameters
p_suffix:String (default = "")
getStreamPath()method 
protected function getStreamPath(p_name:String):StringParameters
p_name:String

Returns
String
isPaused()method 
session_internal function isPaused():Boolean

Returns
Boolean
myTrace()method 
protected function myTrace(... args):voidParameters
... args
onAVSeekPause()method 
session_internal function onAVSeekPause(p_stream:NetStream):voidParameters
p_stream:NetStream
onConnected()method 
protected function onConnected(p_evt:Event):voidParameters
p_evt:Event
onFmsConnectorDisconnect()method 
protected override function onFmsConnectorDisconnect(p_evt:Event):voidParameters
p_evt:Event
onMetaData()method 
public function onMetaData(info:Object):voidParameters
info:Object
onOffsetStreamPlayStatus()method 
public function onOffsetStreamPlayStatus(info:Object):voidParameters
info:Object
onPacing()method 
protected function onPacing(p_evt:TimerEvent):voidParameters
p_evt:TimerEvent
onPlayStatus()method 
public function onPlayStatus(info:Object):voidParameters
info:Object
onSeekComplete()method 
public function onSeekComplete(p_client:PlaybackSeekClient):void

called when a seek ends and the SeekClient receives an onPlayStatus "switch"

Parameters
p_client:PlaybackSeekClient
pause()method 
session_internal function pause(p_toggle:Boolean):voidParameters
p_toggle:Boolean
receiveLogin()method 
public override function receiveLogin(p_userData:Object):voidParameters
p_userData:Object
receiveStreamOffset()method 
public function receiveStreamOffset(p_name:String, p_offset:Number):voidParameters
p_name:String
 
p_offset:Number
seek()method 
session_internal function seek(p_time:Number):voidParameters
p_time:Number
streamRecordingStart()method 
public function streamRecordingStart(p_collectionName:String):voidParameters
p_collectionName:String
streamRecordingStop()method 
public function streamRecordingStop():void
subscribeCollection()method 
session_internal override function subscribeCollection(p_collectionName:String = null, p_nodeNames:Array = null):voidParameters
p_collectionName:String (default = null)
 
p_nodeNames:Array (default = null)
unsubscribeCollection()method 
session_internal override function unsubscribeCollection(p_collectionName:String = null):void

Parameters
p_collectionName:String (default = null)
Constant detail
OFFSET_FILE_NAMEconstant
protected static const OFFSET_FILE_NAME:String = "__StreamOffsets"
PACING_FILE_NAMEconstant 
protected static const PACING_FILE_NAME:String = "__PacingStream"




 

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/session/managers/SessionManagerPlayback.html