Ejemplo n.º 1
0
        //called by webrtc
        public override bool Start(VideoFormat capture_format)
        {
            UpdateBufferSize(capture_format.width, capture_format.height);
            UpdateFrame(VideoType.kARGB, mImageBuffer, (uint)mImageBuffer.Length, mRequestedWidth, mRequestedHeight, 0, false);
            mRequestedFps = capture_format.framerate();

            if (mRequestedFps < 1 || mRequestedFps > 60)
            {
                mRequestedFps = 30;
            }

            mRunning = true;
            SLog.L("UnityVideoCapturerer " + mName + " started", UnityVideoCapturerFactory.LOGTAG);
            return(true);
        }