.NET implementation of the Sony Camera Remote API.
Implements the SSDP (using RSSDP) discovery of the devices and the API method calling.
Should be also usable for iOS and Android (using Xamarin).
Not all API methods are wrapped but you can use the base methods to do this.
Connect to a camera via Uuid:
SonyCameryDevicedevice=RemoteControl.FindDevice("00000000-0005-0010-8000-1c994c0e8586");Search for a device:
SonyCameryDevicedevice=RemoteControl.SearchDevice();Initialize the device (retrieving API version and available methods) [Optional]
varinitResult=await_device.Initialize();using various AOI methods:
varresult=await_device.StartLiveView();varresult=await_device.TakePhoto();Retrieving the live preview stream:
_streamingClient=newStreamingClient();_streamingClient.ImageRetrieved+=(s,args)=>showImageData(args.JpegData);_streamingClient.Error+=(sender,e)=>showError("Streaming error - "+e.ErrorMessage);// start and show live previewvarresult=await_device.StartLiveView();if(!result.HasError)_streamingClient.Start(result.Value);// stop previewif(_streamingClient!=null){_streamingClient.Stop();Result=_device.StopLiveView();}More information about Sony Camera Remote API:
https://developer.sony.com/2013/11/29/how-to-develop-an-app-using-the-camera-remote-api-2/