发起视频通话
我正在我的 Gingerbread Galaxy Tab P1000 上运行最新版本的 GTalk(使用市场上的 Talk 安装程序)。
我现在想以编程方式发起视频通话,前提是相关联系人在线且可用。
由于我没有找到任何相关文档,因此我查看了 相关 XML 并发现了以下有趣的部分
<activity-alias android:icon="@drawable/ic_launcher_google_videochat" android:name="PublicCallIntentDispatcher" android:targetActivity="PublicIntentDispatcher">
<intent-filter>
<action android:name="android.intent.action.SENDTO" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.item/video-chat-address" android:scheme="xmpp" />
</intent-filter>
</activity-alias>
:是“发送至”操作,我不需要特殊许可,对吗?我的问题是,我不知道如何获取 vnd.android.cursor.item/video-chat-address 类型的项目。你有什么想法或暗示我可以尝试什么吗?
提前致谢!
I am running the latest version of GTalk (using the Talk installer from the market) on my Gingerbread Galaxy Tab P1000.
I now want to programatically initiate a video call provided that the related contact is online and available.
As I didn't found any documentation for that I looked in the related XML and found the following interesting part:
<activity-alias android:icon="@drawable/ic_launcher_google_videochat" android:name="PublicCallIntentDispatcher" android:targetActivity="PublicIntentDispatcher">
<intent-filter>
<action android:name="android.intent.action.SENDTO" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.item/video-chat-address" android:scheme="xmpp" />
</intent-filter>
</activity-alias>
As it is a "Send-To" action, I don't need a special permission, do I? My problem is, that I don't know how to get an item of the type vnd.android.cursor.item/video-chat-address. Do you have any idea or hint what I might try?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
编辑:
必须对反汇编进行一些黑客攻击,但我得到了这个(其中电子邮件是您想要的地址):
这有效,但仍然提示您是否要开始视频聊天,这不完全是我需要的。希望这对其他人有帮助。
Edit:
Had to do a bit of hacking around disassembling but I got this (where email is the address you want):
This works, but still gives a prompt on whether you want to start a video chat, which is not quite what I need. Hope this helps some other people.
抱歉,不支持此功能。深入研究这样的应用程序就是查看其实现细节;除非您从应用程序作者那里获得支持哪些交互的文档,否则您能做的最好的事情就是编写在将来更新该应用程序时可能会损坏的代码。
Sorry, this is not supported. Digging in to an application like that is looking at its implementation details; unless you get documentation from the author of the application of what interactions with it are supported, the best you can do is come up with code that is likely to break at any point in the future when that application is updated.