VOIP使用PhoneGap [英] VOIP Using Phonegap

查看:146
本文介绍了VOIP使用PhoneGap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

还有我可以使用Ionic Framework实现VOIP客户端吗?

Is there's anyway I can implement VOIP Client using Ionic Framework ? Theres a SDK for the VOIP but regarding the connection and everything, is it possible or should I go native ?

感谢

推荐答案

可以在Javascript中使用VOIP SDK。这些SDK依赖WebRTC工作,这并不总是在旧的Android版本中可用。但是这些框架足够稳定,可以在桌面上的浏览器中工作。

It is possible to use VOIP SDK's in Javascript. These SDK's rely on WebRTC to work, and this is not always available in older Android versions for example. These frameworks are however stable enough to work in a browser on your desktop.

您使用Cordova而不是本机有几个并发症。在Javascript中,你对连接和操作系统的控制要少得多。例如:当您使用VOIP并且手机处于待机状态时,您将失去连接,因为在iOS上无法在Cordova的背景上运行。 Android有一些在后台运行的方法,但你必须试验,如果这是如何工作,当你使用VOIP。

You have several complications with Cordova instead of native. In Javascript you have a lot less control on connection and the OS in general. For example: when you are using VOIP and the phone goes on standby, you will lose connection because on iOS cannot run on the background with Cordova. Android has some ways of running in the background but you will have to experiment if this works when you are using VOIP.

总之:你永远不会在Cordova获得一个稳定的VOIP版本,因为在浏览器中的支持仍然缺乏支持。

In short: You will never get an as stable version of VOIP in Cordova as you could get native because the support in the browser still lacks support. If you want the best user experience for VOIP you will have to use native components (for now).

作为替代方案,您有一个Cordova插件 phono ,您将可以从Cordova应用程式拨打VOIP电话。这是一个插件,我发现在互联网上搜索,并没有自己尝试。可能有其他Cordova插件的效果更好。

As alternative, you have a Cordova plugin phono that will let you make VOIP calls from your Cordova app. This is a plugin that I found searching on the internet and haven't tried it myself. There may be other Cordova plugins that work better.

这篇关于VOIP使用PhoneGap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆