Skip to content

Instantly share code, notes, and snippets.

@reachkamrul
Last active November 5, 2022 00:48
Show Gist options
  • Save reachkamrul/33b3da804899b216774de755585ff979 to your computer and use it in GitHub Desktop.
Save reachkamrul/33b3da804899b216774de755585ff979 to your computer and use it in GitHub Desktop.
// Add this to the HTML field on your form editor
<link rel="stylesheet" href="//cdn.addpipe.com/2.0/pipe.css">
<div id="fluentformVdoRecoder"> </div>
<script type="text/javascript" src="//cdn.addpipe.com/2.0/pipe.js"></script>
// Paste this script bellow on your custom JSS field and replace the "ACCOUNT_HASH_ID".
// Ensure that the form have at least one hidden field
var hash = "Your Account Hash";
var fieldName = 'hidden';
var pipeParams = {
size:{width:640,height:390},
qualityurl:"avq/720p.xml",
accountHash: hash,
eid:"U3fR2p",
mrt:120
};
// For Fluentforms
PipeSDK.insert("fluentformVdoRecoder",pipeParams,function(recorderObject){
var accountHash = pipeParams.accountHash;
recorderObject.onSaveOk = function onSaveOk(streamName, streamDuration, userId, cameraName, micName, recorderId, audioCodec, videoCodec, fileType, videoId, audioOnly, location) {
jQuery( "[name="+fieldName+"]" )[0].value = "https://"+ audioOnly+ "/" + accountHash + "/" + streamDuration + ".mp4"
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment