title: webaudio not working with ionic using crosswalk on android device
body: <p>I created an ionic webrtc app that runs perfectly when using <code>ionic serve</code> (on web browser, witch is normal). but was not working at all on the device since the <code>getUserMedia</code> function was not able to execute. </p>
  
  <p>The solution i found is to install crosswalk, update permissions in the <code>AndroidManifest.xml</code> and add the meta tag on the <code>index.html</code> for content security: <code>&lt;meta http-equiv="Content-Security-Policy: media-src: 'self' mediastream"&gt;</code></p>
  
  <p>Now, i have a working ionic webrtc app but only video, the audio is not working. the android app is able to diplay video with its audio, but seems to only send video without audio !</p>
  
  <p><strong>My settings :</strong></p>
  
  <p><strong><em>Permissions on the <code>AndroidManifest.xml</code> file :</em></strong></p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
  &lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
  &lt;uses-permission android:name="android.permission.RECORD_VIDEO" /&gt;
  </code></pre>
  
  <p><strong><em>Output of the <code>ionic info</code> command :</em></strong></p>
  
  <pre><code>Your system information:
  
  Cordova CLI: 5.4.1
  Gulp version:  CLI version 3.9.0
  Gulp local:
  Ionic Version: 1.2.4
  Ionic CLI Version: 1.7.13
  Ionic App Lib Version: 0.6.5
  OS: Windows 8.1
  Node Version: v0.12.2
  </code></pre>
  
  <p><strong><em>Output of the <code>ionic browser list</code> command :</em></strong></p>
  
  <pre><code>iOS - Browsers Listing:
  
  Not Available Yet - WKWebView
  Not Available Yet - UIWebView
  
  
  Android - Browsers Listing:
  
  
  Available - Crosswalk - ionic browser add crosswalk
           Version 8.37.189.14 Published
           Version 9.38.208.10 Published
           Version 10.39.235.15 Published
           Version 11.40.277.7 Published
           Version 12.41.296.5 Published
  (beta)   Version 13.42.319.6 Published
  (canary) Version 14.42.334.0 Published
  
  Available - Crosswalk-lite - ionic browser add crosswalk-lite
  (canary) Version 10.39.234.1 Published
  (canary) Version 10.39.236.1 Published
  
  Available - Browser (default) - ionic browser revert android
  Not Available Yet - GeckoView
  </code></pre>
  
  <p><strong><em>Content of the <code>ionic.project</code> file :</em></strong></p>
  
  <pre><code>{
    "name": "WebRtc app",
    "app_id": "",
    "browsers": [
      {
        "platform": "android",
        "browser": "crosswalk",
        "version": "16.45.421.19"
      }
    ]
  }
  </code></pre>
  
  <p>what i dont understand is that in the <code>README.md</code> file in the crosswalk plugin folder i can read the following :</p>
  
  <pre><code>    ### Benefits
  
  * WebView doesn't change depending on Android version
  * Capabilities: such as WebRTC, WebAudio, Web Components
  * Performance improvements (compared to older system webviews)
  </code></pre>
  
  <p>so, how it comes that crosswalk claims that webrtc and webaudio is working, but only the video is working on my app, not the audio ??</p>
  
  <p>For the lack of other devices, the app was only tested on two armv7 android smartphones, i cant say what happens in an x86.</p>
  
  <p>Thanks for your answers, since i really need to know if im in the right direction, or just fallback to native code.</p>