You can also view
You are viewing documentation for version 14. This is the most recent stable release!

room JS Events

You can be notified when events occur in your <room> using our Javascript API. Below is a full list of the available events.

How do I observe room events?
initialized
connected
publishing
publishing_stopped
new_stream
stream_left
disconnected

How do I observe room events?

You can observe a room's events at any time (even before you create it) by using the room's id and the CameraTag.observe method. Here is an example observing the 'MyRecorder1' publish event:
CameraTag.observe('MyRoom1', 'connected', function(){
 alert('You are connected to the room!')
});

initialized

Intitialized and is ready for use

connected

The user has been connected to the room

publishing

The user has started publishing video and/or audio to the room

publishing_stopped

The user has stopped publishing to the room

new_stream

A new user has started streaming to the room

stream_left

A user has left the room

disconnected

The user disconnected from the room