camera_avfoundation
v0.9.23+2iOS implementation of the camera plugin.
Архив пакета: https://pubdev.letsnova.ru/api/archives/camera_avfoundation/0.9.23+2.tar.gz
Установка
dart pub add camera_avfoundationREADME
camera_avfoundation
The iOS implementation of camera.
Usage
This package is endorsed, which means you can simply use camera
normally. This package will be automatically included in your app when you do,
so you do not need to add it to your pubspec.yaml.
However, if you import this package to use any of its APIs directly, you
should add it to your pubspec.yaml as usual.
История изменений
0.9.23+2
- Code refactor related to Swift pigeon's generated struct MediaSettings being immutable.
0.9.23+1
- Fixes error handling in
startWriting.
0.9.23
- Changes the default storage path for camera pictures and videos on iOS from the application's Documents directory to the system's temporaryDirectory.
0.9.22+10
- Handles video and audio interruptions and errors by "pausing" and reporting errors.
- Uses a single time offset for both video and audio to avoid desync.
0.9.22+9
- Migrates
FLTSavePhotoDelegate,FLTWritableData, andFLTImageStreamHandlerclasses to Swift. - Migrates
CameraPropertiesandQueueUtilshelpers to Swift.
0.9.22+8
- Migrates
FLTPermissionServicingandFLTCameraPermissionManagerclasses to Swift.
0.9.22+7
- Migrates
FLTCaptureConnection,FLTCaptureDeviceFormatandFLTAssetWriterclasses to Swift.
0.9.22+6
- Updates to Pigeon 26.
0.9.22+5
- Migrates
FLTCaptureDevice,FLTCaptureSession, andFLTFormatUtilsclasses to Swift.
0.9.22+4
- Migrates
FLTCameraDeviceDiscoveringandFLTDeviceOrientationProvidingclasses to Swift.
0.9.22+3
- Updates examples to use the new RadioGroup API instead of deprecated Radio parameters.
0.9.22+2
- Migrates
FLTCamConfiguration,FLTCamMediaSettingsAVWrapperclasses to Swift. - Migrates
FLTCaptureOutput,FLTCapturePhotoOutput,FLTCaptureVideoDataOutputprotocols to Swift.
0.9.22+1
- Fixes crash on iOS when
enableAudiois false.
0.9.22
- Adds lensType in the PlatformCameraDescription
0.9.21+4
- Migrates
updateOrientationandsetCaptureSessionPresetmethods to Swift. - Removes
FLTCamclass.
0.9.21+3
- Removes code for versions of iOS older than 13.0.
- Updates minimum supported SDK version to Flutter 3.35.
0.9.21+2
- Migrates
DefaultCamerainitialization to Swift. - Removes unused
textureIdfield ofFLTCamclass. - Updates minimum supported SDK version to Flutter 3.29/Dart 3.7.
0.9.21+1
- Migrates
startImageStreamandsetUpCaptureSessionForAudioIfNeededmethods to Swift. - Removes Objective-C implementation of
reportErrorMessagemethod.
0.9.21
- Fixes crash when streaming is enabled during recording.
0.9.20+7
- Updates kotlin version to 2.2.0 to enable gradle 8.11 support.
0.9.20+6
- Migrates
captureToFileandgetTemporaryFilePathmethods to Swift. - Switches to Swift dispatch queue specific interface.
0.9.20+5
- Migrates
startVideoRecording,setUpVideoRecording, andsetupWritermethods to Swift.
0.9.20+4
- Migrates
setVideoFormat,stopVideoRecording, andstopImageStreammethods to Swift. - Migrates stopping accelerometer updates to Swift.
- Migrates
setDescriptionWhileRecordingmethod to Swift. - Adds
createConnectionmethod implementation to Swift.
0.9.20+3
- Migrates
setZoomLevelandsetFlashModemethods to Swift.
0.9.20+2
- Migrates exposure offset and zoom factor limit getters to Swift.
- Migrates
setImageFileFormatmethod to Swift. - Migrates pause and resume methods to Swift.
- Migrates capture orientation locking methods to Swift.
- Converts
setDeviceOrientationmethod to property setter and migrated to Swift.
0.9.20+1
- Migrates lifecycle methods (
start,stop,close) to Swift. - Migrates exposure and focus related methods to Swift.
- Migrates
receivedImageStreamDataandreportInitializationStatemethods to Swift.
0.9.20
- Fixes incorrect types in image stream events.
0.9.19+3
- Fixes race condition when starting image stream.
0.9.19+2
- Adds the
CameraSwift protocol. - Adds
DefaultCamera, aFLTCam-based implementation of theCameraprotocol. - Migrates sample buffer delegates and
FlutterTextureprotocol implementations toDefaultCamera.
0.9.19+1
- Adds
audioCaptureDeviceFactorytoFLTCamConfiguration. - Renames the
lockCaptureOrientationmethod of Objective-C typeFLTCamwhen exported to Swift. - Renames arguments of the
captureOutputmethod of Objective-C typeFLTCamwhen exported to Swift. - Changes the
connectionargument type of thecaptureOutputmethod of the ofFLTCamclass toAVCaptureConnection. - Makes
minimum/maximumAvailableZoomFactorandminimum/maximumExposureOffsetfields ofFLTCamreadonly. - Updates minimum supported SDK version to Flutter 3.27/Dart 3.6.
0.9.19
- Migrates the CameraPlugin class to Swift.
- Fixes camera name being ignored in
setDescriptionWhileRecording.
0.9.18+14
- Creates Swift Package Manager target for Swift implementation.
0.9.18+13
- Migrates test utils and mocks to Swift.
- Aligns
FLTCaptureDevicemore closely with theAVCaptureDeviceinterface.
0.9.18+12
- Migrates test utils and mocks to Swift.
- Renames the methods of Objective-C type
FLTCaptureSessionwhen exported to Swift.
0.9.18+11
- Backfills unit tests for the
FLTCamclass. - Refactors implementation to allow mocking of
AVCaptureVideoDataOutputin tests.
0.9.18+10
- Backfills unit tests for the
FLTCamclass. - Makes
exposureMode,focusMode, andflashModeproperties ofFLTCamprivate.
0.9.18+9
- Backfills unit tests for
CameraPluginclass. - Adds
minimumExposureOffsetandmaximumExposureOffsetmethods toFLTCamclass.
0.9.18+8
- Migrates unit tests to Swift.
0.9.18+7
- Fixes crash when setting
activeFormatonFLTCaptureDevice.
0.9.18+6
- Refactors implementations to remove remaining usage of OCMock in internal testing.
0.9.18+5
- Migrates unit tests to Swift.
0.9.18+4
- Refactors implementations to reduce usage of OCMock in internal testing.
0.9.18+3
- Refactors implementations to reduce usage of OCMock in internal testing.
0.9.18+2
- Refactors implementations to reduce usage of OCMock in internal testing.
0.9.18+1
- Refactors implementations to reduce usage of OCMock in internal testing.
0.9.18
- Adds API support query for image streaming.
0.9.17+7
- Fixes changing global audio session category to be collision free across plugins.
0.9.17+6
- Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.
- Removes OCMock usage from permission tests
0.9.17+5
- Adds ability to use any supported FPS and fixes crash when using unsupported FPS.
0.9.17+4
- Updates Pigeon for non-nullable collection type support.
- Updates minimum supported SDK version to Flutter 3.19/Dart 3.3.
0.9.17+3
- Fixes deallocation of camera on dispose.
0.9.17+2
- Fixes stopVideoRecording waiting indefinitely and lag at start of video.
0.9.17+1
- Fixes a crash due to appending sample buffers when readyForMoreMediaData is NO.
0.9.17
- Adds Swift Package Manager compatibility.
0.9.16+3
- Removes unused
maxVideoDurationcode.
0.9.16+2
- Fixes regression taking a picture in torch mode.
0.9.16+1
- Fixes sample times not being numeric after pause/resume.
0.9.16
- Converts Dart-to-host communcation to Pigeon.
- Fixes a race condition in camera disposal.
0.9.15+4
- Converts host-to-Dart communcation to Pigeon.
0.9.15+3
- Moves
pigeontodev_dependencies.
0.9.15+2
- Converts camera query to Pigeon.
0.9.15+1
- Simplifies internal handling of method channel responses.
0.9.15
- Adds support to control video FPS and bitrate. See
CameraController.withSettings.
0.9.14+2
- Removes
_ambiguatemethods from example code.
0.9.14+1
- Fixes bug where max resolution preset does not produce highest available resolution on iOS.
0.9.14
- Adds support to HEIF format.
0.9.13+11
- Fixes a memory leak of sample buffer when pause and resume the video recording.
- Removes development team from example app.
- Updates minimum iOS version to 12.0 and minimum Flutter version to 3.16.6.
0.9.13+10
- Adds privacy manifest.
0.9.13+9
- Fixes new lint warnings.
0.9.13+8
- Updates example app to use non-deprecated video_player method.
- Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
0.9.13+7
- Fixes inverted orientation strings.
0.9.13+6
- Fixes incorrect use of
NSErrorthat could cause crashes on launch.
0.9.13+5
- Ignores audio samples until the first video sample arrives.
0.9.13+4
- Adds pub topics to package metadata.
- Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
0.9.13+3
- Migrates
styleFromusage in examples off of deprecatedprimaryandonPrimaryparameters. - Fixes unawaited_futures violations.
0.9.13+2
- Removes obsolete null checks on non-nullable values.
- Updates minimum supported SDK version to Flutter 3.3/Dart 2.18.
0.9.13+1
- Clarifies explanation of endorsement in README.
0.9.13
- Allows camera to be switched while video recording.
- Aligns Dart and Flutter SDK constraints.
0.9.12
- Updates minimum Flutter version to 3.3 and iOS 11.
0.9.11+1
- Updates links for the merge of flutter/plugins into flutter/packages.
0.9.11
- Adds back use of Optional type.
- Updates minimum Flutter version to 3.0.
0.9.10+2
- Updates code for stricter lint checks.
0.9.10+1
- Updates code for stricter lint checks.
0.9.10
- Remove usage of deprecated quiver Optional type.
0.9.9
- Implements option to also stream when recording a video.
0.9.8+6
- Updates code for
no_leading_underscores_for_local_identifierslint. - Updates minimum Flutter version to 2.10.
0.9.8+5
- Fixes a regression introduced in 0.9.8+4 where the stream handler is not set.
0.9.8+4
- Fixes a crash due to sending orientation change events when the engine is torn down.
0.9.8+3
- Fixes avoid_redundant_argument_values lint warnings and minor typos.
- Ignores missing return warnings in preparation for upcoming analysis changes.
0.9.8+2
- Fixes exception in registerWith caused by the switch to an in-package method channel.
0.9.8+1
- Ignores deprecation warnings for upcoming styleFrom button API changes.
0.9.8
- Switches to internal method channel implementation.
0.9.7+1
- Splits from
cameraas a federated implementation.
