Avatar

Employee

Its the code of WebcamPublisher.as . You could find it in SDK source. YourSDKFolder/libs/player10 or player10.1/src/com/adobe/rtc/collaboration/WebcamPublisher.as

So this is code that sets camera settings












          /**


           * @private


           */


          protected function updateCameraSettings():void


          {


               if (_camera == null) {


                    return;


               }


               


               switch (_streamManager.aspectRatio) {


                    case StreamManager.AR_STANDARD:


                         //trace("#WebCamPublisher# _camera.setMode("+StreamManager.AR_STANDARD_W*_captureWidthHeightFactor+", "+StreamManager.AR_STANDARD_H*_captureWidthHeightFactor+", "+_fps+")");


                         _camera.setMode(StreamManager.AR_STANDARD_W*_captureWidthHeightFactor, StreamManager.AR_STANDARD_H*_captureWidthHeightFactor, _fps);


                         break;


                     case StreamManager.AR_PORTRAIT:


                         //trace("#WebCamPublisher# _camera.setMode("+StreamManager.AR_PORTRAIT_W*_captureWidthHeightFactor+", "+StreamManager.AR_PORTRAIT_H*_captureWidthHeightFactor+", "+_fps+")");


                         _camera.setMode(StreamManager.AR_PORTRAIT_W*_captureWidthHeightFactor, StreamManager.AR_PORTRAIT_H*_captureWidthHeightFactor, _fps);


                         break;


                    case StreamManager.AR_LANDSCAPE:


                         //trace("#WebCamPublisher# _camera.setMode("+StreamManager.AR_LANDSCAPE_W*_captureWidthHeightFactor+", "+StreamManager.AR_LANDSCAPE_H*_captureWidthHeightFactor+", "+_fps+")");


                         _camera.setMode(StreamManager.AR_LANDSCAPE_W*_captureWidthHeightFactor, StreamManager.AR_LANDSCAPE_H*_captureWidthHeightFactor, _fps);


                         break;


                }



               //trace("#WebCamPublisher# _camera.setKeyFrameInterval("+_keyFrameInterval+")");


               _camera.setKeyFrameInterval(_keyFrameInterval);


               setCameraQuality();     //will update the bw used               


          }




So when you set resolutionFactor, you set the _captureWidthHeightFactor variable in the code, and it updates the width & height of the Camera.setMode API.

Thanks

Arun