This class defines an event object dispatched when an archive is created, closed, or loaded; when an archive recording starts or stops; or when an archive starts or stops playing back. The following events are defined by the ArchiveEvent class:
archiveCreated See Session.createArchive().
archiveClosed See Session.closeArchive().
archiveLoaded See Session.loadArchive().
archiveSaved See Recorder.saveArchive().
playbackStarted See Archive.startPlayback().
playbackStopped See Archive.stopPlayback().
sessionRecordingStarted See Session.startRecording().
sessionRecordingStopped See Session.stopRecording().
The ArchiveEvent object has the following properties:
archives (Array[Archive]) An array of Archive objects. Currently, this array contains one element: the Archive object related to the event:
archiveClosed event, this
Archive object corresponds to the archive that was closed. archiveCreated event, this
Archive object corresponds to the created archive. archiveLoaded event, this
Archive object corresponds to the archive that was loaded.archiveSaved event, this
Archive object corresponds to the archive that was saved.playbackStarted event, this
Archive object corresponds to the archive that starts playing back. playbackStopped event, this
Archive object corresponds to the archive that stops playing back. sessionRecordingStarted event this
Archive object corresponds to the archive that is being recorded to.
sessionRecordingStopped event this
Archive object corresponds to the archive in which recording stopped.
target (Object) The object that dispatched the event.
type (String) The type of event. There are the following types of ArchiveEvent event:
"archiveCreated" An archive has been created."archiveLoaded" An archive has been loaded."archiveSaved" An archive has been saved."playbackStarted" The archive has started playing back."playbackStopped" The archive has stopped playing back."sessionRecordingStarted" A per-session recording has started."sessionRecordingStopped" A per-session recording has stopped.