Edmund Wong
Posts: 0
Joined: Wed Feb 25, 2015 10:40 pm

adding PhoneRTC plugin

I am trying to add PhoneRTC as a Cordova plugin to my project. I have followed the instructions on http://devcenter.appery.io/documentat... for android. PhoneRTC requires the WebRTC native android libraries (as jar and so packages), which are added to the /libs folder. However, when I try to build the apk package, the following build errors which indicate the native libraries are not properly loaded:

/appname/src/com/dooble/phonertc/VideoTrackRendererPair.java:[4,17] error: package org.webrtc does not exist
/appname/src/com/dooble/phonertc/VideoTrackRendererPair.java:[7,9] error: cannot find symbol
class VideoTrackRendererPair
/appname/src/com/dooble/phonertc/VideoTrackRendererPair.java:[8,9] error: cannot find symbol
/appname/src/com/dooble/phonertc/PhoneRTCPlugin.java:[20,17] error: package org.webrtc does not exist
...

Not sure how I can fix that. Any help would be appreciated so I can use the PhoneRTC plugin.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

adding PhoneRTC plugin

Hello,

We do not recommend our users to change any files on the Source tab.
Your exceptions for VideoTrackRendererPair.java means that you haven't added package org.webrtc in the structure of project.

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

adding PhoneRTC plugin

hi Edmund,

From what I know the error "/appname/src/com/dooble/phonertc/VideoTrackRendererPair.java:[8,9] error: cannot find symbol " can possibly be eliminated by setting your min sdk version to 4.0 and target to 4.1x

And also edit your pom.xml file to change the version to 4.1.1.4 at least as shown in the image below

https://d2r1vs3d9006ap.cloudfront.net...

As for adding the jar files that is altogether a different dimension because I've had problems too adding Google Play services (which required jar files to be added). So I am still experimenting as far as jar files are concerned.

Return to “Issues”