List of events

Here is the list of events generated by the Nimbb Player. You can intercept them in your JavaScript code.

Events are generated only if you specify your developer key as a parameter. See our tutorial for help.

Nimbb_captureChanged(idPlayer, allowed) The user has changed the Adobe Flash Player's privacy settings to allow access to camera/microphone. Parameter allowed is set to 'true' if access is allowed.
Nimbb_initCompleted(idPlayer) The player has been initialized and is ready. You can safely start calling the player's methods.
Nimbb_initStarted(idPlayer) The player is being initialized and not yet ready. You can however get a reference to the player object here.
Nimbb_microTick(idPlayer, level) While recording a video, this event is called every second. Parameter level indicates the value of microphone recording level from 0 (no sound) to 100 (full sound). Use this value for audio detection.
Nimbb_modeChanged(idPlayer, mode) The mode of the player changed, which can be 'view' or 'record'.
Nimbb_noCameraDetected(idPlayer) The player did not detect a camera.
Nimbb_noMicroDetected(idPlayer) The player did not detect a microphone.
Nimbb_playbackStarted(idPlayer) The player has started playing.
Nimbb_playbackStopped(idPlayer, endReached) The player has stopped playing. Parameter endReached is set to 'true' if the video played until the end.
Nimbb_playbackTick(idPlayer, seconds) While playing a video, this event is called every second. Parameter seconds indicates the current position of playback.
Nimbb_recordingStarted(idPlayer) The player has started recording.
Nimbb_recordingStopped(idPlayer) The player has stopped recording.
Nimbb_recordLengthChanged(idPlayer, seconds) The maximum recording length has changed.
Nimbb_stateChanged(idPlayer, state) The state of the player changed. Possible values: 'init', 'ready', 'busy', 'recording', 'playing', 'error'.
Nimbb_videoSaved(idPlayer) The video was saved.
Nimbb_volumeChanged(idPlayer, volume) The volume level of the viewer changed, values from 0 (no sound) to 100 (max).

Note the idPlayer parameter containing the name of the player that called the event. For an example of using events in your code, see our tutorial.

SIGN UP NOW 7-day free trial

Check out our Developer guide to get started with Nimbb.