Viddler

Daily features, announcements, and much more!

Developers: Flash Video Recorder

Published September 19, 2011 by Ian Borg in Development,Using Viddler

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

  1. Retrieve a Viddler record token
  2. Put the token in the recorder’s embed code
  3. (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)
4 Comments Share on Twitter

4 Comments

RSS feed for comments on this post.

  1. Omar Qunsul says

    September 25, 2011 - 9:38 am

    doStartRecord is not defiend


  2. Colin Devroe says

    September 29, 2011 - 5:52 pm

    Omar: 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


  3. @jeffreylo says

    October 3, 2011 - 9:21 pm

    Is there a video_getRecordEmbed method in Viddler's v2 api? I can use the provided embed code in the original article, though!


  4. hizki says

    April 10, 2012 - 9:31 am

    How do we re-play, pause, re-start manually? … when wanting to preview the recorded video, before saving it?


Sorry, the comment form is closed at this time.