actionscript 3 - create (webcam capture like youtube) in my website -


i have website working same youtube. @ moment trying create video image captured webcam. video image should saved on computer (by flv format) first , if user satisfied, or can upload on server

i trying use actionscript3 in adobe flash cs5 , flash media server4

1- how can that? 2- flash media server needed?

please pay attention allow user save video on his/her computer , able uploaded server.

many thanks.

assuming computer can take overhead of doing encoding on fly (or has enough memory buffer data can run data through encoding process) library mentioned in answer here should work: encode video format .flv format in as3

i believe flash media server necessary in case broadcast.

pseudocode example

private var cam:camera;  public function whatever() {     //in constructor     addeventlistener(event.enter_frame, grabframe);      cam = camera.getcamera();      if (cam != null)      {          var vid:video = new video(cam.width, cam.height);          vid.attachcamera(cam);          addchild(vid);      } } private function grabframe(event:event):void {      var bd:bitmapdata = new bitmapdata(cam.width, cam.height)      bd.draw(vid);      //now bitmapdata has frame of video, @ point      //would want capture audio use flv class in library  } 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -