Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
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
feat: stopping the camera stops all tracks
  • Loading branch information
bselwe committed Jul 20, 2021
commit ea7fe125c2ec4ed5cbaaee9d8be9efb44da9d87c
2 changes: 1 addition & 1 deletion packages/camera/camera_web/lib/src/camera.dart
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class Camera {

/// Stops the camera stream and resets the camera source.
void stop() {
final tracks = videoElement.srcObject?.getVideoTracks();
final tracks = videoElement.srcObject?.getTracks();
if (tracks != null) {
for (final track in tracks) {
track.stop();
Expand Down