I've built iOS and Android versions of the PhoneRTC project. 1 Android device (KitKat 4.4) and 1 iOS device (iphone 4, iOS 7.1). Both connected to private lan 192.168.1.x. Also, tried TURN server and confirmed successful TURN server messages in server log.
After fixing Swift compile errors on iOS (NSURL and Regex). All compiles and seems to work without throwing errors. Here's my problem and humbly ask for someone's help.
Audio comes through Android just fine, sounds great. So, iOS microphone records/sends audio successfully to Android and is rendered to Android speaker.
Android permission for the microphone is enabled, however the sounds does not arrive on the iOS side. Nothing is heard on the speaker.
Am I missing something here?
Update: I've confirmed that it is the Android library not sending the microphone audio. iOS to browser works fine. Will add issue to Github.
Cheers.
Rich
The issue was fixed in this commit:
https://github.com/alongubkin/phonertc/commit/8bf270014cdfe6acc6d2cb9aeee624c2d9e39536
Related
I have a website with webrtc that works great between desktops.
Now I'm trying comunicate between desktop and mobile, video is ok but the audio has lots of noise in mobile, I'm using the following constraints for desktop and mobile:
var constraints={audio:true,video:{"mandatory":{"minWidth":"320","minHeight":"240","maxWidth":"320","maxHeight":"240","maxFrameRate":"15","minFrameRate":"15"}}};
If I change the mobile audio constraint to:
audio:{echoCancellation:false}
Solves the noise problem, but now the desktop device hears the sound with echo. How can I solve this problem? The tests that I'm dooing are in chrome(desktop) and in mobile side Chrome for Android and in a hybrid app. The mobile device is a ZTE with android 6.0.1
Welcome to the world of webrtc, probably the browser is outdated and isn't supporting the echoCancellation flag (or is still buggy).
Update the browser might resolve the issue (if you can). Otherwise maybe try another mobile device and check if it works there, if that doesn't work I only know of the if(mobile) ... else ... solution until the browser is updated.
In worst case you even have to check for specific versions to disable the flag.
I am trying to record a video with audio (for desktop it will use web cam and headphone if any, for IOS and Andriod it will use phone camera and mic).
Tried to implement using (http://www.html5rocks.com/en/tutorials/getusermedia/intro/) but when I tried the given demo its not working with Andriod and IOS even not working in firefox too.
Tried to implement using (https://www.webrtc-experiment.com/RecordRTC) too but we have different js for firefox and chrome and its not working with IOS and Andriod.
If anybody know a solution which one work for chrome, firefox, andriod and IOS than please reply.
Waiting for the response, in the mean time trying my own to find out some solutions.
I am having an unexpected result with my hybrid app(ionic framework) and the problem only replicates it self when i deploy the apk on an android phone. It works perfectly in a browser.
Is there a way i can see the logs when it is running on the phone? so i can try to understand what the problem is and where its coming from.
I have tried to run the app on my phone using ionic run android -l -c. But when i do that the app works perfectly like it does on the browser. i realised it basically just plugs itself to my local server and serves it on my phone from there (i alerted the index url. as an app it shows android_assets/www/index.html but when running with the above commant it shows http://192.168.XX.XXX/#/index)
How can i see logs when installed as an apk? Please Help
PS: im a newbie at ionic/AngularJS.
Here is a life saver for you and many others.
Install the app on the device.
Make sure you have USB debugging on on the real device.
On your desktop open Chrome, and in the URL address bar type
chrome://inspect
Here you'll be able to see the list of devices that are connected and are using WebView. Click on inspect and you will be able to use Chrome Dev Tools on your running APK.
I have a problem with my Phonegap application. I got a 404 error on phonegap.js
I understand that the compiler (I'm using Phonegap build) will replace the src of my phonegap.js by the real path but I don't get that.
It's weird because I have all the other scripts loaded but not this one.
This screenshot is from Safari, debugging my application launched on my iPad to give you more details.
I'm using Phonegap 3.1.0 with an iPad Retina 64 bits with iOS 7.0.
Edit: I can't use Phonegap 3.4.0, Phonegap build is still not supporting it.
Thanks in advance !
Think of phonegap.js as the runtime. It only exists when your app is running on a device.
If you are previewing your app on a local web server, you will get 404 because the local runtime is not your device (its your laptop).
To solve this, developers have invented tools like PhoneGap emulate (http://emulate.phonegap.com/) where you can use an emulator to 'mock' certain behaviors in your local runtime that would occur on a device.
Thanks guys but the problem wasn't related to Phonegap. I copied from our desktop version and that created the problem. And as I wrote in my comment, the screenshot is from Safari debugger for my iPad, not from a browser tab.
Hello
I am trying to do a javascript function compatible on android and ipad, but i notice that android doesnt support ongesture** events?
1.It's really true?
.ongesturestart=function(e){
.ongesturechange=function(e){
.ongestureend=function(e){
2.Since I cant buy niether an Android system nor a Ipad, is there any Android/Ipad simulator for pc/windows/linux around the web? I need them for developenig and simulating web application based on touch/gestures events.
3.Is there possible that google hasnt develop chrome for android platform? and firefox for android/Ipad?
Thanks
1) These are new events added to iOS's version of WebKit. They haven't yet propagated to Android.
2) There is an Android simulator as part of the Android SDK. The iPad simulator is Mac only. But neither will tell you the true performance of your code--you need a device to accurately test your work.
3) Chrome is a desktop browser; Android's built-in browser is roughly equivalent. Firefox is a third-party browser and Google is not responsible for developing it. The very first hit for the Google search "firefox android", however, is a link to a Firefox Android beta. Search engines are your friends.