Hype Hype - 1 year ago 208
Android Question

AudioFlinger server died. Play RTSP stream won't start on Lollipop device only.

I'm testing libstreaming library. My app description: One device stream video from camera to another device via RTSP. All working perfectly on KitKat devices but my Huawei p8 lite (Lollipop) can't run stream beacause:

W/AudioSystem: AudioFlinger server died!

W/IMediaDeathNotifier: media server died

E/MediaPlayer: error (100, 0)

E/MediaPlayer: Error (100,0)

My stream server side:

// Configures the SessionBuilder
.setAudioQuality(new AudioQuality(16000, 32000))
.setVideoQuality(new VideoQuality(320,240,20,500000));

// Starts the RTSP server
this.startService(new Intent(this,RtspServer.class));

Play stream side:

private void play() {
if(mediaPlayer == null) {
mediaPlayer = new MediaPlayer();

try {
String videoUri = "rtsp://";

mediaPlayer.setDataSource(this, Uri.parse(videoUri));
} catch (IOException e) {

When lollipop device is streaming then kitkat device dont have any isuess to play stream. Why play stream not working on this particular device?

Answer Source

It's solved.

For some reason url created with ( "?/" ) doesn't work on Lollipop:

String videoUri = "rtsp://";

Then I edit method Parse(); in libstreaming. I removed the whole part about parameterization session using url.

And I changed videoUri to without (?):

String videoUri ="rtsp://";