Developers: Flash Video Recorder
Viddler’s Flash video recorder makes it very simple to allow a user to record video straight to Viddler using their webcam on their computer. This process bypasses Viddler’s uploading and encoding procedures and recorded videos are available immediately after recording for playback.
The process to record a video
- Retrieve a Viddler record token
- Put the token in the recorder’s embed code
- (optional) Edit the details of the video after the user hits save
For a more detailed view of this process see our document entitled: How to: Record with Webcam.
Available Flashvars
- recordToken – (required) unique token needed to record
- permalink – Used as the finished video’s permalink after recording
- maxlength – (in seconds) sets a custom max length of a recorded footage.
- audioOnly – “Y”, “1?, “T” values will switch recorder in “audio-only” mode. No video data will be saved.
- noUI – “Y”, “1?, “T” values will tell the recorder not to show the bottom control bar interface.
- recQuality – “H”, “M”, “L” values will set quality to High, Medium and Low, respectively, and will cause the initial quality selector not to be shown.
- enableCallbacks – “Y”, “1?, “T” to turn on callbacks
Control the recorder using JavaScript
If you’d like to control the player using JavaScript instead of the Flash recorder’s default user interface you can do that. Here are the functions that are currently available.
- doStartRecord() – start the recording
- doStopRecord() – stop recording
- doDelRecord() – delete recorded footage
- doSaveRecord() – save the footage
JavaScript callbacks
If you’d like to listen in to what the Flash recorder is doing you can use the following JavaScript callbacks.
- recordConnected() when recorder swf connects to the recording service
- recordAuthorised() when recorder swf authorises it’s record token successfully
- recordStopped() when user stops recording
- recordDeleted() when user decides to delete the footage and re-record.
- recordSave() when user decides to save video (yet before the request is sent to the server for actual processing)
Subscribe
Omar Qunsul says
September 25, 2011 - 9:38 amdoStartRecord is not defiend
Colin Devroe says
September 29, 2011 - 5:52 pmOmar: You may get that if you're not selecting the Viddler object. If you need more help consider using our Developers Mailing List http://developers.viddler.com
@jeffreylo says
October 3, 2011 - 9:21 pmIs there a video_getRecordEmbed method in Viddler's v2 api? I can use the provided embed code in the original article, though!
hizki says
April 10, 2012 - 9:31 amHow do we re-play, pause, re-start manually? … when wanting to preview the recorded video, before saving it?