[英]android video calling
in android for voice call we use below code 在Android中进行语音通话时,我们使用以下代码
Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:+436641234567"));
startActivityForResult(intent,0);
then what is the intent or code for Video call 那么视频通话的意图或代码是什么
Video calling is easily possible if both the users have a 3G connection. 如果两个用户都具有3G连接,则可以轻松进行视频通话。 I did a sample code where on a button click the call is initiated to a number. 我做了一个示例代码,在该按钮上,单击按钮可发起对某个号码的呼叫。 I wrote the following code inside the onclick listener: 我在onclick侦听器中编写了以下代码:
Intent callIntent = new Intent("com.android.phone.videocall");
callIntent.putExtra("videocall", true);
callIntent.setData(Uri.parse("tel:" + phonenumber));
startActivity(callIntent);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.