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 popup = ZiggeoApi.Embed.popup();
ZiggeoApi.Events.on("submitted", function(data) {
popup.hide_popup();
});