siyi_a8_mini 0.1.0
siyi_a8_mini: ^0.1.0 copied to clipboard
A Dart package providing direct UDP control for SIYI A8 Mini cameras, supporting gimbal control, zoom, and media capture.
siyi_a8_mini #
A Flutter package for controlling SIYI A8 Mini cameras via UDP protocol.
Features #
- Connect: Connect to the SIYI A8 Mini camera via its IP and Port.
- Gimbal Control: Set absolute pitch and yaw angles, or center the gimbal.
- Camera Control: Zoom in, zoom out, stop zoom, capture images, and start/stop recording.
Getting started #
dependencies:
siyi_a8_mini: ^0.1.0
Usage #
import 'package:siyi_a8_mini/siyi_a8_mini.dart';
void main() async {
final client = SiyiA8MiniClient(host: '192.168.144.25', port: 37260);
// Center the gimbal
await client.centerGimbal();
// Set gimbal angle (yaw: 45, pitch: -30)
await client.setGimbalAngle(45.0, -30.0);
// Zoom in
await client.zoomIn();
await Future.delayed(Duration(seconds: 1));
await client.stopZoom();
// Capture an image
await client.captureImage();
// Dispose when done
client.dispose();
}
Additional information #
This package interacts directly with the SIYI A8 Mini camera using its raw UDP protocol. Ensure your device is on the same network as the camera.