I am implementing a WebRTC project for mobile devices using Cordova, in that I want the play the audio in earpiece of mobile device instead of speaker.
Is there any API/ way to play audio in earpiece,
I'm using cordova-plugin-iosrtc for iOS app and cross-walk for android.
Thanks,
Shinto
You can try with:
cordova.plugins.iosrtc.selectAudioOutput('earpiece');
Here you can find iosrtc documentation
Related
I need to send some binary files via bluetooth from tizen g2 watch to android phone and then from phone to watch, as I've searched it I can't implement bluetooth in js files as said here so what is the most straightforward way to do it? can we use tizen wearable debug over bluetooth instead? is it applicable in this case?
I'm new to tizen so I feel confused and I really appreciate any advice about this problem.
You can develop companion app using Samsung Accessory Protocol(SAP) in this scenario. Please go through this link to know more. If you are trying to develop the tizen part in web, then have a look in the File Transfer sample of web section. There're separate applications for sending and receiving files from tizen to android and vice versa. You can combine those to implement the bidirectional communication.
I developed a game in LibGDX.
I added some sound effects in mp3 format into my project.
When I deploy my project to HTML, browsers on PC play those sounds, but browsers on mobile phones don't play them.
How can I solve this problem?
I have a j2me app built for a CDC device. I have used Personal profile to display the UI.
However now I need to play audio. AFAIK in j2me I can play audio only through J2me MMAPI i.e JSR135.
But on my device I don't have this. So can someone provide me input how I should go about porting this jsr on my device. It is a linux based ARM device. I had built and compiled cdc and personal profile by myself and ported on to the device. But now I am unable to find source code for Mobile media api.
Or do you have any option other than MMAPI to play audio?
I am unable to find source code for Mobile media api
Well as far as I can tell, above is available in an open source project PhoneME. MMAPI classes like Player, Manager, Control etc are shown at below link to their SVN code repository:
svn / components / jsr135 / trunk / src / share / core / javax / microedition / media
I am trying to add music player to my iphone app using the MediaPlayer framework. I dont have a real device with me and want to test it on simulator. But, the simulator doesnt support MPMusicPlayer and crashes when i run the add media app.
Is there a way I could test MPMusicPlayer on simulator?
You can't add music to the simulator so MPMusicPlayer will fail. It will have to be tested on a device.
I am trying to create a mobile website and want to be able to play/stream audio files.I have tried html5's audio tag and tried testing it on opera mobile 10 simulator but it does not work. I have lots of audio files and the audio should be auto played.
sidenote:
Also, i need to test my website for android and iphone mobile phones. I am downloading android emulator for windows. I tried searching for iphone emulator for windows but there are none...
Phone emulators aren't always a good indicator as they do not usually have a media player installed. The best way to test is to find someone with an actual Andriod / Blackberry / iPhone.
You should try the same HTML5 code with an actual phone. Note that Opera Mobile 10 does not have support for the video/audio tag. If you're interested in streaming to mobiles without HTML5, you should check this FAQ entry for more information.