This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Commit 9c312d4
[camera] flip/change camera while recording (split out PR for cam_avfoundation and cam_android) (#7109)
* setDescription in Camera platform interface
* example app setup to change description mid recording
* AVFoundationCamera method call to setDescription
* FLTCam setup to setDescription
* captureSession split into video and audio so we will be able to switch cameras without breaking the audio
* renamed setDescription to setDescriptionWhileRecording since it can only be used while recording
* integration tests fixed
* set description while recording integration test
* throws error if device not recording and setDescriptionWhileRecording is called
* set description while recording test
* example project setup
* camera preview can be changed while recording
* camera switches and keeps surface pointed to mediarecorder
* small change to set autofocus when switching while recording
* android video record goes through VideoRenderer to apply matrix after switching camera
* switch camera uses VideoRenderer
* dont use video renderer until user switches camera while recording
* rotate based on initial recording direction
* VideoRenderer cleanup
* flutter results for setDescriptionWhileRecording
* error if you setDescriptionWhileRecording while device is not recording
* android tests
* integration tests
* method channel test
* main package tests
* setDescriptionWhileRecording called while no video was recording test
* integration tests
* dependency overrides
* update readme and version
* removed old TODO
* removed accidental dev team ID commit
* renamed local variables
* use captureSessionQueue
* fixed local variable name
* setupCaptureVideoOutput function
* createConnectionWithInput
* simplified configureConnection function to re-use code on switching camera
* formatting
* example project dependency overrides
* fixed versioning
* formatting
* fixed some ios native tests
* fixed small bug
* dont emit initialized when switching camera
* ios formatting
* dependency overrides for camera/example
* android formatting
* ios test formatted
* android tests formatted
* android format that I missed
* other android formatting
* final formatting with flutter tool
* formatted android again
* android license in new file
* update-excerpts ran
* fixed changelog
* removed development team
* renames configureConnection to createConnection
* renames unimplemented error message
* renames setDescriptionWhileRecording error to match android and the other errors
* fixes formatting
* removes override dependencies from camera_web and camera_windows
* removes camera_web override dependency in camera package
* Update packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/Camera.java
Co-authored-by: Camille Simon <43054281+camsim99@users.noreply.github.com>
* Update packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/Camera.java
Co-authored-by: Camille Simon <43054281+camsim99@users.noreply.github.com>
* Update packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/Camera.java
Co-authored-by: Camille Simon <43054281+camsim99@users.noreply.github.com>
* Update packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/Camera.java
Co-authored-by: Camille Simon <43054281+camsim99@users.noreply.github.com>
* reformats camera.java
* VideoRenderer uses surface texture timestamp instead of current system time
* formats VideoRenderer.java
* fixes comments in VideoRenderer.java
* Update packages/camera/camera_platform_interface/lib/src/platform_interface/camera_platform.dart
Co-authored-by: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com>
* Update packages/camera/camera/lib/src/camera_controller.dart
Co-authored-by: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com>
* renames error typo
* frees shaders after program linking
* handles eglSwapBuffers errors
* extension check guards eglPresentationTimeANDROID
* cleans openGL resources
* reverted timestamp to use uptimeMillis()
* Tests for startPreviewWithVideoRendererStream
* fixes exception not being caught
* tests for correct rotation to be set
* fixes versioning
* tests method channel setDescriptionWhileRecording
* adds forwarding getter on CameraController to its value's description
* dummy commit to fix github test's not finding commit hash
* adds override description for FakeController in camera tests
* fixes versioning for avfoundation and android
* fixes versioning
* fixes pubspec versions
* ios setDescription
* setDescription
* android setDescription
* formatting
* revert
* nits and reverts
* nits
* fixes README
* fixes other comments
* fixes setDescription override in camera_preview_test
* set description test
* versions
* removes changes on platform_interface_changes
* points all packages to platform interface version 2.4
* points to the new platform interface
* removes everything that isnt under camera_avfoundation and camera_android
* removes dependency overrides in examples
* removes version change on camera
* removes camera changes that were missed
* fixes android version
---------
Co-authored-by: BradenBagby <braden.bagby@wavv.com>
Co-authored-by: Camille Simon <43054281+camsim99@users.noreply.github.com>
Co-authored-by: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com>1 parent f1a3fea commit 9c312d4
File tree
27 files changed
+1014
-125
lines changed- packages/camera
- camera_android
- android/src
- main/java/io/flutter/plugins/camera
- test/java/io/flutter/plugins/camera
- example
- integration_test
- lib
- lib/src
- test
- camera_avfoundation
- example
- integration_test
- ios
- Runner.xcodeproj
- RunnerTests
- Runner
- lib
- ios/Classes
- lib/src
- test
27 files changed
+1014
-125
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
Lines changed: 142 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
119 | 133 | | |
120 | 134 | | |
| 135 | + | |
121 | 136 | | |
122 | 137 | | |
123 | 138 | | |
124 | | - | |
| 139 | + | |
125 | 140 | | |
126 | 141 | | |
127 | 142 | | |
| |||
211 | 226 | | |
212 | 227 | | |
213 | 228 | | |
| 229 | + | |
214 | 230 | | |
215 | 231 | | |
216 | 232 | | |
| |||
251 | 267 | | |
252 | 268 | | |
253 | 269 | | |
| 270 | + | |
254 | 271 | | |
255 | 272 | | |
256 | 273 | | |
| |||
279 | 296 | | |
280 | 297 | | |
281 | 298 | | |
| 299 | + | |
282 | 300 | | |
283 | 301 | | |
284 | 302 | | |
| |||
323 | 341 | | |
324 | 342 | | |
325 | 343 | | |
| 344 | + | |
326 | 345 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
334 | 354 | | |
335 | 355 | | |
336 | 356 | | |
| |||
340 | 360 | | |
341 | 361 | | |
342 | 362 | | |
343 | | - | |
| 363 | + | |
| 364 | + | |
344 | 365 | | |
345 | 366 | | |
346 | 367 | | |
| |||
756 | 777 | | |
757 | 778 | | |
758 | 779 | | |
759 | | - | |
| 780 | + | |
760 | 781 | | |
761 | 782 | | |
762 | 783 | | |
| |||
768 | 789 | | |
769 | 790 | | |
770 | 791 | | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
771 | 799 | | |
772 | 800 | | |
773 | 801 | | |
| |||
778 | 806 | | |
779 | 807 | | |
780 | 808 | | |
| 809 | + | |
781 | 810 | | |
782 | 811 | | |
783 | 812 | | |
| |||
786 | 815 | | |
787 | 816 | | |
788 | 817 | | |
789 | | - | |
| 818 | + | |
790 | 819 | | |
791 | 820 | | |
792 | 821 | | |
| |||
1070 | 1099 | | |
1071 | 1100 | | |
1072 | 1101 | | |
1073 | | - | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
1074 | 1112 | | |
1075 | 1113 | | |
1076 | | - | |
1077 | 1114 | | |
1078 | 1115 | | |
1079 | 1116 | | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
1080 | 1147 | | |
1081 | 1148 | | |
1082 | 1149 | | |
| |||
1200 | 1267 | | |
1201 | 1268 | | |
1202 | 1269 | | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
| 1270 | + | |
1214 | 1271 | | |
1215 | 1272 | | |
1216 | 1273 | | |
| |||
1229 | 1286 | | |
1230 | 1287 | | |
1231 | 1288 | | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
1232 | 1349 | | |
1233 | 1350 | | |
1234 | 1351 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
357 | 369 | | |
358 | 370 | | |
359 | 371 | | |
| |||
0 commit comments