使用 Hangout api 进行视频通话 [英] Making a Video call using Hangout api
问题描述
你好,我有一个安卓应用程序,我想要一个视频聊天功能,我在互联网上搜索了很多,但找不到任何可行且简单的解决方案,然后我找到了 Hangout api,
现在我想将环聊视频通话功能添加到我自己的应用程序中,但我找不到从哪里开始.
我想要的只是来自我自己的 android 应用程序,我想启动任何第三方应用程序进行视频通话.完成视频通话后返回我自己的应用程序
我怎样才能做到这一点?
我有我的应用程序代码,但在这里分享它们会使其变得复杂,任何入门指南,我将不胜感激
你可能想试试
Hello i have an android application , in which i want a video chat functionality , i searched a lot on internet but couldnot find any working and simple solution to this , then i found hangout api ,
now i want to add hangout video call feature to my own application but i cannot find where to get started .
All i want is from my own android application i want to initiate any third party application for video call . and get back to my own application when video call is done
how can i acheive this ?
i have my application codes , but sharing them here will make it complex , any guide to get started , i shall be thankfull
You may would like to try AppRTC
Getting Room ID
roomConnectionParameters = new RoomConnectionParameters(roomUri.toString(), roomId, loopback);
Setting Fragment Call
callFragment.setArguments(intent.getExtras());
FragmentTransaction ft = getFragmentManager().beginTransaction();
ft.add(R.id.call_fragment_container, callFragment);
ft.add(R.id.hud_fragment_container, hudFragment);
ft.commit();
Connecting to Peer
peerConnectionClient = PeerConnectionClient.getInstance();
if (loopback) {
PeerConnectionFactory.Options options = new PeerConnectionFactory.Options();
options.networkIgnoreMask = 0;
peerConnectionClient.setPeerConnectionFactoryOptions(options);
}
这篇关于使用 Hangout api 进行视频通话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!