--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
glTexImage2D(GL_TEXTURE_2D, 0, RTC_PIXEL_FORMAT, frame.width, frame.height, 0, RTC_PIXEL_FORMAT, GL_UNSIGNED_BYTE, frame.yPlane);
2014-07-31 15:43:25.664 AppRTCDemo[1396:60b] PCO onRenegotiationNeeded - ignoring because AppRTC has a predefined negotiation strategy
2014-07-31 15:43:25.665 AppRTCDemo[1396:60b] PCO onRenegotiationNeeded - ignoring because AppRTC has a predefined negotiation strategy
Camera 'com.apple.avfoundation.avcapturedevice.built-in_video:0' stopped after capturing 734 frames and dropping 0%
(lldb)
- (void)changeCamera {
AVCaptureDevicePosition position =
_usingFrontCamera ? AVCaptureDevicePositionFront : AVCaptureDevicePositionBack;
AVCaptureDevice *device = [self findDeviceForPosition:position];
AVCaptureDeviceFormat *format = [self selectFormatForDevice:device];
if (format == nil) {
RTCLogError(@"No valid formats for device %@", device);
NSAssert(NO, @"");
return;
}
NSInteger fps = [self selectFpsForFormat:format];
[_capturer startCaptureWithDevice:device format:format fps:fps];
_capturer.captureDelegate = self;
}