Back to ziggeo.com

How can I get the token of a recorded video once it's been recorded?

You can listen to the submission event of a new recording as follows:

var application = new ZiggeoApi.V2.Application( {token:"YOUR_APP_TOKEN"} );
application.embed_events.on("verified", function (embedding) {
alert("Submitted a new video with token '" + embedding.get('video') + "' !");
});
Have more questions? Submit a request

Comments

  • Avatar
    Nagaraj S Jayaram

    How do we do the same in react?

    Edited by Nagaraj S Jayaram
  • Avatar
    Natasha Calleia

    Hi Nagaraj,

    This is how you'd listen for the verified event with React, to get the video token:

    recorderVerified = ( embedding ) => {
        let recorderInstance = this.child.recorderInstance();
        let properties = this.recorderInstance.get();
        console.log("Submitted a new video with token '" + properties['video'] + "' !");
    };

    <ZiggeoRecorder
    apiKey={API_KEY}
    onVerified={this.recorderVerified}
    />
    Edited by Natasha Calleia