测试已测试 | ✗ |
语言语言 | Obj-CObjective C |
许可证 | MIT |
发布最新发布 | 2014年12月 |
由未命名维护。
依赖 | |
CocoaAsyncSocket | >= 0 |
AFNetworking | >= 0 |
KissXML | >= 0 |
针对 iOS 的 QX10/100 及更多型号的索尼相机远程 API 客户端库..
SonyCameraRemoteAPIClient *client = [[SonyCameraRemoteAPIClient alloc] init];
[client discoverDevices:^(NSDictionary * result, NSError *error) {
[client captureLiveview:[result objectForKey:@"liveviewstream"] captured:^(NSData *result, NSError *error) {
UIImage *image = [UIImage imageWithData:result];
}];
}];
[client request:@"camera" method:@"actTakePicture" params:@[] completion:^(NSDictionary *result, NSError *error) {
NSArray *urls = [result objectForKey:@"result"];
[self.shootImage setImageWithURL:[NSURL URLWithString:[[urls objectAtIndex:0]objectAtIndex:0]]];
}];
检查索尼相机远程 API 参考 https://developer.sony.com/develop/cameras/