vlc android局域网rtsp,rtsp - vlc stream to Android - Stack Overflow

I'm trying to create an app to stream video from an ip-camera to android via rtsp. To test this I am attempting to use an rtsp stream from VLC.

The code I am using is:

VideoView videoView = (VideoView) findViewById(R.id.video);

Uri video = Uri.parse("rtsp://192.168.1.10:5544/test.sdp");

videoView.setVideoURI(video);

videoView.start();

when this is run I get "Sorry, this video cannot be played". It seems there are many people having this problem but I cannot find a fix.

The logcat file is this:

03-13 13:11:44.577: D/dalvikvm(400): GC_EXPLICIT freed 606K, 12% free 6429K/7239K, paused 3ms+4ms

03-13 13:11:49.346: D/MediaPlayer(400): Couldn't open file on client side, trying server side

03-13 13:11:49.630: E/MediaPlayer(400): error (1, -2147483648)

03-13 13:11:50.187: E/MediaPlayer(400): Error (1,-2147483648)

03-13 13:11:50.187: D/VideoView(400): Error: 1,-2147483648

03-13 13:11:50.697: D/dalvikvm(400): GC_FOR_ALLOC freed 10K, 11% free 6482K/7239K, paused 310ms

03-13 13:11:50.867: D/dalvikvm(400): GC_CONCURRENT freed <1K, 4% free 6983K/7239K, paused 4ms+2ms

Any and all help would be greatly appreciated.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值