Rtsp-Android-Client icon indicating copy to clipboard operation
Rtsp-Android-Client copied to clipboard

Andoird rtsp client module, can use surfaceview to display

Results 8 Rtsp-Android-Client issues
Sort by recently updated
recently updated
newest added

空指针异常,H264Stream中的的header_sps和header_pps为空,注释了这两句但是播放不出来,应该怎么办? ``` private void configMediaDecoder(){ if(Build.VERSION.SDK_INT > 15) { mMeidaCodec = MediaCodec.createDecoderByType("Video/AVC"); MediaFormat mediaFormat = new MediaFormat(); mediaFormat.setString(MediaFormat.KEY_MIME, "Video/AVC"); // * 这里的header_sps和header_pps为空。。。。注释了这两句也播放不出来。。。。 * mediaFormat.setByteBuffer("csd-0", ByteBuffer.wrap(header_sps)); mediaFormat.setByteBuffer("csd-1", ByteBuffer.wrap(header_pps)); mediaFormat.setInteger(MediaFormat.KEY_WIDTH, picWidth); mediaFormat.setInteger(MediaFormat.KEY_HEIGHT,...

报上面的错,然后就disconnect了

大佬你好! 谢谢你的分享 在移植的过程中我也遇到“LB-海洋” 同样的问题 ,我该如何解决。我的qq:863021866 ![0e29e09164ba497ca72225a8e2e17eb](https://user-images.githubusercontent.com/14836060/68205165-8c2f4a00-0004-11ea-8fa7-8016f58ed5cb.jpg)

大神你好,非常感谢您的开源精神,您提供的代码非常好,我把它移植到demo中,发现surfaceView 无法播放,黑乎乎的一片,Log也看到有数据在传输;我用vlc在PC端 测试,可以显示正常;这是我qq: 207563927; 下边是示例代码: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); String str = "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov " rtspClient = new RtspClient(str); surfaceView = (SurfaceView) findViewById(R.id.sv); surfaceView.getHolder().setKeepScreenOn(true); surfaceView.getHolder().addCallback(new SurfaceViewLis()); }...

![image](https://cloud.githubusercontent.com/assets/5989755/23889822/e1e310b0-08c9-11e7-806a-3411a7bac07a.png) b

非常感谢您的分享!请问一下什么时候提供对音频的支持

我刚接触视频开发方面不久,所以很多地方不清楚。在我播放我的rtsp流的时候,会报空指针异常,经查证是获取不到sps和pps,因为sdp文件中并没有写这些信息。那么修改怎样才能播放呢