Can't hear the audio rtp streaming [closed]

asked 2016-07-18 17:06:29 -0500

starter gravatar image

Hi, I am trying to get the streaming audio from my robot's mic to my tablet so i used the ffmpeg to create the stream :

ffmpeg -f alsa -i hw:0  -acodec libmp3lame -f rtp rtp://

The streaming is working perfectly between the robot and and my computer in the same lan , so i tried this code to get the audio streaming working on tablet but i hear nothing coming out from the tablet . note that is my tablet's ip .

 try {
                    audioGroup = new AudioGroup();
                    audioStream = new AudioStream(InetAddress.getByAddress(new byte[] {(byte)192, (byte)168, (byte)1, (byte)120 }));
                    audioStream.associate(InetAddress.getByAddress(new byte[] {(byte)224, (byte)1, (byte)2, (byte)4 }), 7001);
                   AudioManager Audio =  (AudioManager) getSystemService(Context.AUDIO_SERVICE);
                catch (SocketException e) { e.printStackTrace();}
                catch (UnknownHostException e) { e.printStackTrace();}
                catch (Exception ex) { ex.printStackTrace();}}

From my android's studio monitor i can see that the app is not receiving any rtp packages but it is sending packages to Please i need to know what's the problem and how to fix it .

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant. Please see for more details. by ahendrix
close date 2016-07-18 17:51:30.854101


This forum is for questions about ROS (Robot Operating System); we don't know much about audio streaming. I'd suggest you post on a broader forum like Stack Exchange, or search for a forum that specializes in audio streaming on Android.

ahendrix gravatar image ahendrix  ( 2016-07-18 17:51:20 -0500 )edit