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

Issue 2798993002: Fixed that RTCCameraPreviewView did not rotate the video on device rotation. (Closed)

Created:
3 years, 8 months ago by meetAkshay99
Modified:
3 years, 7 months ago
Reviewers:
tkchin, meetakshay99, Chuck, magjed_webrtc, tkchin_webrtc, daniela-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fixed that RTCCameraPreviewView did not rotate the video on device rotation. BUG=webrtc:6749 Review-Url: https://codereview.webrtc.org/2798993002 Cr-Commit-Position: refs/heads/master@{#17742} Committed: https://chromium.googlesource.com/external/webrtc/+/0d335c7756e172c38f5a86287aec7b62ff288be8

Patch Set 1 #

Patch Set 2 : yes #

Total comments: 15

Patch Set 3 : y #

Patch Set 4 : y #

Patch Set 5 : y #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
M AUTHORS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m View 1 2 3 4 2 chunks +32 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (15 generated)
meetAkshay99
3 years, 8 months ago (2017-04-05 17:04:19 UTC) #3
tkchin_webrtc
On 2017/04/05 17:04:19, meetAkshay99 wrote: Can you introduce some sort of settable mode on it ...
3 years, 8 months ago (2017-04-05 17:37:53 UTC) #4
magjed_webrtc
Is the app responsible for calling setCorrectVideoOrientation on orientation changes with the current code? It ...
3 years, 8 months ago (2017-04-05 19:04:46 UTC) #6
meetAkshay99
On 2017/04/05 19:04:46, magjed_webrtc wrote: > Is the app responsible for calling setCorrectVideoOrientation on orientation ...
3 years, 8 months ago (2017-04-06 05:32:37 UTC) #7
daniela-webrtc
Thanks for the patch. Some comments below https://codereview.webrtc.org/2798993002/diff/20001/webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m File webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m (right): https://codereview.webrtc.org/2798993002/diff/20001/webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m#newcode39 webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m:39: - (void) ...
3 years, 8 months ago (2017-04-06 09:45:37 UTC) #9
meetAkshay99
https://codereview.webrtc.org/2798993002/diff/20001/webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m File webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m (right): https://codereview.webrtc.org/2798993002/diff/20001/webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m#newcode40 webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m:40: if (shouldAutoRotate) { On 2017/04/06 09:45:37, daniela-webrtc wrote: > ...
3 years, 8 months ago (2017-04-06 10:24:35 UTC) #10
daniela-webrtc
https://codereview.webrtc.org/2798993002/diff/20001/webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m File webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m (right): https://codereview.webrtc.org/2798993002/diff/20001/webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m#newcode41 webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m:41: [[NSNotificationCenter defaultCenter] addObserver:self On 2017/04/06 10:24:34, meetAkshay99 wrote: > ...
3 years, 8 months ago (2017-04-06 14:44:46 UTC) #11
tkchin_webrtc
@haysc can you take a look I don't remember if the connection affects the capture ...
3 years, 8 months ago (2017-04-06 17:39:22 UTC) #13
Chuck
> I don't remember if the connection affects the capture session as well, or just ...
3 years, 8 months ago (2017-04-06 19:06:34 UTC) #14
Chuck
https://codereview.webrtc.org/2798993002/diff/20001/AUTHORS File AUTHORS (right): https://codereview.webrtc.org/2798993002/diff/20001/AUTHORS#newcode4 AUTHORS:4: Akshay Shah <meetakshay99@gmail.com> This should be after Adam Fedor ...
3 years, 8 months ago (2017-04-06 19:06:46 UTC) #15
meetAkshay99
https://codereview.webrtc.org/2798993002/diff/20001/webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m File webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m (right): https://codereview.webrtc.org/2798993002/diff/20001/webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m#newcode39 webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m:39: - (void) setShouldAutoRotate:(BOOL)shouldAutoRotate { On 2017/04/06 09:45:37, daniela-webrtc wrote: ...
3 years, 8 months ago (2017-04-07 05:19:29 UTC) #16
Chuck
https://codereview.webrtc.org/2798993002/diff/20001/webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m File webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m (right): https://codereview.webrtc.org/2798993002/diff/20001/webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m#newcode61 webrtc/sdk/objc/Framework/Classes/RTCCameraPreviewView.m:61: [previewLayer.connection setVideoOrientation:AVCaptureVideoOrientationPortraitUpsideDown]; On 2017/04/07 05:19:29, meetAkshay99 wrote: > On ...
3 years, 8 months ago (2017-04-07 12:57:41 UTC) #17
daniela-webrtc
On 2017/04/06 17:39:22, tkchin_webrtc wrote: > @haysc can you take a look > > I ...
3 years, 8 months ago (2017-04-10 07:55:02 UTC) #18
meetAkshay99
On 2017/04/10 07:55:02, daniela-webrtc wrote: > On 2017/04/06 17:39:22, tkchin_webrtc wrote: > > @haysc can ...
3 years, 8 months ago (2017-04-12 10:28:40 UTC) #19
daniela-webrtc
lgtm
3 years, 8 months ago (2017-04-12 11:31:22 UTC) #20
meetAkshay99
On 2017/04/12 11:31:22, daniela-webrtc wrote: > lgtm Do I have to wait until everyone in ...
3 years, 8 months ago (2017-04-14 14:11:24 UTC) #21
Chuck
On 2017/04/14 14:11:24, meetAkshay99 wrote: > On 2017/04/12 11:31:22, daniela-webrtc wrote: > > lgtm > ...
3 years, 8 months ago (2017-04-14 14:44:22 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2798993002/80001
3 years, 8 months ago (2017-04-14 16:23:18 UTC) #29
meetAkshay99
On 2017/04/14 16:23:18, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
3 years, 8 months ago (2017-04-17 04:34:56 UTC) #30
meetAkshay99
On 2017/04/17 04:34:56, meetAkshay99 wrote: > On 2017/04/14 16:23:18, commit-bot: I haz the power wrote: ...
3 years, 8 months ago (2017-04-17 13:13:31 UTC) #31
Chuck
On 2017/04/17 13:13:31, meetAkshay99 wrote: > On 2017/04/17 04:34:56, meetAkshay99 wrote: > > On 2017/04/14 ...
3 years, 8 months ago (2017-04-17 13:50:11 UTC) #32
meetAkshay99
On 2017/04/17 13:50:11, Chuck wrote: > On 2017/04/17 13:13:31, meetAkshay99 wrote: > > On 2017/04/17 ...
3 years, 8 months ago (2017-04-17 15:52:26 UTC) #34
magjed_webrtc
lgtm
3 years, 8 months ago (2017-04-18 13:17:40 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2798993002/80001
3 years, 8 months ago (2017-04-18 13:17:53 UTC) #37
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/external/webrtc/+/0d335c7756e172c38f5a86287aec7b62ff288be8
3 years, 8 months ago (2017-04-18 14:12:10 UTC) #40
suman
On 2017/04/05 17:37:53, tkchin_webrtc wrote: > On 2017/04/05 17:04:19, meetAkshay99 wrote: > > Can you ...
3 years, 7 months ago (2017-05-01 03:57:42 UTC) #41
tkchin_webrtc
On 2017/05/01 03:57:42, suman wrote: > On 2017/04/05 17:37:53, tkchin_webrtc wrote: > > On 2017/04/05 ...
3 years, 7 months ago (2017-05-01 22:36:21 UTC) #42
Chuck
3 years, 7 months ago (2017-05-02 18:17:39 UTC) #43
Message was sent while issue was closed.
On 2017/05/01 22:36:21, tkchin_webrtc wrote:
> On 2017/05/01 03:57:42, suman wrote:
> > On 2017/04/05 17:37:53, tkchin_webrtc wrote:
> > > On 2017/04/05 17:04:19, meetAkshay99 wrote:
> > > 
> > > Can you introduce some sort of settable mode on it instead?
> > > e.g. @property(nonatomic, assign) shouldAutoRotate
> > > 
> > > and then it can listen to orientation directly
> > 
> > This is breaking my app.  My app embeds iOS framework and works only on
> > landscape orientation.  With this change, it forces the camera view
> orientation
> > to portrait mode all the time.  Probably some timing issue when this code is
> > called.
> > 
> > For now I commented this change out locally to workaround the issue.
> > 
> > --Suman
> 
> The behavior of this class should've been made optional to avoid breakage like
> you mention Suman.
> 
> @magjed can you fix / revert?
> @haysc does this break us?

I posted a fix that allows this to be turned off:
https://codereview.webrtc.org/2859573002/

@tkchin - Might break AppRTCMobile, I can't test because Apprtc is down. Not
used in our app though.

Powered by Google App Engine
This is Rietveld 408576698