I have a problem with live streaming video. I am trying to stream streaming content to Android phones compared to rtsp. Everything works fine until my application is tested on Samsung Galaxy 3 with OS 4.1.1. Samsung is not a problem because the thread worked before the update (when OS 4.0.4). I assume they messed up something with h264 codecs.
I am sending a stream to the server from a flash application with video encoded using H264 and SPEEX audio. On the server, I use the stream and encode the audio in AAC using ffmpeg, and now it is ready for Android phones to receive it.
But what is happening now: the same stream can be seen on all phones from 2.2 to 4.0.4, but on 4.1.1 the video is damaged. The sound looks fine ... I suppose they change something in h264 decoding, but I don't know what ...
Does anyone have the same problem? Or do I have a solution for mine?
I play video video on an android like this:
private void playStream(String url){ try{ video.setVideoPath(" rtsp://xxx.xxx.xx.xx:1935/APPNAME/pprogramer"); video.setOnPreparedListener(this); }catch (Exception exc) { finish(); } } @Override public void onPrepared(MediaPlayer mp) { mp.start(); }
Jovan source share