Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm

Issue 1497393002: Add new view that renders local video using AVCaptureLayerPreview. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Removed commented line. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698