Android Example

1,927 views
Skip to first unread message

the.in...@gmail.com

unread,
May 18, 2014, 6:44:59 PM5/18/14
to kur...@googlegroups.com
Is the example you have available to GIT from your platform for Android complete? I downloaded both projects that are for Android and can't seem to get them to compile.  They seem to be missing stuff.  In particular the library jingle_peerconnection.so.

Is there any WORKING / LATEST instructions to compiling a client to work with the Kurento platform on the android/iphone?

If not, do you know if I find the library ( I do have a copy of it ), will it work on windows Eclipse deploying to a phone? Or will the deploy need to occur from a Linux box?  The app compiles with the lib I found but it dies when it tries to LOAD it.

Thank you so much....

Alex

Miguel París Díaz

unread,
May 19, 2014, 10:40:46 AM5/19/14
to kur...@googlegroups.com
Hello Alex,
to help you I need to know more information:
  • What project is? And what version (commit hash)?
  • What steps are you doing?
  • Are you using maven? In this case, how are you using it?
  • Some trace of the error.
  • Whatever other info that you consider important

Regards!!


--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Miguel París Díaz
------------------------------------------------------------------------
Computer/Software engineer.
Researcher in http://www.kurento.org
http://twitter.com/mparisdiaz
------------------------------------------------------------------------

the.in...@gmail.com

unread,
May 19, 2014, 10:21:44 PM5/19/14
to kur...@googlegroups.com, the.in...@gmail.com

Thank you so much for the response...

Environment: Ubuntu 13.10 x64 VMWARE
2nd Environment:  Windows 7 x64 Eclipse

I created a directory called kands-webrtc.  I created a directory in that called scripts.  I added all the scripts (.sh) from the project to that directory.  I modfied the .gclient and other .g files.  I ran the build.sh script. This caused a trunk folder to get created in my scripts folder.  Obviously my starting point for the "build.sh and other" scripts should start in a different location but for this purpose I feel like it should be fine.  
The build script finishes successfully and begins to NINJA 1792 files.

ECLIPSE on windows 7....

When I add the OUTPUT from out/Debug to the ECLIPSE project that was created on Import of the actual "android project" I get a java runtime load library error (Unsatisfied Link) when it tries to load jingle_peerconnection_so.so.

After reading around a bit I found a thread discussing using ARM to compile with NINJA.  This led me to try adding -> export GYP_DEFINES="$GYP_DEFINES OS=android" && \ to the script after the first -> export GYP_DEFINES=.

After this it started to NINJA 2313 files.  

I did receive a WARNING.  [ninja: warning: multiple rules generate icudtl.dat. builds involving this target will not be correct; continuing anyway] [Not sure if contributing factor]

I thought this would work finally, but I added the new libs that were created with the GYP OS=android flag, and there an error with  

PeerConnectionFactory.initializeAndroidGlobals(context.getApplicationContext());

It wants Object as first param now and 2 booleans.  If I set that to:

PeerConnectionFactory.initializeAndroidGlobals((Object)context.getApplicationContext(),true,true); [anything but true,true was causing a crash on library loading at startup]

to test, then I end up with a few errors in logcat on load like ...

Error(webrtcvideoengine.cc:1526): webrtc: (voe_audio_processing_impl.cc:1001): virtual int webrtc::VoEAudioProcessingImpl::SetTypingDetectionStatus(bool): not supported

But it loads on the phone... When the view comes up .. it looks like a GREEN background with 2 video windows... But...it dies with an error like:

libc -> fatal signal 11 sigsegv at 0000000 code 1 thread ViECaptureThread

after like 10 seconds in the app.  The video does nothing it only takes a snapshot of the image available RIGHT when it first loaded/rendered in the video control.

I am unsure of why this is failing now.

Any suggestions would be great....

Thank you again for the time....



the.in...@gmail.com

unread,
May 19, 2014, 10:29:05 PM5/19/14
to kur...@googlegroups.com, the.in...@gmail.com
Also.. the phone is an S3.
 
The 2 projects I was following was: 

This one for the GUI

Kurento/app-and-webrtc-example


This one for the BUILD of the LIBS missing..

Thank you,

Alex

Miguel París Díaz

unread,
May 20, 2014, 1:03:09 PM5/20/14
to kur...@googlegroups.com, the.in...@gmail.com
Hello Alex,
app-and-webrtc-example is configured using Maven to facilitate its compilation.
So, I suggest compiling and installing the app using "mvn clean package android:deploy" with a device attached to your PC.
This command compiles the apk and includes all dependencies (also native library jingle_peerconnection_so.so).

Can you try this and tell me again? ;)


--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

the.in...@gmail.com

unread,
May 20, 2014, 2:50:16 PM5/20/14
to kur...@googlegroups.com, the.in...@gmail.com
I have not used Maven.  Can I use Maven in Windows? When all this is finished is this project able to be compiled and ran / debug from Eclipse in Windows or am I forced to work the whole time in Ubuntu from compilation to deployment?

Thank you 

Ivan Gracia

unread,
May 20, 2014, 3:17:02 PM5/20/14
to kur...@googlegroups.com
No, you can perfectly develop in windows with maven and eclipse. There are many guidelines around on how to set up your environment for this purpose, but feel free to ask if you get stacked at some point!

Nevertheless, remember your media server only runs in Ubuntu.

Regards,
Ivan 


On Tuesday, May 20, 2014, <the.in...@gmail.com> wrote:
I have not used Maven.  Can I use Maven in Windows? When all this is finished is this project able to be compiled and ran / debug from Eclipse in Windows or am I forced to work the whole time in Ubuntu from compilation to deployment?

Thank you 

--

the.in...@gmail.com

unread,
May 20, 2014, 3:32:12 PM5/20/14
to kur...@googlegroups.com
Very cool.  
       Thanks so much guys.
 
I got the project to setup with Maven and I deployed the app with those specific libs and it works on the Android device.  The question I have now is what does this have to do with Kurento?  Is there anything in this project that ties it to the Kurento media server?  I am trying to test different platforms to see who handles the media video/voice the nicest/cleanest in the simple scenarios of:
 
android to android [Peer to Peer] [Done this very easy with many solutions]
       android to android [Peer to Server] [1 other solution ; found no immediate android project for it]
       android 1 to android many [Peer to Server] [Server to Many] MCU [1 other solution]
       android to Iphone [Peer to Server] 

       I figured because most of this stuff is cross platform making a Iphone project for the media server wouldn't much of an issue considering there was an android project for Kurento.

Miguel París Díaz

unread,
May 21, 2014, 6:18:59 PM5/21/14
to kur...@googlegroups.com
We have an app that can interact with kurento-media-server: https://github.com/Kurento/kas-content-demo-rtp

It is a simple app that can be configured to work with some demos of Kurento.
You can have a look at it and if you need more info about its usage tell us ;).


--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

the.in...@gmail.com

unread,
May 22, 2014, 11:02:58 PM5/22/14
to kur...@googlegroups.com
Perfect.  I will play around with this app and see how it works... Also.. are any of the Kurento libraries cross compatible with IOS?  

Thank you so much!

Miguel París Díaz

unread,
May 23, 2014, 5:05:53 AM5/23/14
to kur...@googlegroups.com
Currently, there is only an initial library for RTP support but it is in an unstable state.
In the future, we also want to add Kurento libraries (as in Android) for iOS, which basically include:
  • WebRTC stack
  • Connector to kurento-application-server (KAS) and kurento-media-server (KMS).

This will allow us add another client platform (http://www.kurento.org/kurento-architecture).

In the current roadmap we don't have any task about it, but Kurento is an open community where any people can contribute. So if you want, we will give you support to achieve it ;).



2014-05-23 5:02 GMT+02:00 <the.in...@gmail.com>:
Perfect.  I will play around with this app and see how it works... Also.. are any of the Kurento libraries cross compatible with IOS?  

Thank you so much!

--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

the.in...@gmail.com

unread,
May 26, 2014, 1:07:42 PM5/26/14
to kur...@googlegroups.com
So I have attempted to use the app at https://github.com/Kurento/kas-content-demo-rtp.

So I use Maven to get the correct libs.  It fails getting the specific revision libjingle_peerconnection_so libs (r 5552).

I feel like I must be the only person not able to see this working.  All I want to do is make a call between 2 android devices to see if Kurento Media Server is the software to start testing.  This seems to be very difficult with the current examples.  I have been pointed at 3 different examples I have looked at so far with no positive results.

Has ANYBODY got this project to work recently (i.e. since it was written..) ?  

Please help me if you can.  I am trying to setup the most simple test of PEER -> SERVER connecting to another PEER -> SERVER.

I assume Kurento is capable of that scenario to avoid eating up the clients bandwidth on multiple connections.

I have spent much time just trying to get the examples working.  Please point me in the correct direction.  You pointed me towards a project that is missing libs and when you try to use newer ones with it, it dies.  Obviously there is issues not using the specific libs associated with the project when it was written.  You guys should keep these libraries LOCAL on your servers if you are to distribute examples of their uses.  

Sorry If this is a mistake on my end, but the rest of the dependencies downloaded JUST FINE except for the google libs.

Thank you,

Alex

Miguel París Díaz

unread,
May 27, 2014, 7:19:21 AM5/27/14
to kur...@googlegroups.com
Hello Alex,
I write between lines:


2014-05-26 19:07 GMT+02:00 <the.in...@gmail.com>:
So I have attempted to use the app at https://github.com/Kurento/kas-content-demo-rtp.

So I use Maven to get the correct libs.  It fails getting the specific revision libjingle_peerconnection_so libs (r 5552).

I have uploaded a new commit in this commit that is working, you can check it (https://github.com/Kurento/kas-content-demo-rtp/commit/a1764049a320d17319c8e2b83a248d9a729ca40e)
 

I feel like I must be the only person not able to see this working.  All I want to do is make a call between 2 android devices to see if Kurento Media Server is the software to start testing.  This seems to be very difficult with the current examples.  I have been pointed at 3 different examples I have looked at so far with no positive results.

 
Note that, at the moment, Kurento only has some demos for Android platform, not a stable SDK for developing apps.
This app (https://github.com/Kurento/kas-content-demo-rtp) is the capable to interact with kurento-media-server using kms-content-demo project as Application Sever.
 
Has ANYBODY got this project to work recently (i.e. since it was written..) ?  

Please help me if you can.  I am trying to setup the most simple test of PEER -> SERVER connecting to another PEER -> SERVER.

I assume Kurento is capable of that scenario to avoid eating up the clients bandwidth on multiple connections.


I have spent much time just trying to get the examples working.  Please point me in the correct direction.  You pointed me towards a project that is missing libs and when you try to use newer ones with it, it dies.  Obviously there is issues not using the specific libs associated with the project when it was written.  You guys should keep these libraries LOCAL on your servers if you are to distribute examples of their uses.  

 
Sorry for the mistake, the missed revision of libjingle was deleted because it was inconsistent and this project was not updated.

The Kurento team has also invested a lot of time to automate webrtc stack building and include it into Maven dependencies to facilitate Android development .
If you are working with webrtc, you should know that webrtc team is doing a hard work and each day there are changes that also imply a hard work to keep the libs building fine. So this software can have issues, and it is important that there are people that tell us about them as you.
 
Sorry If this is a mistake on my end, but the rest of the dependencies downloaded JUST FINE except for the google libs.

Thank you,

Alex

--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

the.in...@gmail.com

unread,
May 27, 2014, 10:25:33 PM5/27/14
to kur...@googlegroups.com
Did you try to compile that?  When I Maven the project, it gets the new revision like you put but now the the app won't even get to the onCreate.  It complains about not being able to find the MainActivity.  Is there more missing to this to get it running?  Or should it run after making the changes you submitted?  I have tried removing the Gen and Bin folders.  I have tried a newer version of Android Jar.

What do you suggest now?

Thanx.

Miguel París Díaz

unread,
May 28, 2014, 5:00:04 AM5/28/14
to kur...@googlegroups.com
Follow these steps and try again:
  1.  git clone https://github.com/Kurento/kas-content-demo-rtp.git
  2.  cd kas-content-demo-rtp/
  1.  mvn clean package android:deploy

    This must work, but if you have problems about maven execution or app launching, send me a trace of the error.

    the.in...@gmail.com

    unread,
    May 28, 2014, 10:20:20 PM5/28/14
    to kur...@googlegroups.com
    05-28 21:14:49.537: W/ActivityThread(24874): Application com.kurento.apps.android.content.demo.rtp is waiting for the debugger on port 8100...
    05-28 21:14:49.557: I/System.out(24874): Sending WAIT chunk
    05-28 21:14:49.567: I/dalvikvm(24874): Debugger is active
    05-28 21:14:49.757: I/System.out(24874): Debugger has connected
    05-28 21:14:49.757: I/System.out(24874): waiting for debugger to settle...
    05-28 21:14:49.958: I/System.out(24874): waiting for debugger to settle...
    05-28 21:14:50.158: I/System.out(24874): waiting for debugger to settle...
    05-28 21:14:50.358: I/System.out(24874): waiting for debugger to settle...
    05-28 21:14:50.558: I/System.out(24874): waiting for debugger to settle...
    05-28 21:14:50.758: I/System.out(24874): waiting for debugger to settle...
    05-28 21:14:50.959: I/System.out(24874): waiting for debugger to settle...
    05-28 21:14:51.169: I/System.out(24874): waiting for debugger to settle...
    05-28 21:14:51.359: I/System.out(24874): waiting for debugger to settle...
    05-28 21:14:51.559: I/System.out(24874): waiting for debugger to settle...
    05-28 21:14:51.759: I/System.out(24874): waiting for debugger to settle...
    05-28 21:14:51.970: I/System.out(24874): debugger has settled (1433)
    05-28 21:14:52.330: D/dalvikvm(24874): threadid=1: still suspended after undo (sc=1 dc=1)
    05-28 21:15:01.280: D/AndroidRuntime(24874): Shutting down VM
    05-28 21:15:01.280: W/dalvikvm(24874): threadid=1: thread exiting with uncaught exception (group=0x410b82a0)
    05-28 21:15:01.320: E/AndroidRuntime(24874): FATAL EXCEPTION: main
    05-28 21:15:01.320: E/AndroidRuntime(24874): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.kurento.apps.android.content.demo.rtp/com.kurento.apps.android.content.demo.rtp.MainActivity}: java.lang.ClassNotFoundException: com.kurento.apps.android.content.demo.rtp.MainActivity
    05-28 21:15:01.320: E/AndroidRuntime(24874): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2016)
    05-28 21:15:01.320: E/AndroidRuntime(24874): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117)
    05-28 21:15:01.320: E/AndroidRuntime(24874): at android.app.ActivityThread.access$700(ActivityThread.java:134)
    05-28 21:15:01.320: E/AndroidRuntime(24874): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218)
    05-28 21:15:01.320: E/AndroidRuntime(24874): at android.os.Handler.dispatchMessage(Handler.java:99)
    05-28 21:15:01.320: E/AndroidRuntime(24874): at android.os.Looper.loop(Looper.java:137)
    05-28 21:15:01.320: E/AndroidRuntime(24874): at android.app.ActivityThread.main(ActivityThread.java:4867)
    05-28 21:15:01.320: E/AndroidRuntime(24874): at java.lang.reflect.Method.invokeNative(Native Method)
    05-28 21:15:01.320: E/AndroidRuntime(24874): at java.lang.reflect.Method.invoke(Method.java:511)
    05-28 21:15:01.320: E/AndroidRuntime(24874): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
    05-28 21:15:01.320: E/AndroidRuntime(24874): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
    05-28 21:15:01.320: E/AndroidRuntime(24874): at dalvik.system.NativeStart.main(Native Method)
    05-28 21:15:01.320: E/AndroidRuntime(24874): Caused by: java.lang.ClassNotFoundException: com.kurento.apps.android.content.demo.rtp.MainActivity
    05-28 21:15:01.320: E/AndroidRuntime(24874): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
    05-28 21:15:01.320: E/AndroidRuntime(24874): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    05-28 21:15:01.320: E/AndroidRuntime(24874): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    05-28 21:15:01.320: E/AndroidRuntime(24874): at android.app.Instrumentation.newActivity(Instrumentation.java:1068)
    05-28 21:15:01.320: E/AndroidRuntime(24874): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2007)
    05-28 21:15:01.320: E/AndroidRuntime(24874): ... 11 more


    Is this supposed to work on windows?

    My steps were...

    Download as Zip file the source from GitHub.

    Unzip in a directory.  Open Eclipse.  Import Existing Maven Project.  It imports project and builds it without errors.  When I click DEBUG it loads to phone and shows the above, complaining about not being able to find the MainActivity.

    Is there extra steps that need to be performed on Windows?

    Thank you,

    Alex

    Miguel París Díaz

    unread,
    May 30, 2014, 4:53:46 AM5/30/14
    to kur...@googlegroups.com
    Hello Alex,
    apparently you have not packaged the apk correctly. Is your Eclipse configured properly?

    We use maven to avoid specific IDEs configurations, so I suggest doing the steps that I told you using only Maven (note that android-maven-plugin not works with new maven versions, so use maven 3.0.5.


    --
    You received this message because you are subscribed to the Google Groups "kurento" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

    the.in...@gmail.com

    unread,
    May 31, 2014, 3:15:11 PM5/31/14
    to kur...@googlegroups.com
    Thank you, that worked.

    Using Maven without ANY eclipse and the project compiles and loads on the android device.  This demo from what I can tell doesn't DO anything call related.  I looked at your OTHER example you posted earlier Content-Demo etc.  It has ALL different libraries in it.  Is there ANYTHING that is compatible BETWEEN the projects?  Are ANY of the base libraries the same?  It seems you have to have 100 libraries to get that demo to work right.  This scares me thinking that if you don't have any IPhone support yet, to create all these libraries to make your software work seems like too much work.  Are most people not using mobile devices with your software?  Do you ACTUALLY get a LOT of people wanting to use this on desktops?  The reason I ask this is because it seems you would create an example for people that required 2 devices (androids) and you have to dial each other THRU the server to reach each other.  Is this not a common scenario enough for you to have put together an example of a video call BETWEEN 2 parties instead of a video played from the server?

    Do I have to become FLUENT with your software to be able to TEST a simple video call between 2 android devices.  I really appreciate you helping me get the example of streaming a video from the server working, but it looks like as must work as it is to get the most BASIC video call working may not be worth it.  You guys should offer an example of a REAL WORLD USE CASE.. (A video call)

    Thank you,

    Alex

    Miguel París Díaz

    unread,
    Jun 2, 2014, 11:11:51 AM6/2/14
    to kur...@googlegroups.com
    Hello,
    I understand that you want to build Android and iPhone apps for p2p videocalls. For this you need a media (e.g.: webrtc) layer and a signaling (e.g.: SIP) layer.

    We have experience in these architectures and technologies, but at the moment these kind of tasks are not in the Kurento roadmap.
    However I think that the examples that I have provided to you can help you to build this type of apps.

    Regards.

    the.in...@gmail.com

    unread,
    Jun 2, 2014, 11:15:22 AM6/2/14
    to kur...@googlegroups.com
    That's cool.  I really appreciate your help.

    Thank you again...

    Mariano Mejia

    unread,
    Nov 28, 2014, 12:34:34 AM11/28/14
    to kur...@googlegroups.com, the.in...@gmail.com
    I had an issue with building kas-content-demo-rtp, here's the problem:

    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal on project kas-content-demo-rtp: Could not resolve dependencies for project com.kurento.apps.android:kas-content-demo-rtp:apk:0.1.0-SNAPSHOT: Could not find artifact com.kurento.kas:kas-mscontrol:jar:1.1.5-SNAPSHOT in kurento-snapshots (http://repository.kurento.com/archiva/repository/snapshots/) -> [Help 1]

    "mvn clean package android:deploy"


    Noong Lunes, Mayo 19 2014 06:44:59 UTC+8, si the.in...@gmail.com ay sumulat:

    Ivan Gracia

    unread,
    Dec 4, 2014, 5:31:07 PM12/4/14
    to Kurento Public, the.in...@gmail.com
    I can't fathom why. The artifact is definitely in our archiva repository, but doesn't seem to find it...

    Ivan Gracia



    xuguiz...@gmail.com

    unread,
    May 6, 2015, 11:43:13 PM5/6/15
    to kur...@googlegroups.com, the.in...@gmail.com
    I had the same issue.

    [ERROR] Failed to execute goal on project app-and-webrtc-demo: Could not resolve dependencies for project com.kurento.apps.android:app-and-webrtc-demo:apk:1.0.0-SNAPSHOT: Failure to find com.kurento.android.sdk:kands-mscontrol-webrtc:jar:1.0.0-SNAPSHOT in http://repository.kurento.com/archiva/repository/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of kurento-snapshots has elapsed or updates are forced -> [Help 1]

    Do you find the answer ?


    And in another demo - app-and-webrtc-example
    [ERROR] Failed to execute goal on project app-and-webrtc-demo: Could not resolve dependencies for project com.kurento.apps.android:app-and-webrtc-demo:apk:1.0.0-SNAPSHOT: Failure to find com.kurento.android.sdk:kands-mscontrol-webrtc:jar:1.0.0-SNAPSHOT in http://repository.kurento.com/archiva/repository/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of kurento-snapshots has elapsed or updates are forced -> [Help 1]




    在 2014年11月28日星期五 UTC+8下午1:34:34,Mariano Mejia写道:

    guizhou xu

    unread,
    May 12, 2015, 3:30:20 AM5/12/15
    to kur...@googlegroups.com, the.in...@gmail.com
    This is the kurento interface for Androd.

    在 2015年5月7日星期四 UTC+8上午11:43:13,guizhou xu写道:
    kands-mscontrol-webrtc-1.0.1-20150311.152504-1.jar

    mgiam...@gmail.com

    unread,
    May 27, 2015, 1:26:45 PM5/27/15
    to kur...@googlegroups.com, the.in...@gmail.com
    I have tried also to compile the project and it fails due that missing jar. 
    Is there a new kurento repository?

    hu

    unread,
    May 31, 2015, 6:24:07 AM5/31/15
    to kur...@googlegroups.com, the.in...@gmail.com
    i am intersted in the android native app. and glad to join it. someone can give me some advice about how to join kurento team?

    yshar...@gmail.com

    unread,
    Jun 26, 2015, 2:42:35 AM6/26/15
    to kur...@googlegroups.com, the.in...@gmail.com
    Hi Can you send the sample code of peer to peer connection along with libs as i was unable to execute the code because maven failing to get the jar mentioned in it.

    Ivan Gracia

    unread,
    Jun 26, 2015, 12:24:27 PM6/26/15
    to Kurento Public, the.in...@gmail.com
    Be careful, as that project depends on other obsolete projects as kmf-content-demo, so you won't be able to do much.

    Ivan Gracia



    --

    koran....@gmail.com

    unread,
    Jul 28, 2015, 6:48:45 AM7/28/15
    to kurento, the.in...@gmail.com, igr...@kurento.org
    HI.
    From the post it seems that this demo cant be used currently as it is. 


    Can this demo be used as starting point to be modified to accomplish rtp connection from android to rtp endpoint of kurento?

    Thanks

    Koran

    Ivan Gracia

    unread,
    Aug 3, 2015, 11:46:13 AM8/3/15
    to koran....@gmail.com, kurento, the.in...@gmail.com, Ivan Gracia

    Ivan Gracia



    On Tue, Jul 28, 2015 at 12:48 PM, <koran....@gmail.com> wrote:

    No, it can't.
     


    Can this demo be used as starting point to be modified to accomplish rtp connection from android to rtp endpoint of kurento?

    I suppose, but I think you'd be better off checking the other demos, and implementing your own app or modifying an existing one to get that RTP stream from KMS. That project is too tied to a very old way of doing things, and it would probably mess things up for you.
     

    Thanks

    Koran

    koran....@gmail.com

    unread,
    Aug 3, 2015, 4:23:15 PM8/3/15
    to kurento, koran....@gmail.com, the.in...@gmail.com, igr...@kurento.org
    Hi Ivan thanks for the answer

    One other question ..I have compiled apprtc from chromium code. From reading some older posts it seems that the connection from apprtc and kurento didn't work right away because of different ice protocol.It worked with some modifications.

    SO as of kurento 6 it seems that kurento supports trickle ice so that should work?

    I can make is as different topic if required

    Thanks

    Koran

    Sharath Yeturu

    unread,
    Aug 3, 2015, 7:47:15 PM8/3/15
    to kur...@googlegroups.com, the.in...@gmail.com, igr...@kurento.org, koran....@gmail.com

    Hi from pevious point you told u r able to connect to kurento from apprrc may i have the code or sample how to do

    --
    You received this message because you are subscribed to a topic in the Google Groups "kurento" group.
    To unsubscribe from this topic, visit https://groups.google.com/d/topic/kurento/bxYWJ0FT7-4/unsubscribe.
    To unsubscribe from this group and all its topics, send an email to kurento+u...@googlegroups.com.

    koran gvozdic

    unread,
    Aug 3, 2015, 8:33:19 PM8/3/15
    to Sharath Yeturu, kur...@googlegroups.com, the.in...@gmail.com, igr...@kurento.org
    Hi Sharath.

    No I just said that from older posts in group on this theme with apprtc it was concluded that apprtc didn't work because of ice protocol so you had to make some modifications. Since I am going to try to connect apprtc with kurento 6 which supports trickle ice just wondered if i need to do some modifications. 
    I haven't done it yet but in next week or so I will try to connect and see

    Thanks

    Koran

    Ivan Gracia

    unread,
    Aug 4, 2015, 4:35:21 AM8/4/15
    to koran gvozdic, Sharath Yeturu, Kurento Public, the.in...@gmail.com, Ivan Gracia
    Yap, KMS6 supports Trickle ICE, so you should be fine. Tutorials have been updated, so you can check how it goes in the latest version. Maybe if you feel that you need to expand more into that, we can open a new thread so we don't get topics mixed.

    In any case, please do keep us posted on your progress :-)

    Thanks!


    Ivan Gracia


    albeg...@gmail.com

    unread,
    Sep 23, 2015, 5:44:27 AM9/23/15
    to kurento, the.in...@gmail.com, igr...@kurento.org, koran....@gmail.com
    could anybody compile kas-content-demo-rtp successfully, i appreciate if someone could give me the app!

    在 2015年7月28日星期二 UTC+8下午6:48:45,koran....@gmail.com写道:

    Max Dörfler

    unread,
    Mar 11, 2016, 5:02:51 AM3/11/16
    to kurento, koran....@gmail.com, yshar...@gmail.com, the.in...@gmail.com, igr...@kurento.org
    Hey,

    sorry for pushing this old post but maybe someone still finds it interesting.
    We published a small proof of concept for connecting an android phone running the AppRTC Demo to a Kurento Server and communicating with a web browser.

    We basically copied the API and messaging of the AppRTC Server so no changes to the AppRTC App Code are needed, just adjust a url in the app settings.

    Find the code here: https://github.com/apeunit/AppRTC-Kurento-Example

    Have a nice weekend
    Max

    telegin....@gmail.com

    unread,
    Sep 14, 2016, 6:33:57 PM9/14/16
    to kurento, koran....@gmail.com, yshar...@gmail.com, the.in...@gmail.com, igr...@kurento.org
    Hi Max,

    I'm trying to use your example, the web version works fine, console provides the following result: 

    Looking for room: ape55
    apprtcWs wtYpszDCJqBxIA0YFnstX7KvQo0o0ISq received message  
    { cmd: 'onIceCandidate',
      roomName
    : 'ape55',
      candidate
    :
       
    { candidate: 'candidate:2839605522 2 udp 2113937150 172.16.172.95 54559 typ host generation 0 ufrag 6MXPv1nuZupn0eUi',
         sdpMid
    : 'video',
         sdpMLineIndex
    : 1 } }


    With many iterations like this, thought they stop after a certain number of candidates searches is done.

    While I try connecting from my mobile using this repo which works great with Google service, no ICE candidates search is performed for some reason, although I see the connection to the server is established (I connect to the local IP address of my Kurento server - http://172.16.172.95:7080). I get the following output to console:

    Looking for room: gahh3
    default
    http POST
    /message/gahh3/B1pGhSwn application/x-www-form-urlencoded
    message called
    undefined

    I'd be glad for any help you could provide in resolving my issue

    Alexander Telegin

    unread,
    Sep 16, 2016, 9:17:31 AM9/16/16
    to kurento, koran....@gmail.com, yshar...@gmail.com, the.in...@gmail.com, igr...@kurento.org
    Tried running the example with the stated AppRTC Android version, got a different piicture but still no media is sent, here is the console output:

    Looking for room: apeape3
    { roomName: 'apeape3',
      sender: null,
      receivers: [],
      pipeline: null,
      senderSdpOffer: null }
    http GET /turn undefined
    turn called {}
    apprtcWs received with sessionId JKf-jk-WZ1LF1fFC44RDZuQqtR74rdOT
    apprtcWs JKf-jk-WZ1LF1fFC44RDZuQqtR74rdOT received message  { cmd: 'register', roomid: 'apeape3', clientid: 'Skgd1_Y2' }
    register called
    Looking for room: apeape3
    http POST /message/apeape3/Skgd1_Y2 text/plain; charset=utf-8
    message called offer
    Looking for room: apeape3
    yay websocket is present
    http POST /message/apeape3/Skgd1_Y2 text/plain; charset=utf-8
    message called candidate
    Looking for room: apeape3
    candidate candidate:308186854 1 udp 2122260223 192.168.5.96 38832 typ host generation 0 ufrag m6oZFUsQdivweFoi
    appRTC Ice Candidate  Queueing candidate []
    http POST /message/apeape3/Skgd1_Y2 text/plain; charset=utf-8
    message called candidate
    Looking for room: apeape3
    candidate candidate:3830380338 1 udp 1686052607 62.152.75.126 45588 typ srflx raddr 192.168.5.96 rport 38832 generation 0 ufrag m6oZFUsQdivweFoi
    appRTC Ice Candidate  Queueing candidate [ { candidate: 'candidate:308186854 1 udp 2122260223 192.168.5.96 38832 typ host generation 0 ufrag m6oZFUsQdivweFoi',
        sdpMid: 'sdparta_0',
        sdpMLineIndex: 0 } ]
    reconnect to server 0 100 undefined
    reconnect to server 1 100 undefined
    reconnect to server 2 200 undefined
    reconnect to server 3 300 undefined
    reconnect to server 4 500 undefined
    http POST /message/apeape3/Skgd1_Y2 text/plain; charset=utf-8
    message called candidate
    Looking for room: apeape3
    candidate candidate:2711806237 1 udp 2122194687 10.24.145.241 48818 typ host generation 0 ufrag m6oZFUsQdivweFoi network-cost 999
    appRTC Ice Candidate  Queueing candidate [ { candidate: 'candidate:308186854 1 udp 2122260223 192.168.5.96 38832 typ host generation 0 ufrag m6oZFUsQdivweFoi',
        sdpMid: 'sdparta_0',
        sdpMLineIndex: 0 },
      { candidate: 'candidate:3830380338 1 udp 1686052607 62.152.75.126 45588 typ srflx raddr 192.168.5.96 rport 38832 generation 0 ufrag m6oZFUsQdivweFoi',
        sdpMid: 'sdparta_0',
        sdpMLineIndex: 0 } ]
    reconnect to server 5 800 undefined
    reconnect to server 6 1300 undefined
    reconnect to server 7 2100 undefined
    reconnect to server 8 3400 undefined
    http POST /message/apeape3/Skgd1_Y2 text/plain; charset=utf-8
    message called candidate
    Looking for room: apeape3
    candidate candidate:552265641 1 udp 1685987071 176.59.4.62 48818 typ srflx raddr 10.24.145.241 rport 48818 generation 0 ufrag m6oZFUsQdivweFoi network-cost 999
    appRTC Ice Candidate  Queueing candidate [ { candidate: 'candidate:308186854 1 udp 2122260223 192.168.5.96 38832 typ host generation 0 ufrag m6oZFUsQdivweFoi',
        sdpMid: 'sdparta_0',
        sdpMLineIndex: 0 },
      { candidate: 'candidate:3830380338 1 udp 1686052607 62.152.75.126 45588 typ srflx raddr 192.168.5.96 rport 38832 generation 0 ufrag m6oZFUsQdivweFoi',
        sdpMid: 'sdparta_0',
        sdpMLineIndex: 0 },
      { candidate: 'candidate:2711806237 1 udp 2122194687 10.24.145.241 48818 typ host generation 0 ufrag m6oZFUsQdivweFoi network-cost 999',
        sdpMid: 'sdparta_0',
        sdpMLineIndex: 0 } ]
    apprtcWs JKf-jk-WZ1LF1fFC44RDZuQqtR74rdOT received message  { cmd: 'send', msg: '{"type": "bye"}' }
    something else called
    http DELETE /apeape3/Skgd1_Y2 text/plain; charset=utf-8
    http POST /leave/apeape3/Skgd1_Y2 text/plain; charset=utf-8
    leave called {}
    Looking for room: apeape3
    stopSend
    reconnect to server 9 5500 undefined
    apprtcWs Connection pxfR7-_w7MMycx_h0EsqeP0d-a2nSEuY closed
    Looking for room with session: pxfR7-_w7MMycx_h0EsqeP0d-a2nSEuY
    TODO: stopReceive null
    stopReceive no room
    stopSend
    no room
    reconnect to server 10 8900 undefined
    http GET /apeape3/Skgd1_Y2 undefined
    http GET /favicon.ico undefined
    ^[[1;2Dreconnect to server 11 10000 undefined
    apprtcWs Connection JKf-jk-WZ1LF1fFC44RDZuQqtR74rdOT closed
    Looking for room with session: JKf-jk-WZ1LF1fFC44RDZuQqtR74rdOT
    TODO: stopReceive null
    stopReceive no room
    stopSend
    no room
    Reply all
    Reply to author
    Forward
    0 new messages