0

Since we need to have a UDP socket to discover the device, and since javascript seems not supporting UDP, is it possible to connect to Sony Camera Remote API with a javascript based mobile app (non native).

madu
  • 557
  • 6
  • 14
  • Is this a cordova app you are talking about? Have you tried a cordova based UDP plugin? Something like this : https://github.com/MobileChromeApps/cordova-plugin-chrome-apps-sockets-udp – pg316 Sep 27 '16 at 23:18
  • @Robert : Yes it is. Ionic2 + Cordova. How did I miss that! :) I'll check. Thank you. – madu Sep 28 '16 at 06:02

1 Answers1

0

As said in the comments, you can use Cordova to do the SSDP discovery.

However, as far as I can see, the API is HTTP-based. So if you don't need discover (can write in the IP address and port manually), then this should be possible to do.

Did you ever get anywhere with this project? I'd be interested in getting some LiveView and controlling a camera using Javascript.

odinho - Velmont
  • 20,922
  • 6
  • 41
  • 33