SonyCameraRemoteAPI 0.1.0

SonyCameraRemoteAPI 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total114
Week0
Month0

Installs

Apps13
powered by Segment

GitHub

Stars8
Watchers4
Forks2
Issues1
Contributors1
Pull Requests0

Code

Files2
LOCLines of Code 219


 
Depends on:
CocoaAsyncSocket>= 0
AFNetworking>= 0
KissXML>= 0
 

  • By
  • masafumi yoshida

iOS Sony Camera Remote API Client Library For QX10/100 and more..

  • find device SSDP
  • Live Preview support

Usage

Discover and connect device and capture live view

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];
    }];
}];

Shoot picture

[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]]];
}];

more API command

check sony Camera Remote API reference https://developer.sony.com/develop/cameras/