java - How to stream music through multiple phones over bluetooth -
i'm trying connect android phones stream music.
the set this,
phone connected phone b.
phone b connected phone c.
a <--> b <--> c i want stream music a through b c , hear on c.
i've looked a2dp (here) appears support 1 device @ time.
is there way stream using a2dp b , send c?
i'm trying come solution doesn't involve saving file a onto b , streaming using a2dp. file big , delay before playing should short.
are there ways stream file on , send stream b c using a2dp?
are there other streaming options on bluetooth? or other streaming classes try , use once data in b?
thanks
i found audiotrack class , think sort of solves problem.
i can send music file byte[] using bluetoothsocket , bluetoothserversocket classes across many phones need to.
once reach end phone create audiotrack object , write bytes , play music stream.
the limitation file must .wav file , of specific bit resolution, sample rate , channel set up. once decided on 1 wanted support converted files wanted use this website , streaming worked.
note: solution noisy. i'm looking how can fix that.
Comments
Post a Comment