简体   繁体   English

用于Cordova的Java SIP插件或用于音频和视频流的Phonegap

[英]Java SIP Plugin for Cordova or Phonegap for Audio and Video streaming

I've been doing some research on Phonegap and Cordova, it seems there is no support for creating apps that have SIP and VOIP functionality since HTML5 and Javascript have little or no support for these protocols (webRTC and websockets are not yet supported on most mobile phone browsers). 我一直在对Phonegap和Cordova进行一些研究,似乎不支持创建具有SIP和VOIP功能的应用程序,因为HTML5和Javascript很少或根本不支持这些协议(大多数移动设备尚不支持webRTC和websockets手机浏览器)。 However I found out it is possible to create and use Plugins in order to use native functionality of the Operating Systems (iOS and Android in this case). 但是我发现可以创建和使用插件来使用操作系统的本机功能(在这种情况下是iOS和Android)。

My question is that, if for example I write native JAVA codes for my Android-Phonegap application, will I be able to use it as a plugin to stream audio and video in my Android-Phonegap application? 我的问题是,如果我为我的Android-Phonegap应用程序编写原生JAVA代码,我是否可以将其用作插件来在我的Android-Phonegap应用程序中传输音频和视频? what are the limitations of using a plugin (with native functionality) in Phonegap or Cordova? 在Phonegap或Cordova中使用插件(具有本机功能)的限制是什么? Most of the plugin codes I checked online had a "Result" in the end, does this effect streaming of Audio and Video? 我在网上查看的大多数插件代码到底有一个“结果”,这会影响音频和视频的流媒体吗?

Thanks in advance. 提前致谢。

A proof-of-concept Cordova app that uses SIP.js with the PhoneRTC plugin to make WebRTC calls over the internet. 一个概念验证Cordova应用程序,它使用SIP.js和PhoneRTC插件通过互联网进行WebRTC调用。

https://github.com/joseph-onsip/sipjs-cordova https://github.com/joseph-onsip/sipjs-cordova

Video.... I could potentially see a problem... BUT! 视频......我可能会看到一个问题......但是! HTML5 already has support for that so its OK. HTML5已经有了支持,所以没关系。 If looking to do SIP Video calls, look below. 如果要进行SIP视频通话,请查看以下内容。

You have HTML5 SIP clients that have been made: http://sipml5.org/ 您已经制作了HTML5 SIP客户端: http//sipml5.org/

It is Open Source. 它是开源的。 I haven't used it, but I cannot imagine that the back-end of the codebase wouldn't be portable to mobile. 我没有使用它,但我无法想象代码库的后端不能移植到移动设备。

Emdedded SIP - I would take a good long look at the code used in LinPhone ( http://www.linphone.org/eng/download/git.html ) and CSipSimple ( https://code.google.com/p/csipsimple/ ) for your Java plugin Side ( You will need to build the required C libraries and use them as well ). Emdedded SIP - 我会仔细查看LinPhone( http://www.linphone.org/eng/download/git.html )和CSipSimple( https://code.google.com/p/ )中使用的代码csipsimple / )用于Java插件Side(您将需要构建所需的C库并使用它们)。

Now, PhoneGap provides a great Audio/Video Capture plugin. 现在,PhoneGap提供了一个出色的音频/视频捕获插件。

https://github.com/apache/cordova-plugin-media-capture/blob/dev/doc/index.md https://github.com/apache/cordova-plugin-media-capture/blob/dev/doc/index.md

What you can do is integrate the Stream with some of the returns and tie-ins on the Media Capture plugin. 你可以做的是将Stream与Media Capture插件上的一些返回和绑定集成在一起。

So, you have two options. 所以,你有两个选择。

Here you have a SIP plugin for Android devices. 这里有一个适用于Android设备的SIP插件。 Hope it helps! 希望能帮助到你!

https://github.com/lglossman/SipManagerPlugin https://github.com/lglossman/SipManagerPlugin

Anything you need don't hesitate to contact me... 你需要的任何东西都不要犹豫与我联系......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM