如何使视频通话编程方式在Android 2.2或更高版本?或更高、版本、方式、视频

2023-09-05 00:46:50 作者:Agoni、暮念

我的工作,我想进行视频通话编程的应用程序。我使用的API级别8我的应用程序。

I am working on an application where I want to make a video call programmatically. I am using API level 8 for my application.

我有三星Galaxy S,在那里我可以使用视频通话功能。使用意图的行动 ACTION_CALL ,我就可以开始语音呼叫。

I have Samsung Galaxy S, where I can use video calling functionality. Using intent action ACTION_CALL, I can start voice call.

任何人都可以请帮我以编程方式启动视频通话?这额外的意图我需要提供?有没有什么特别的字段,它表明目前的去向呼叫的视频通话?如果是的话,我怎么能设置该字段,表示我想调用视频通话?

Can anyone please help me out to start video call programmatically? Which intent extra I have to provide? Is there any particular field which indicates that current outgoing call is video call? If yes, how can I set that field to indicate that I want to invoke a video call?

感谢很多提前。

推荐答案

下面是code在我的三星Galaxy Tab(安卓2.2)

Here is the code for creating video call on my Samsung Galaxy Tab (Android 2.2)

Intent callIntent = new Intent("com.android.phone.videocall");
callIntent.putExtra("videocall", true);
callIntent.setData(Uri.parse("tel:" + [your number goes here]));
activity.startActivity(callIntent);
 
精彩推荐