Latest 0.1.0
Homepage https://github.com/nyankichi820/SonyCameraRemoteAPI
License MIT
Platforms ios 6.0, requires ARC
Dependencies CocoaAsyncSocket, AFNetworking, KissXML
Authors

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

  • find device SSDP
  • Live Preview support

Install

pod 'SonyCameraRemoteAPI'

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/

Latest podspec

{
    "name": "SonyCameraRemoteAPI",
    "version": "0.1.0",
    "summary": "iOS Sony Camera Remote API Client Library For QX10/100 and more..",
    "requires_arc": true,
    "description": "                    OS Sony Camera Remote API Client Libraryn                    - find device SSDP n                    - Live Preview supportn",
    "homepage": "https://github.com/nyankichi820/SonyCameraRemoteAPI",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "masafumi yoshida": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "dependencies": {
        "CocoaAsyncSocket": [],
        "AFNetworking": [],
        "KissXML": []
    },
    "xcconfig": {
        "HEADER_SEARCH_PATHS": ""$(SDKROOT)/usr/include/libxml2""
    },
    "source": {
        "git": "https://github.com/nyankichi820/SonyCameraRemoteAPI.git",
        "tag": "0.1.0"
    },
    "source_files": "Classes"
}

Pin It on Pinterest

Share This