Anonymous Anonymous - 1 month ago
4060 0

No description

Javascript

Some Qualtrics and Pipe code

var qobj = this;
qobj.hideNextButton();

var pipeParams = {size:{width:640,height:390}, qualityurl:"avq/480p.xml", accountHash:"XXX", eid:"YYY", mrt:180, payload:"${e://Field/ResponseID}"};

PipeSDK.insert("question1",pipeParams,function(myRecorderObject){
    myRecorderObject.onSaveOk = function(recorderId, streamName, streamDuration, cameraName, micName, audioCodec, videoCodec, fileType, videoId, audioOnly, location){
        var args = Array.prototype.slice.call(arguments);
        console.log("onSaveOk("+args.join(', ')+")");
        Qualtrics.SurveyEngine.setEmbeddedData("videoNameQ1", streamName);
        qobj.showNextButton();
     };
    myRecorderObject.onVideoUploadSuccess = function(recorderId, filename,filetype,videoId,audioOnly,location){
        var args = Array.prototype.slice.call(arguments);
        console.log("onVideoUploadSuccess("+args.join(', ')+")");
        Qualtrics.SurveyEngine.setEmbeddedData("videoNameQ1", filename);
        qobj.showNextButton();
    };
    myRecorderObject.onDesktopVideoUploadSuccess = function(recorderId, filename, filetype, videoId, audioOnly, location){
        //onDesktopVideoUploadSuccess is part of the desktop recorder's JS events API (upload an existing file from desktop)
        var args = Array.prototype.slice.call(arguments);
        console.log("onDesktopVideoUploadSuccess("+args.join(', ')+")");
        Qualtrics.SurveyEngine.setEmbeddedData("videoNameQ1", filename);
        qobj.showNextButton();
    };
};
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download