Documentation

  • Filter
  • JavaScript Revision

If you want to know when recording was verified, regardless of which recorder it happened on, it might be easier to just set it all up to happen in one place, through the use of application wide embedding events, instead of setting it in each event on each embedding, plus it does decrease the amount of code you need to use.

It is good to point out that if you are after events that happen on a single embedding, or if you need to know on which embeding this happened on, it would be best to use our embedding events. When you need to listen to specific event and you do not care which embedding it happened on this is the right place.

We also have application events which are a bit different than the application embedding events that we will discus here, which you can find in the Application Events section.

To use this, you will need to have a reference to your application. This is explained on our Application Events page mentioned above, however for ease of reference, we will use the initialization code here:

    var application = new ZiggeoApi.V2.Application( { token: "YOUR_APPLICATION_TOKEN" } );
  1. attached

    Fires when the embedding is attached to the element, however it has not yet loaded

    Example:
    application.embed_event.on("attached", function () {
    	//Your code goes here
    });
  2. loaded

    Triggered when the player / recorder is loaded for the first time

    Example:
    application.embed_event.on("loaded", function () {
    	//Your code goes here
    });
  3. playing

    Fires after each play action is triggered (even if it was paused then played again, or if a seek operation is done)

    Example:
    application.embed_event.on("playing", function () {
    	//Your code goes here
    });
  4. paused

    Fires when the pause button is clicked and when the video reaches the end

    Example:
    application.embed_event.on("paused", function () {
    	//Your code goes here
    });
  5. ended

    Fires when the video has reached the end (right after the 'paused' event)

    Example:
    application.embed_event.on("ended", function () {
    	//Your code goes here
    });
  6. error

    Triggered when an embedding encounters an error

    Example:
    application.embed_event.on("error", function ( error ) {
    	//Your code goes here
    });
  7. manually_submitted

    Triggered when a video has been manually submitted by a user

    Example:
    application.embed_event.on("manually_submitted", function () {
    	//Your code goes here
    });
  8. uploaded

    Triggered when a video has been uploaded / recorded (but not processed)

    Example:
    application.embed_event.on("uploaded", function () {
    	//Your code goes here
    });
  9. upload_selected

    Triggered when a file has been selected for upload

    Example:
    application.embed_event.on("upload_selected", function ( file ) {
    	//Your code goes here
    });
  10. recording

    Triggered when the recording process has been started

    Example:
    application.embed_event.on("recording", function () {
    	//Your code goes here
    });
  11. uploading

    Triggered when the video is uploading

    Example:
    application.embed_event.on("uploading", function () {
    	//Your code goes here
    });
  12. seek

    Triggered when someone goes to the time position in video playback that is different than the currently played time position

    Example:
    application.embed_event.on("seek", function ( position ) {
    	//Your code goes here
    });
  13. rerecord

    Triggered when a recorded video has been discarded and is being re-recorded

    Example:
    application.embed_event.on("rerecord", function () {
    	//Your code goes here
    });
  14. countdown

    Triggered while the video recorder counts down

    Example:
    application.embed_event.on("countdown", function ( time ) {
    	//Your code goes here
    });
  15. recording_progress

    Triggered while the video recorder records the video

    Example:
    application.embed_event.on("recording_progress", function ( time ) {
    	//Your code goes here
    });
  16. upload_progress

    Upload progress events

    Example:
    application.embed_event.on("upload_progress", function ( uploaded, total ) {
    	//Your code goes here
    });
  17. processing

    Processing progress events

    Example:
    application.embed_event.on("processing", function ( percentage ) {
    	//Your code goes here
    });
  18. processed

    Finished processing event

    Example:
    application.embed_event.on("processed", function () {
    	//Your code goes here
    });
  19. access_forbidden

    Triggered when the user does not grant access to the camera

    Example:
    application.embed_event.on("access_forbidden", function ( error ) {
    	//Your code goes here
    });
  20. access_granted

    Triggered when the user grants access to the camera

    Example:
    application.embed_event.on("access_granted", function () {
    	//Your code goes here
    });
  21. camera_unresponsive

    Triggered when the camera has become unresponsive.

    Example:
    application.embed_event.on("camera_unresponsive", function () {
    	//Your code goes here
    });
  22. verified

    Triggered after video was uploaded and verified that it can be processed.

    Example:
    application.embed_event.on("verified", function () {
    	//Your code goes here
    });
  23. no_camera

    Triggered when the camera has no signal.

    Example:
    application.embed_event.on("no_camera", function () {
    	//Your code goes here
    });
  24. no_microphone

    Triggered when the microphone has no signal.

    Example:
    application.embed_event.on("no_microphone", function () {
    	//Your code goes here
    });