在AndroidWear上使用Sony Camera API [英] Using Sony Camera API on AndroidWear

查看:165
本文介绍了在AndroidWear上使用Sony Camera API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个可以使用摄像机远程API从Sony AS100VR摄像机开始和停止记录的应用程序.

I want to create an app that can start and stop recording from a Sony AS100VR camera using camera remote API.

我可以使用直接Wifi连接从我的关系中获得相同的工作,但是当我通过Sony智能手表建立直接wifi连接时,它在SSDP检测阶段失败.

I can get the same working from my nexus using a direct Wifi connection, but when I establish a direct wifi connection from my Sony smartwatch, it fails at the SSDP detection stage.

它肯定是通过Wifi通过SSID连接到摄像机的,但无法检测到它.

It's definitely connected to the camera, SSID over Wifi, but it can't detect it.

我尝试使用重试和超时值,但是我有些想法用完了.

I have tried playing with retries and timeout values, but I have sort of run out of ideas.

使用java.net.SocketTimeoutException陷入了陷阱(InterruptedIOException e)

it's falling into the catch catch (InterruptedIOException e) with a java.net.SocketTimeoutException

感谢任何建议!

推荐答案

智能手表上不提供UDP Mulitcast,因此SSDP发现失败.

UDP Mulitcast is not available on smartwatch, so SSDP discovery fails.

对于任何基于UPnP的应用程序,都有故障安全选项,即:

There is a fail-safe choice for any UPnP based application, that is:

在大多数情况下,除了IP Address之外,资源URL结构保持不变,因此,当SSDP发现失败时,让用户直接输入IP Address(可能以UI Picker的形式)并获取"DeviceDescription.xml"或类似内容否则再设置服务.

As in most case, the resource URL structure keeps unchanged except IP Address, so when SSDP discovery failed, let user directly input the IP Address (maybe in form of UI Picker) and get "DeviceDescription.xml" or something else then setup services.

这篇关于在AndroidWear上使用Sony Camera API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆