Search in documentation:     Advanced search
Browse by category:

Web Cam recorder

Views: 515
Votes: 0
Posted: 17 Sep, 2009
Updated: 27 Oct, 2009
Find here all the documentation you need to use our webcam recorder widget!

1) Product documentation :

First of all, you should read the documentation of the widget  : French - English


2) Working :

Webcam recorder widget as well as API calls are needed to record a video with a webcam. See below general details about how to build your own webcam recording application :

Webcam recorder

3) Embed code of the object :

The embed code of the Webcam recorder is the following :

 <object id="webcam_flash" width="320" height="240" data="http://s.kewego.com/swf/webcamrecorder.swf" type="application/x-shockwave-flash" name="webcam_flash">
      <param value="http://s.kewego.com/swf/webcamrecorder.swf" name="movie"/>
      <param value="true" name="allowFullScreen"/>
      <param value="always" name="allowscriptaccess"/>
      <param value="high" name="quality"/>
      <param value="000000" name="bgColor"/>
      <param value="authToken=<user_authentication_token>&appToken=<your_App_token>&picto=94c83d&border=ffffff&btn=Null&cbar=000000&playerkey=<your_player_key>" name="flashVars"/>
</object> 

Where you need to replace the flashvars by your own values :

authToken = token authentication of the user to grab the video
appToken = Application token recuperated from the application key of the product
playerkey = the player key available for your product (use same key as for player objects)

Additional flashvars settings :

picto = pictogram hexadecimal color (Null to set it transparent). Ex : picto = 94c83d
border = borders hexadecimal color  (Null to set it transparent). Ex : border = ffffff
btn =  buttons background hexadecimal color (Null to set it transparent). Ex : btn = Null
cbar = controlbar background hexadecimal color (Null to set it transparent). Ex : cbar = 000000

        see PDF documentation for more details and examples about colors setting, chapter 4.2

language_code = flashvar setting language of object : fr or en (default value : en )


4) Javascript event : retrieve upload_file_token

Javascript call is generated by Webcam recorder object once video has been grabbed and saved into the server. You need to include it in the same page as the webcam recorder object. You will then be able to get upload_file_token parameter needed to finish your upload.

This is the function saveStop(fileToken){}.

Notice that 4 other javascripts functions can be also used :


function recordStart()
            {
            }
function recordStop()
            {
            }
function saveStart()
            {
            }
function play()
            {
            }



5) Datas to send to finish upload process.

Once grabed on our servers, asociated datas have to be sent with the video in xml format.

Please check the documentation of addUploadedVideo function.


6) Sample

Find on this site a simple code of how to use this sample in PHP : http://developers.kewego.com/kb/?View=entry&EntryID=151
Others in this Category
document Kewego Standard player
document Kewego Fast Player
document Web tv widget
document Components and widgets overview



RSS