- Sony camera remote API wrapper written in C#.
- Currently supports Camera Remote API beta v2.3.0.
- Being developed as a part of Locana.
- Clone repository.
git clone git@github.com:kazyx/kz-remote-api.git-
Open csproj file with Visual Studio.
- /Project/KzRemoteApiUwp.csproj for Windows 10 Universal application.
- /Project/KzRemoteApiDesktop.csproj for Desktop application.
- /Project/KzRemoteApiUniversal.csproj for Windows 8.1 Universal application.
/Project/KzRemoteApiPhone8.csproj for Windows Phone 8 or 8.1 application.
-
Add reference to Json.NET.
- Get end point URL of the services. See kz-ssdp-discovery.
discovery.SonyCameraDeviceDiscovered += (sender, e) => {
var endpoints = e.SonyCameraDevice.Endpoints;
}- Create ApiClient instance.
var camera = new CameraApiClient(endpoints["camera"]);- Call async API.
var picUrls = await camera.ActTakePictureAsync();Async methods throw RemoteApiException in the following cases.
- Any network error:
StatusCode.NetworkError - Operation is cancelled via
CancellationTokenSource:StatusCode.Cancelled - Error response:
StatusCode.Anyor larger. OrStatusCode.Undefinedif it is not defined yet.
This software is published under the MIT License.