void Start() { Debug.Log(TAG + " Start() thread ID is " + Thread.CurrentThread.ManagedThreadId); udpKeyboard = GetComponent <UDPKeyboardInput>(); frameSaver = GetComponent <FrameSaver>(); Application.targetFrameRate = 60; captureStatus = CaptureStatus.Clean; InitializeMediaCaptureAsyncWrapper(); }
void Start() { Debug.Log(TAG + " Start() thread ID is " + Thread.CurrentThread.ManagedThreadId); udpKeyboard = GetComponent <UDPKeyboardInput>(); frameSaver = GetComponent <FrameSaver>(); Application.targetFrameRate = 60; captureStatus = CaptureStatus.Clean; InitializeMediaCaptureAsyncWrapper(); // Cache values to target width and height from media capture // profiles enum. switch (mediaCaptureProfiles) { case MediaCaptureProfiles.HL1_1280x720: _targetVideoWidth = 1280; _targetVideoHeight = 720; break; case MediaCaptureProfiles.HL1_1408x792: _targetVideoWidth = 1408; _targetVideoHeight = 792; break; case MediaCaptureProfiles.HL1_1344x756: _targetVideoWidth = 1344; _targetVideoHeight = 756; break; case MediaCaptureProfiles.HL1_896x504: _targetVideoWidth = 896; _targetVideoHeight = 504; break; case MediaCaptureProfiles.HL2_2272x1278: _targetVideoWidth = 2272; _targetVideoHeight = 1278; break; case MediaCaptureProfiles.HL2_896x504: _targetVideoWidth = 896; _targetVideoHeight = 504; break; default: break; } }