Easy Webcam Record App


i looking very basic way take webcam. have little button click record, , when done press stop. video saved .flv on server (and can other things not in media server). sure easy can't find tutorials , suggestions on start this. appreciated.

 

 

thanks!

hi,

 

you may want take @ this. provides client side code required publish video webcam. on server side you'll need create new application simple server-side code in main.asc like:

var pubcount = 0;

application.onconnect=function(clientobj){

          trace("          on connect ");

          return true;

};

 

application.ondisconnect=function(clientobj){

          trace("          on disconnect ");

};

 

application.onpublish = function(clientobj,streamobj){

  trace("          in application publish : " + streamobj.name);

  if(pubcount <= 1)

          streamobj.record("record");

  else

          streamobj.record("append");

  pubcount++; 

}

 

application.onunpublish = function(clientobj,streamobj){

trace("          on unpublish : " + streamobj.type + ":" + streamobj.name);

streamobj.record(false);

}

 

hope helps.

 

let me know if have other questions.

 

thanks,

apurva



More discussions in Adobe Media Server


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account