Cordova – AppRTC Andrews traveler crossing

I am trying to run an AppRTC HTML5 demo using Crosswalk on Android. But for some reason, I cannot get the microphone to work.

I got it from GitHub I took the AppRTC HTML5 demo source and built it according to the instructions. After that, I used the generated Chrome app to output and edit the appwindow.html file to include cordova.js, and fix the path to the included file.

Finally, I use Cordova and crosswalk plugin to build (using cordova build command). The app works and connects to the server, the video works just fine, receiving audio from PC is fine, but not sending audio from mobile devices. I’m not sure what is there Problem, please help fix the audio.

The following is the Cordova configuration file.

config.xml



xAppRtc

AppRTC on crosswalk.


Test




























To access phone resources, you must declare it on AndroidManifest.xml,
so the end user will know when installing the application.

Even if you don’t Using the crosswalk as a webview library, Cordova and Crosswalk plugins will also build an application, so you must request permission in the manifest.

The guide is the same as the embedded version:
https://crosswalk-project .org/documentation/embedding_crosswalk.html

For the microphone and camera, the permissions are:


But it seems that the plug-in has done some tricks, and one more is needed:

I am trying to use Crosswalk on Android Run the AppRTC HTML5 demo. But for some reason, I can’t get the microphone to work.

I got the AppRTC HTML5 demo source from GitHub and followed the instructions to build it. After it was done, I used the generated Chrome app output and edit the appwindow.html file to include cordova.js, and fix the path of the included file.

Finally, I built with Cordova and crosswalk plugin (using cordova build commands). The app worked and Connected to the server, the video works well, receiving audio from the PC is good, but not sending audio from the mobile device. I am not sure what is wrong, please help to fix the audio.

Below is the Cordova configuration file .

config.xml



xAppRtc

AppRTC on crosswalk.


Test


















< br />








To access Mobile resource, you must declare it on AndroidManifest.xml,
so the end user will know when installing the app.

Even if you don’t use the crosswalk as a webview library, Cordova and The Crosswalk plugin also builds an application, so you must request permission in the manifest.

The guide is the same as the embedded version:
https://crosswalk-project.org/documentation/embedding_crosswalk.html< /p>

For the microphone and camera, the permissions are:


< uses-permission android:name="android.permission.RECORD_AUDIO" />

But it seems that the plug-in has done some tricks, and one more is needed:

Leave a Comment

Your email address will not be published.