If you want to launch the video recorder in a fullscreen popup and automatically close the popup once the video has been recorded, you can go about it as follows:
var application = new ZiggeoApi.V2.Application( {token:"APP_TOKEN"});
// this will create recorder popup
var recorder = new ZiggeoApi.V2.PopupRecorder({
attrs: {
width: 640,
height: 320,
}
});
recorder.activate();
// to close the popup automatically
recorder.on('verified', function () {
recorder.destroy();
});
Comments