Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c7a749a
Added maxVideoDuration to startVideoRecording
danielroek Dec 23, 2020
131918d
updated documentation
danielroek Dec 23, 2020
9b3ae14
updated documentation
danielroek Dec 23, 2020
3ca25df
Fixed long line in docs
danielroek Dec 23, 2020
5e626b9
Formatting
danielroek Dec 23, 2020
02811b7
Started implementation for Android
danielroek Dec 24, 2020
b8b07e2
WIP: Started implementation of stream when time limit is reached
danielroek Dec 24, 2020
aff2938
Merge remote-tracking branch 'origin/master' into limit_video_length
danielroek Jan 8, 2021
532cbb0
Merge remote-tracking branch 'origin/master' into limit_video_length
danielroek Jan 11, 2021
50edc53
Initial working implementation
danielroek Jan 11, 2021
6e31d7c
Android implementation works
danielroek Jan 11, 2021
d3bab02
Improved implementation
danielroek Jan 11, 2021
ae7365c
Updated README order
danielroek Jan 11, 2021
ae1b47c
removed debugPrints
danielroek Jan 11, 2021
4037b5e
Fixed url in README.md
danielroek Jan 11, 2021
36acc32
Formatting
danielroek Jan 11, 2021
5a78233
Merge remote-tracking branch 'origin/master' into limit_video_length
danielroek Jan 13, 2021
09dad16
Implemented Java feedback
danielroek Jan 13, 2021
771f116
Implemented Event and Stream to notify about videoRecording
danielroek Jan 13, 2021
16e43fb
stopVideoRecording now listens to VideoRecordedEvent
danielroek Jan 13, 2021
7cb73ef
Fixed future returning xFile
danielroek Jan 13, 2021
759f163
finished iOS implementation
Feb 3, 2021
0b4270d
Fixed formatting
Feb 3, 2021
12231da
fixed formatting
Feb 3, 2021
3b8d6ed
Reverted platform_interface changes
danielroek Feb 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Formatting
  • Loading branch information
danielroek committed Jan 11, 2021
commit 36acc32831084f1c22e83f3a6280b1132cb0ccdc
1 change: 0 additions & 1 deletion packages/camera/camera/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,6 @@ class _CameraExampleHomeState extends State<CameraExampleHome>

try {
await controller.startVideoRecording();

} on CameraException catch (e) {
_showCameraException(e);
return;
Expand Down
5 changes: 4 additions & 1 deletion packages/camera/camera/lib/src/camera_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,10 @@ class CameraController extends ValueNotifier<CameraValue> {
);
}

CameraPlatform.instance.onCameraTimeLimitReached(_cameraId).first.then((event) {
CameraPlatform.instance
.onCameraTimeLimitReached(_cameraId)
.first
.then((event) {
value = value.copyWith(isRecordingVideo: false);
onCameraTimeLimitReached(event.path);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,19 +250,18 @@ class CameraTimeLimitReachedEvent extends CameraEvent {
/// Converts the [CameraTimeLimitReachedEvent] instance into a [Map] instance that can be
/// serialized to JSON.
Map<String, dynamic> toJson() => {
'cameraId': cameraId,
'path': path.path,
};
'cameraId': cameraId,
'path': path.path,
};

@override
bool operator ==(Object other) =>
identical(this, other) ||
super == other &&
other is CameraTimeLimitReachedEvent &&
runtimeType == other.runtimeType &&
path == other.path;
super == other &&
other is CameraTimeLimitReachedEvent &&
runtimeType == other.runtimeType &&
path == other.path;

@override
int get hashCode => super.hashCode ^ path.hashCode;

}
}