Je développe des applications sur iOS.Impossible de se connecter à l'API Remote Camera de Sony
J'essaie de connecter l'API Sony Camera Remote et je ne trouve pas le bon fichier de description d'appareil. Donc je ne peux pas utiliser l'API.
J'essaie de se connecter avec des étapes de suivi:
Connect Mac à la caméra via le Wifi:
Open my camera menu ——> Wifi ——> Send to Smartphone ——> Select on Smartphone ——> connect mac to camera over access point
Utilisez SSDP pour découvrir la caméra
Use the UdpRequest provided by sony to send ssdp-discovery message. Then the message send successfully. Then I received the follow message: CFSocket receiveData response = NOTIFY * HTTP/1.1 HOST: 239.255.255.250:1900 CACHE-CONTROL: max-age=1800 LOCATION: http://192.168.122.1:64321/DmsDesc.xml NT: upnp:rootdevice NTS: ssdp:alive SERVER: UPnP/1.0 SonyImagingDevice/1.0 USN: uuid:00000000-0000-0010-8000-a408ea87692a::upnp:rootdevice X-AV-Physical-Unit-Info: pa=""; pl=; X-AV-Server-Info: av=5.0; hn=""; cn="Sony Corporation"; mn="SonyImagingDevice"; mv="1.0"; In the Development Guide, the response should seems like this: HTTP/1.1 200 OK LOCATION: http://192.168.122.1:64321/dd.xml CACHE-CONTROL: max-age=1800 EXT: SERVER: OS/version UPnP/1.0 product/version ST: urn:schemas-sony-com:service:ScalarWebAPI:1
I campared DmsDesc.xml avec dd.xml
Main part of DmsDesc.xml: DMS-1.50 urn:schemas-upnp-org:device:MediaServer:1 ILCE-7M2 Sony Corporation http://www.sony.com/ SonyDigitalMediaServer SonyImagingDevice http://www.sony.net/ uuid:00000000-0000-0010-8000-a408ea87692a urn:schemas-upnp-org:service:ContentDirectory:1 urn:upnp-org:serviceId:ContentDirectory /CdsDesc.xml /upnp/control/ContentDirectory /upnp/event/ContentDirectory urn:schemas-upnp-org:service:ConnectionManager:1 urn:upnp-org:serviceId:ConnectionManager /CmsDesc.xml /upnp/control/ConnectionManager /upnp/event/ConnectionManager urn:schemas-sony-com:service:DigitalImaging:1 urn:schemas-sony-com:serviceId:DigitalImaging /DigitalImagingDesc.xml /upnp/control/DigitalImaging
dd.xml dans le Guide de développement devrait comme ceci:
<av:X_ScalarWebAPI_DeviceInfo xmlns:av="urn:schemas-sony-com:av">
<av:X_ScalarWebAPI_Version>1.0</av:X_ScalarWebAPI_Version>
<av:X_ScalarWebAPI_ServiceList>
<av:X_ScalarWebAPI_Service>
<av:X_ScalarWebAPI_ServiceType>guide</av:X_ScalarWebAPI_ServiceType>
<av:X_ScalarWebAPI_ActionList_URL>http://192.168.122.1:8080/sony</av:X_ScalarWebAPI_ActionList_URL>
</av:X_ScalarWebAPI_Service> <av:X_ScalarWebAPI_Service>
<av:X_ScalarWebAPI_ServiceType>camera</av:X_ScalarWebAPI_ServiceType>
<av:X_ScalarWebAPI_ActionList_URL>http://192.168.122.1:8080/sony</av:X_ScalarWebAPI_ActionList_URL> </av:X_ScalarWebAPI_Service>
</av:X_ScalarWebAPI_ServiceList></av:X_ScalarWebAPI_DeviceInfo>
Ma question est:
Comment obtenir le fichier de description de l'appareil à droite. Comment se connecter Sony Camera Remote API, la démo sera parfaite.
si sony ingénieur peut voir ma question, renouveler la démo officielle s'il vous plaît.Il est trop vieux.
Avez-vous trouvé un moyen de le faire fonctionner aveC# 1? – keegan3d