android - AudioFlinger server died. Play RTSP stream won't start on Lollipop device only. -
i'm testing libstreaming library. app description: 1 device stream video camera device via rtsp. working on kitkat devices 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 sessionbuilder sessionbuilder.getinstance() .setsurfaceview(surfaceview) .setprevieworientation(90) .setcontext(getapplicationcontext()) .setaudioencoder(sessionbuilder.audio_none) .setaudioquality(new audioquality(16000, 32000)) .setvideoencoder(sessionbuilder.video_h264) .setvideoquality(new videoquality(320,240,20,500000)); // starts rtsp server this.startservice(new intent(this,rtspserver.class));
play stream side:
private void play() { if(mediaplayer == null) { mediaplayer = new mediaplayer(); } seterrorlistener(); mediaplayer.setdisplay(surfaceholder); mediaplayer.setonpreparedlistener(this); try { //rtsp server uri string videouri = "rtsp://192.168.1.1:8086?/"; mediaplayer.setdatasource(this, uri.parse(videouri)); mediaplayer.prepareasync(); } catch (ioexception e) { e.printstacktrace(); } }
when lollipop device streaming kitkat device dont have isuess play stream. why play stream not working on particular device?
it's solved.
for reason url created ( "?/" ) doesn't work on lollipop:
string videouri = "rtsp://192.168.1.1:8086?/";
then edit method parse();
in libstreaming. removed whole part parameterization session using url.
and changed videouri
without (?):
string videouri ="rtsp://192.168.1.1:8086/";
Comments
Post a Comment