| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 } | 50 } |
| 51 | 51 |
| 52 - (void)setUseBackCamera:(BOOL)useBackCamera { | 52 - (void)setUseBackCamera:(BOOL)useBackCamera { |
| 53 self.capturer->SetUseBackCamera(useBackCamera); | 53 self.capturer->SetUseBackCamera(useBackCamera); |
| 54 } | 54 } |
| 55 | 55 |
| 56 - (AVCaptureSession*)captureSession { | 56 - (AVCaptureSession*)captureSession { |
| 57 return self.capturer->GetCaptureSession(); | 57 return self.capturer->GetCaptureSession(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 - (dispatch_queue_t)captureSessionQueue { |
| 61 return self.capturer->GetCaptureSessionQueue(); |
| 62 } |
| 63 |
| 60 - (webrtc::AVFoundationVideoCapturer*)capturer { | 64 - (webrtc::AVFoundationVideoCapturer*)capturer { |
| 61 cricket::VideoCapturer* capturer = self.videoSource->GetVideoCapturer(); | 65 cricket::VideoCapturer* capturer = self.videoSource->GetVideoCapturer(); |
| 62 // This should be safe because no one should have changed the underlying video | 66 // This should be safe because no one should have changed the underlying video |
| 63 // source. | 67 // source. |
| 64 webrtc::AVFoundationVideoCapturer* foundationCapturer = | 68 webrtc::AVFoundationVideoCapturer* foundationCapturer = |
| 65 static_cast<webrtc::AVFoundationVideoCapturer*>(capturer); | 69 static_cast<webrtc::AVFoundationVideoCapturer*>(capturer); |
| 66 return foundationCapturer; | 70 return foundationCapturer; |
| 67 } | 71 } |
| 68 | 72 |
| 69 @end | 73 @end |
| OLD | NEW |