(function(f,c,d){var b="Rho.Videocapture";var a=d.apiReqFor(b);function e(){var g=null;this.getId=function(){return g};if(1==arguments.length&&arguments[0][d.rhoIdParam()]){if(b!=arguments[0][d.rhoClassParam()]){throw"Wrong class instantiation!"}g=arguments[0][d.rhoIdParam()]}else{g=d.nextId()}}d.createPropsProxy(e.prototype,[{propName:"duration",propAccess:"rw"},{propName:"fileName",propAccess:"rw"},{propName:"saveToGallery",propAccess:"rw"},{propName:"resolution",propAccess:"rw"}],a,function(){return this.getId()});d.createMethodsProxy(e.prototype,[{methodName:"start",nativeName:"start",persistentCallbackIndex:0,valueCallbackIndex:2},{methodName:"stop",nativeName:"stop",valueCallbackIndex:0},{methodName:"cancel",nativeName:"cancel",valueCallbackIndex:0},{methodName:"getProperty",nativeName:"getProperty",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"getProperties",nativeName:"getProperties",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"getAllProperties",nativeName:"getAllProperties",persistentCallbackIndex:0,valueCallbackIndex:2},{methodName:"setProperty",nativeName:"setProperty",valueCallbackIndex:2},{methodName:"setProperties",nativeName:"setProperties",valueCallbackIndex:1}],a,function(){return this.getId()});d.createRawPropsProxy(e.prototype,[]);e.HIGH="high";e.LOW="low";d.createPropsProxy(e,[],a);d.createMethodsProxy(e,[{methodName:"enumerate",nativeName:"enumerate",persistentCallbackIndex:0,valueCallbackIndex:2}],a);d.createPropsProxy(e,[{propName:"defaultInstance:getDefault:setDefault",propAccess:"rw",customSet:function(g){if(!g||"function"!=typeof g.getId){throw"Default object should provide getId method!"}e.setDefaultID(g.getId())}},{propName:"defaultID:getDefaultID:setDefaultID",propAccess:"rw"}],a);e.getId=function(){return e.getDefaultID()};d.createPropsProxy(e,[{propName:"duration",propAccess:"rw"},{propName:"fileName",propAccess:"rw"},{propName:"saveToGallery",propAccess:"rw"},{propName:"resolution",propAccess:"rw"}],a,function(){return this.getId()});d.createMethodsProxy(e,[{methodName:"start",nativeName:"start",persistentCallbackIndex:0,valueCallbackIndex:2},{methodName:"stop",nativeName:"stop",valueCallbackIndex:0},{methodName:"cancel",nativeName:"cancel",valueCallbackIndex:0},{methodName:"getProperty",nativeName:"getProperty",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"getProperties",nativeName:"getProperties",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"getAllProperties",nativeName:"getAllProperties",persistentCallbackIndex:0,valueCallbackIndex:2},{methodName:"setProperty",nativeName:"setProperty",valueCallbackIndex:2},{methodName:"setProperties",nativeName:"setProperties",valueCallbackIndex:1}],a,function(){return this.getId()});d.createRawPropsProxy(e,[]);d.namespace(b,e)})(Rho.jQuery,Rho,Rho.util);