- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在 A6300 相机上开发 Android 应用程序。我想实现“传输图像”功能。我连接了相机 wifi 并找到了设备。当我通过访问 url http://192.168.122.1:61000/scalarwebapi_dd.xml
获取设备信息时。
Camera Remote API的信息由图中的标签“X_ScalarWebAPI_DeviceInfo”元素描述。我无法获得开发指南中描述的“avContent”服务。我可以获得“accessControl”服务。我已经将相机固件更新到 2.00,但这没关系。
最佳答案
您实际上已经完成了开始使用 Camera API 所需的第一步。您现在需要解析上面的 xml 以获取正确的 ActionList_URL。您需要的是 ServiceType 为“camera”的那个。这意味着您将收到网址“http://192.168.122.1:8080/sony”。现在您需要做的是对此 url 运行 POST 调用,为您要调用的 API 端点提供正文。
如果你想拍一张新照片,你可以像这样调用传递 JSON 的 actTakePicture 端点
{
"method": "actTakePicture",
"params": [],
"id": 1,
"version": "1.0"
}
然后你会得到这样的结果:
{
"result": [
["http://ip:port/postview/postview.jpg"]
],
"id": 1
}
如您所见,图像的 url 已返回,现在您可以下载它了。如何下载它取决于您使用的编程语言。以下是如何使用 Android 从 url 下载图像的链接: Best method to download image from url in Android
如果您想查看相机上的所有图像和视频并下载它们,您可以使用 getContentList API 调用
{
"method": "getContentList",
"params": [
{
"uri": "storage:memoryCard1",
"stIdx": 0,
"cnt": 50,
"view": "date",
"sort": ""
}
],
"id": 1,
"version": "1.3"
}
这会给你这样的结果:
{
"result": [
[
{
"uri": "image:content?contentId=XXXXXXXXXX",
"title": "",
"content": {
"original": [
{
"fileName": "DSC00001.JPG",
"stillObject": "jpeg",
"url": "http://ip:port/contentstransfer/orgjpeg/xxxxxxxx-xxxxxxxx"
}
],
"smallUrl": "http://ip:port/contentstransfer/vga/xxxxxxxx-xxxxxxxx",
"largeUrl": "http://ip:port/contentstransfer/scn/xxxxxxxx-xxxxxxxx",
"thumbnailUrl": "http://ip:port/contentstransfer/thumb/xxxxxxxx-xxxxxxxx"
},
"createdTime": "2014-08-18T12:34:56+09:00",
"contentKind": "still",
"folderNo": "100",
"fileNo": "0001",
"isPlayable": "false",
"isBrowsable": "false",
"isProtected": "",
"remotePlayType": null
}
]
],
"id": 1
}
如果您需要更多信息,请告诉我
关于android - 使用 Sony Camera Remote API 2.4 无法为 Sony 相机 A6300 获取 "avContent service",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45736605/
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
我曾尝试开始为 Sony 的智能手环 SWR30 开发扩展,但未能制作在 SmartBand Talk 应用程序中可见的扩展(在 SWR30 上安装扩展所需)。 我尝试使用索尼的 SmartWatch
索尼 D2203 运行 Android 4.4.2,D2403 运行 Android 4.4.4。 代码中给出错误的具体行是: PreferenceManager.setDefaultValues(t
我正在 A6300 相机上开发 Android 应用程序。我想实现“传输图像”功能。我连接了相机 wifi 并找到了设备。当我通过访问 url http://192.168.122.1:61000/s
我正在编写一个小软件,用于在 VB.net 中远程使用 Sony 相机(我使用 QX1,但型号应该无关紧要)。我可以通过将 JSON 命令发送到相机来制作照片,也可以使用包含在 JSON 命令中的方法
关闭。这个问题是opinion-based .它目前不接受答案。 想改善这个问题吗?更新问题,以便可以通过 editing this post 用事实和引文回答问题. 8年前关闭。 Improve t
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 8年前关闭。 Improve thi
我刚刚有一个 Sony KDL-43W800C,我打算为它开发一些应用程序,但是我找不到任何关于如何使用 adb 附加到它的信息来安装 apks 和获取日志等。 我错过了什么? 最佳答案 您需要通过
我想在用户更改小部件设置时更新 SmartWatch 小部件。我知道这可以通过发送 WIDGET_IMAGE_UPDATE_INTEN Intent 来完成,但似乎我没有主机应用程序包名称的信息(即
我有一个应用程序只支持 v1 的 SmartWatch 小部件(getRequiredWidgetApiVersion() 返回 1)。在 v2 中,我添加了代码以支持控制,还更改了代码以针对 get
我有一台带有最新固件 (3.20) 和最新智能远程控制应用程序 (4.30) 的 Sony A6000 相机。我一直在尝试编写用于传输图像的应用程序,但遇到了问题。 我无法将相机功能切换到内容传输模式
我的应用程序使用手机内置的联系人选择器来允许用户选择电子邮件地址。我遇到的问题是这适用于我的 Nexus 5 (Lollipop) 和三星 (KitKat),但不适用于 Sony Experia Z1
是否可以在站点上使用 Playstation 网络 API?我想创建一个站点,让 PSN 用户可以使用他们的 PSN 名称参加在线比赛 最佳答案 PSN API 有一个 PHP 包装器。它被 Tust
我正在做一个Spresense项目,但是音频再现有问题。 SD卡具有三个名为“1.mp3”,“2.mp3”和“3.mp3”的文件,但是当我调用其中一个时,Serial会出现错误,并且板卡会暂停。 其他
我在Google Play商店中发布了一个应用,并且还添加了:SmartWatch 2的Smart Connect扩展名(在描述的每个译文中),但不幸的是,当我在Play商店中搜索智能扩展名或从Sma
我不明白这里发生了什么。 尽管我已设置,但尝试访问 HTC Wildfire S 上的外部存储时,我的权限被拒绝 在 list 文件中。 String state = Environment.get
哪个 API 可以告诉我有关特定配件设备是否支持 LED 的信息? 最佳答案 SmartWatch 和 Smart Wireless Headset Pro 都不包含 LED。 但是,您可以使用 Ca
我正在尝试在电池充电完成后自动启动我的 Sony Xperia SP。我已经为三星和其他设备尝试了所有各种解决方案,但似乎都不起作用。 我设法找到了充电时加载的 png 文件,但是我找不到调用它们的脚
在输出窗口中调试应用程序时会得到很多额外的调试信息。 09-10 14:26:17.442 D/scheduleTraversals(7995):mTraversalScheduled:false 0
我正在开发一个 Android 应用程序,用于连接视频并将其转换到支持 DIAL 的智能电视(如 Chromecast)。目前,我可以通过移动设备在智能电视上发现并启动我的应用程序(此处示例:http
我是一名优秀的程序员,十分优秀!