Stream an audio file to multiple android phones - android

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!

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

How to Stream Media(Audio/Video) Across Multiple Android device over Wifi or Wifi Hotspot?

I am currently working on a project when you play song. it's play in your another device which is automatically play in another android device connected through WiFi or WiFi-mobile hotspot.
How to stream audio android device to vlc player.
I got Some Help from [Here's a link!]
I go through many link bt none of help me.
I want build functionality like [Sound Seeder soundseeder].
Someone have any solution then please help me.
It's mine for me.
Thanks..!!
Here's a link!
this demo project play music synchronously on multiple android devices.
thanks Bryan.
For Video Streaming Using Wi-Fi Direct I Found
https://github.com/doronz/VirtualFrontView Using Libstremming Library
But It's not work on client side
From this blog
https://code.google.com/p/rxwen-blog-stuff/source/browse/trunk/android/streaming_audio/
send and receive STREAM
But Audio is not clear at receive time and not working for mp3

Connect to NAS device from Android

I'd like to add NAS support to one of my application, and it is critical that the application is capable of streaming the content and that it not has to download it to the device. The application will be streaming video content, so once the video is over, there shouldn't be any large video files on the device.
What I've tried so far:
jCIFS - Works beautifully, but isn't capable of streaming (to my knowledge). I've successfully created video files on the device using jCIFS, but they're still there, when the video playback stops.
Temporary files - I know that Android is supposed to be able to support temporary files, but I'm not sure how it works or if it's any good in this situation. Just a thought, basically.
My application must be able to launch a video intent with a video on the NAS device, and it should be playable in any video player. I know that some applications on Market support NAS devices (and SMB / CIFS connections), but I don't know how it works.
Any suggestions or ideas would be much appreciated.
I think you have to create an in between http server as discussed in the following question: Android ServerSocket programming with jCIFS streaming files
I am trying to do the same thing, already tried VPNC, no luck.
Now I am trying to use neo router my android can connect to the server but isnt able to browse any files. It might work for you. search for VPN setup (your router name here) android. It will give you some stuff to try.

Developing App To Stream Media to UPnP devices :Android

I am making an application which Streams media from the Internet,it can be from any source like Youtube,or any url. I am able to stream media from my android device.
Now i want to extend it to be streamed to UPnP devices in my network.
Any help on how i can find the list of UPnP devices in my network, then share media with that devices..
I found the little help from
http://teleal.org/projects/cling/core/manual/cling-core-manual.html
They have their own API for using UPnP service.
Any body who have worked on UPnP service can help me.
Any help will be much appreciated.
Thank you
HI, i have the same idea, how far are you with the app?
There is a java lib you can use to connect and search upnp devices.
http://www.sbbi.net/site/upnp/index.html
Hope it helps.

Categories

Resources