On Sun, Mar 26, 2017 at 11:26 PM, 'Mauro Rafael dos Santos' via CodenameOne
Discussions <[email protected]> wrote:

> Hi Shai,
>
> First, *thank you* to post some tutorial videos in youtube, it helps me
> to start to use the codename one.
>
> I´ll use this post to make my question (*maybe the solution is build a
> WebRTC, but I don´t know*)..
>
> I need to build a Android App to 1000 employees to use my sip server
> (FreePBX), only to use the microphone (a normal voice call - no vídeo) and
> encryptation. My questions:
>
> 1) Is there some tool, pre-build .java or example/tutorial to help with
> this type of project?
>

I don't believe so.  The best thing to do is implement the WebRTC stuff in
Javascript.  There are lots of examples on the web on how to do this.  E.g.
https://webrtc.github.io/samples/

For interfacing with Codename One (java), use the Javascript bridge.
https://www.codenameone.com/javadoc/com/codename1/javascript/package-summary.html

Warning.  Debugging the javascript bridge is painful.  Sometimes errors
happen in javascript and they can be hard to track down.  So try to keep
the back-and-forth between java and javascript to a minimum.  Best to
design in such a way that you can debug your javascript stuff independently
(e.g. in Chrome), and then just copy it into your Cn1 project to link it up.

Personally, I might be more inclined to use native interfaces to the native
WebRTC libs directy.  E.g.
https://tech.appear.in/2015/05/25/Getting-started-with-WebRTC-on-iOS/
https://tech.appear.in/2015/05/25/Introduction-to-WebRTC-on-Android/

These interfaces look fairly simple and clean and would be pretty easy to
wrap into a cn1lib.

This series of blog posts describes the process of wrapping 3rd party libs
in a cn1lib
https://www.codenameone.com/blog/integrating-3rd-party-native-sdks-part-1.html
https://www.codenameone.com/blog/integrating-3rd-party-native-sdks-part-2.html
https://www.codenameone.com/blog/integrating-3rd-party-native-sdks-part-3.html

Best regards

Steve

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXnwdaXNHCRpOxsqZXixaQqxQqwiuTkhH87JjSAi%3DanVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to