![]() ![]() The formFieldId value is the id identified in step 3 above. Your finished code should look like this: Paste the code below in the JS field after replacing the accountHash and formFieldId values with the real onesįunction onSaveOk(streamName, streamDuration, userId, cameraName, micName, recorderId, audioCodec, videoCodec, fileType, videoId, audioOnly, location)ģ.Edit the JavaScript Action where you previously pasted your Pipe video embed code.To make it work on mobile devices we’ll also be using Pipe’s onVideoUploadSuccess function (part of Pipe’s Java Script Mobile Events API). Populate the hidden video URL field with the actual URL.Generate the absolute URL, including the extension, using the video name and its location.Location of the final video and snapshot (if stored by us).Device names (camera, microphones) if available.The onSaveOk function is called by Pipe after a video is recorded and gives us a lot of information about the new video including: We’ll use this info to generate the full URL. We’ll use Pipe’s onSaveOk JS function (part of Pipe’s Java Script Desktop Events API) which gives us the name and location of the final mp4 video. I found no easier way to do it than inspecting the survey’s HTML code using Chrome’s Developer tools (right click > Inspect) and identifying the hidden input and it’s id:Ĥ. Now we need to find out the HTML ID of the new hidden value. Give it a name (I used “Video URL”) and save.Add a Hidden Value from the Add New: Action side menu.The hidden value will store the video URL when the survey is submitted. ![]() This is where we’ll use Alchemer’s Hidden Value feature (available only with the Standard plan or above). Now we just have to link the recorded video to the response. Respondents will now be able to type in their name, email, and record a video response using their webcam, to be submitted together with the survey. ![]() Your survey should now contain a video recorder: Copy everything between the opening tag and the closing tag, and paste it into the JavaScript Action. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |