How do I observe camera events?

You can observe a camera's events at any time (even before you create it) by using the camera's id and the CameraTag.observe method. Here is an example observing the 'MyRecorder1' publish event:
CameraTag.observe('MyRecorder1', 'published', function(){
 alert('this video has been published!')
});

initialized

Intitialized and is ready for use

waitingForCameraActivity

This event is fired when the CameraTag has found one or more available cameras but is unable to detect any video. This state is most often the result of a user granting camera permission at the flash level but not the browser level.

serverConnected

Successfully connected to the streaming server

serverDisconnected

Connection to our streaming server was lost.

serverError

Failure to connect to the streaming server

detectingCamera

Detecting active webcam

noMic

Unable to find a microphone

readyToRecord

Camera and Mic found and configured properly

countdownStarted

Preroll has begun

countdownFinished

Preroll finished

recordingStarted

Recording started

audioLevel(volume)

This returns the current recording volume (on a scale 0-100).

recordingStopped

Recording stopped

bufferingUp

Recording has stopped and we are buffering video to server

readyToPublish

Recording stopped and record buffer has flushed to server.

bufferingDown

Buffering video from server for playback

recordingTimeOut

Recording stopped by CameraTag because maxLength exceeded

playbackStarted

Playback of recorded video has begun

playbackStopped

Playback stopped

uploadFileSelected(file)

A file has been slected for upload. Recieves a file object

uploadStarted

A file upload (not recording) has started

uploadProgress(file)

Periodically fired to provide upload status. Recieves a file object with loaded (bytes) and percent (of total) properties

uploadAborted(error_details)

there was an error uploading the file. Error details passed as string with event.

publishing

The video has begun publishing to the CameraTag server

published

The video was has finsihed publishing to the CameraTag sever

publishFailed

The video failed to publish

processed

The video has processing and the asset URLs are now live. Please note this event will only fire if you have "poll for processed" attribute set to true on your <camera>. learn how

processingFailed

This event fires if the transcoding of your video fails.

cameraReset

This event fires after a camera has been reset(). This indicates that the camera is ready to be used (by the user or programatically) again.

paused

This event fires if/when the browser pauses the operation of the Flash elements of the <camera> tag.

unpaused

This event fires if/when the user instructs the browse to unpause the flash element of the <camera> tag.

destroyed

This event fires after a <camera> has beeen successfully removed from the page.