ezviz_flutter 1.0.2
ezviz_flutter: ^1.0.2 copied to clipboard
A comprehensive Flutter/Dart library for EZVIZ camera API integration with support for device management, live streaming, PTZ control, and more.
1.0.2 #
🐛 Bug Fixes #
- Fixed Type Casting Error: Resolved
type 'int' is not a subtype of type 'String' in type casterror in HTTP requests - HTTP Form Data: All parameter values are now properly converted to strings for
application/x-www-form-urlencodedrequests - DeviceService: Fixed
getDeviceList()method and all other methods with integer parameters (pageStart,pageSize,channelNo, etc.) - Universal Fix: Fixed type casting issues across all service classes that pass integer, boolean, or other non-string parameters
🔧 Technical Details #
- Modified
EzvizClient.post()method to automatically convert all body parameters to strings before HTTP requests - Ensures compatibility with form-encoded HTTP POST requests which require string values
- Affects all service methods including device management, alarm handling, live streaming, PTZ control, and more
1.0.1 #
🚀 New Features #
- Flexible Authentication: Added support for direct access token authentication alongside existing app key/secret authentication
- Enhanced EzvizClient Constructor: Now accepts either
accessToken+ optionalareaDomainORappKey+appSecret - Improved Error Handling: Better error messages for authentication failures and token validation
- Automatic Token Management: Smart handling of provided vs API-obtained tokens
📚 Documentation #
- Updated README with comprehensive authentication examples
- Added new
authentication_examples.dartdemonstrating both auth methods - Updated API configuration examples for flexible authentication
- Improved code documentation and examples
🔧 Improvements #
- Better validation of authentication parameters at construction time
- Enhanced authentication flow with automatic retry for expired tokens
- More intuitive authentication priority (access token preferred over app credentials)
1.0.0 #
- Initial version.