使用 Phonegap 的 VOIP [英] VOIP Using Phonegap

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

问题描述

无论如何我可以使用 Ionic Framework 实现 VOIP 客户端?有一个用于 VOIP 的 SDK,但关于连接和所有内容,是否可能或我应该使用原生软件?

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,因为浏览器中的支持仍然缺乏支持.如果您想要 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.

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

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