Android Audio Bluetooth - android

General question about playing audio from my android app through bluetooth device:
If I have my device paired with the bluetooth device, when I play the mp3 file from the app I am developing, will it automatically route to the bluetooth device?
If not can someone point in the direction of a tutorial on this subject?

Do you have any sample code? Or are you just brainstorming at this point?
With the correct permissions and calls, yes, it'll play through whatever the Android system determines as the primary media audio output.
Reference from Google on android.media: link

Related

How play web audio with bluetooth devices

I programmmed a website which uses text to speech engine to generate audio files.
Then these mp3 files are started using Web Audio API.
Everything works fine when hearing aufio from speakers on a computer or on a smart phone.
However, as soon as I connect my bluetooth helmet to the smart phone, the audio is not played.
Is it a famous issue that Web Audio API doesn't work with bluetooth devices, or does the issue come from my code?
Do I need to change the context's destination ? How can I set it to buetooth? (ex : https://www.html5rocks.com/en/tutorials/webaudio/intro/)
source.connect(context.destination); // connect the source to the context's destination (the speakers)
This question has already been posted on stackoverflow, but I can't find an answer.
Please help me.
Hi use the web bluetooth library for more reference read this here

android to android audio live streaming

I have a plan to develop an instrument app, when we shake the android phone, it will produce "angklung" (Google it) sound.
THE PROBLEM:
How to make one android phone can share its produced sound (by shake
gesture) to the other android phones having my application?
The connection that I want to use is mobile data connection and wi-fi.
I think this person has the same problem, but I don't know how to communicate with him. Stream android to android
But there is no help..
I need solution/example/suggestion for this problem. So far I succeed to produce the "angklung" sound when it is shaken.
I have no idea how to start this application. I've searched in the internet but there is no help :(
Thanks for your help.
I would give you the suggestion of streaming the audio data to a server and beaming that to other android devices (that are registered to your app). As the question/issue you have asked are way bigger than couple of lines code, hence am pointing you to some good resources, dig those deep & good luck.
Live-stream video from one android phone to another over WiFi
Stream Live Android Audio to Server

Stream an audio file to multiple android phones

I'm want to make an app that would let users connect to other android devices and play music on all devices simultaneously(much like Samsung's Group Play). I did a little reading over the internet and learnt that the MediaPlayer in android can do rtsp. I'm not exactly sure what it is or how it works, but it seems that it can help me stream audio. I want to know how I could
1.Set up a kind of a server that all devices would connect to.
2.Get a client to connect to the "server". Multiple clients would connect.
3.Stream audio to all connected clients.
Any help is appreciated.
Thank You!

Use a bluetooth headset as a extended microphone for a camcorder using android phone

I'm trying to film a video with a camcorder.
However, the camcorder isn't support bluetooth microphone.
Fortunately, I think I found a way to do it, but I can not find good app to do it.
My plan is, use phone as a bluetooth receiver, and connect the audio port of the phone to the camcorder via cable.
I need:
an app that make the bluetooth headset as a default microphone of the system.
an app that make the sound from the bluetooth mic able to flow to the audio port.
I know about an app called "megaphone" in Apple store that makes sound from the phone's mic flows through to the phone's audio port.
But I can not use the bluetooth headset for it.
Any suggestion please?
Sounds like a great App. Start by installing Android Studio (http://developer.android.com/tools/studio/index.html) and then its about research... Search around SO (or google) for any of the keywords that sound reasonable. Look at the related questions (on the right panel) for other questions that have been asked with similar key words (you'll find tons of info)
Start a project, and ask questions when you get stuck.

Accessing video stream from Looxcie device

I'm looking to see if there's a way to get the audio and video streaming in from the bluetooth connection in an android app that I'd create.
http://www.looxcie.com/index.php/companion-apps/looxciecam
Looxcie has their own app which saves their video to a file, but I'd want access to the raw video stream using MediaRecorder if possible.
Thanks!
The Looxcie device lacks in technical information that could help a developer to use it in a custom application. My advice is that first to check what Bluetooth profiles are available on that device and maybe there is VDP - Video Distribution Profile, A2DP - Advanced Audio Distribution Profile and AVRCP - Audio/Video Remote Control Profile.
But from what I know on Android you have only A2DP and no VDP. So, probably they send data over SPP - Serial Port Profile and reconstruct it on Android. If they work this way, is nothing you can do, it's like a proprietary format. You could ask Looxcie for more information about the device, they look like a friendly/enthusiastic open company and maybe they will share information.
A trick you could make is use that file feature, and have it like a virtual file that goes into your MediaRecorder. Again it may not work, it's possible that they don't write all the time, but periodically put chunks of data.

Categories

Resources