Skip to content

Hotfix CamcorderProfile deprecated function#27

Merged
StephenCole19 merged 1 commit intostagingfrom
hotfix-cam
Mar 16, 2022
Merged

Hotfix CamcorderProfile deprecated function#27
StephenCole19 merged 1 commit intostagingfrom
hotfix-cam

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Mar 7, 2022

When I pulled staging and tried to run it, I got errors saying CamcorderProfile has deprecated 'get' function. I searched around and applied a bug fix that some guy made here.

Error looks similar to this (forgot to screenshot the actual error):
camera/features/resolution/ResolutionFeature.java:135: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_HIGH); ^ camera/features/resolution/ResolutionFeature.java:139: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_2160P); ^ camera/features/resolution/ResolutionFeature.java:143: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_1080P); ^ camera/features/resolution/ResolutionFeature.java:147: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_720P); ^ camera/features/resolution/ResolutionFeature.java:151: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_480P); ^ camera/features/resolution/ResolutionFeature.java:155: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_QVGA); ^ camera/features/resolution/ResolutionFeature.java:159: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_LOW);

@ghost ghost requested review from ChrisRuff, StephenCole19 and justend29 March 7, 2022 05:03
@StephenCole19 StephenCole19 merged commit db1ac42 into staging Mar 16, 2022
@justend29 justend29 deleted the hotfix-cam branch March 23, 2022 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants