I want to live stream Android microphone which can be heard using a VLC player etc.
Playstore have mainly IP Camera apps but these are over the internal network. I want to stream over the internet.
Is it possible?
I tried the following code snippet but it is not working at the moment:
public void audiostream()
{
MediaPlayer mp = new MediaPlayer();
try {
mp.setDataSource(getBaseContext(),Uri.parse("http://192.168.1.3"));
mp.prepare();
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SecurityException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalStateException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
mp.start();
}
Over at the VLC player, I tried listening (Media -> Stream -> set 192.168.1.3 as IP) but couldn't get anything.
Is there any other way?