stevenlow / spydroid-ipcamera

Automatically exported from code.google.com/p/spydroid-ipcamera
GNU General Public License v3.0
0 stars 0 forks source link

Android VideoView can not playback the video streaming by sypdroid-ipcamera #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Android VideoView can not playback the video streaming by sypdroid-ipcamera 
I Can only got 

E/MediaPlayer( 1900): error (1, -2147483648)
E/MediaPlayer( 1900): Error (1,-2147483648)
D/VideoView( 1900): Error: 1,-2147483648

error msg every time on my testing.

My playback code is:

    public String rtspUrl ="rtsp://192.168.1.100:8086";

    private void PlayRtspStream(){
        videoView.setVideoURI(Uri.parse(rtspUrl));
        videoView.requestFocus();
        videoView.start();
    }

Here below is the logcat msg:

D/MediaPlayer( 1900): Couldn't open file on client side, trying server side
D/AudioHardware(   68): AudioHardware pcm playback is exiting standby.
D/AudioHardware(   68): openPcmOut_l() mPcmOpenCnt: 0
D/MediaPlayer( 1900): getMetadata
E/MediaPlayerService(   68): getMetadata failed -38
I/MyHandler(   68): connection request completed with result 0 (Success)
I/ARTSPConnection(   68): status: RTSP/1.0 200 OK
I/MyHandler(   68): DESCRIBE completed with result 0 (Success)
I/ASessionDescription(   68): m=audio 5004 RTP/AVP 96
I/ASessionDescription(   68): b=AS:128
I/ASessionDescription(   68): b=RR:0
I/ASessionDescription(   68): a=rtpmap:96 AMR/8000
I/ASessionDescription(   68): a=fmtp:96 octet-align=1;
I/ASessionDescription(   68): a=control:trackID=0
I/ASessionDescription(   68): m=video 5006 RTP/AVP 96
I/ASessionDescription(   68): b=RR:0
I/ASessionDescription(   68): a=rtpmap:96 H264/90000
I/ASessionDescription(   68): a=fmtp:96 
packetization-mode=1;profile-level-id=42e020;sprop-parameter
-sets=J0LgII1oCgPaEAAAAwAQAAADAeDxB6g=,KM4GSSA=;
I/ASessionDescription(   68): a=control:trackID=1
W/MyHandler(   68): Server specified a non-absolute base URL, combining it with 
the session URL to g
et something usable...
I/ARTSPConnection(   68): status: RTSP/1.0 200 OK
I/MyHandler(   68): SETUP(1) completed with result 0 (Success)
W/MyHandler(   68): Missing 'source' field in Transport response. Using RTSP 
endpoint address.
I/APacketSource(   68): dimensions 640x480
I/ARTSPConnection(   68): status: RTSP/1.0 200 OK
I/MyHandler(   68): SETUP(2) completed with result 0 (Success)
W/MyHandler(   68): Missing 'source' field in Transport response. Using RTSP 
endpoint address.
I/ARTSPConnection(   68): status: RTSP/1.0 200 OK
I/MyHandler(   68): PLAY completed with result 0 (Success)
D/AudioHardware(   68): AudioHardware pcm playback is going to standby.
D/AudioHardware(   68): closePcmOut_l() mPcmOpenCnt: 1
D/RKUpdateService( 1776): request remote server error...
D/RKUpdateService( 1776): request remote server error...
W/MyHandler(   68): Never received any data, switching transports.
I/ARTSPConnection(   68): status: RTSP/1.0 200 OK
I/MyHandler(   68): TEARDOWN completed with result 0 (Success)
I/MyHandler(   68): connection request completed with result 0 (Success)
I/ARTSPConnection(   68): status: RTSP/1.0 200 OK
I/MyHandler(   68): DESCRIBE completed with result 0 (Success)
I/ASessionDescription(   68): m=audio 5004 RTP/AVP 96
I/ASessionDescription(   68): b=AS:128
I/ASessionDescription(   68): b=RR:0
I/ASessionDescription(   68): a=rtpmap:96 AMR/8000
I/ASessionDescription(   68): a=fmtp:96 octet-align=1;
I/ASessionDescription(   68): a=control:trackID=0
I/ASessionDescription(   68): m=video 5006 RTP/AVP 96
I/ASessionDescription(   68): b=RR:0
I/ASessionDescription(   68): a=rtpmap:96 H264/90000
I/ASessionDescription(   68): a=fmtp:96 
packetization-mode=1;profile-level-id=42e020;sprop-parameter
-sets=J0LgII1oCgPaEAAAAwAQAAADAeDxB6g=,KM4GSSA=;
I/ASessionDescription(   68): a=control:trackID=1
W/MyHandler(   68): Server specified a non-absolute base URL, combining it with 
the session URL to g
et something usable...
I/ARTSPConnection(   68): status: RTSP/1.0 200 OK
I/MyHandler(   68): SETUP(1) completed with result 0 (Success)
I/APacketSource(   68): dimensions 640x480
I/ARTSPConnection(   68): status: RTSP/1.0 200 OK
I/MyHandler(   68): SETUP(2) completed with result 0 (Success)
I/ARTSPConnection(   68): status: RTSP/1.0 200 OK
I/MyHandler(   68): PLAY completed with result 0 (Success)
D/RKUpdateService( 1776): request remote server error...
W/MyHandler(   68): Never received any data, disconnecting.
I/ARTSPConnection(   68): status: RTSP/1.0 200 OK
I/MyHandler(   68): TEARDOWN completed with result 0 (Success)
E/MediaPlayer( 1900): error (1, -2147483648)
E/MediaPlayer( 1900): Error (1,-2147483648)
D/VideoView( 1900): Error: 1,-2147483648
I/hwcomposer(   65): hwc_prepare(314):Fail back to 3D composition path
D/gralloc (   65): alloc_buffer: Successfully allocated 0x48000 bytes, 
mIonFd=23, SharedFd=26
D/gralloc ( 1900): map_buffer: Successfully mapped 0x48000 bytes at address 
0x5f8ee000, SharedFd=57,
 map_count = 3

Original issue reported on code.google.com by huangdon...@gmail.com on 7 May 2012 at 3:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Any comments on this?

Original comment by DarinRed...@gmail.com on 4 Jan 2014 at 3:33

GoogleCodeExporter commented 9 years ago
hey, did you solve above problem?
I have a same problem, getting a IP camera(rtsp) view in android videoview 
using Wifi connection(board connected by Wifi, so I have to use Wifi 
connection).

below is the log msg.
---------------------------------------------------------------------------
03-12 18:51:51.814    5612-5652/com.example.administrator.rtspapplication 
D/OpenGLRenderer﹕ Render dirty regions requested: true
03-12 18:51:51.824    5612-5612/com.example.administrator.rtspapplication 
D/Atlas﹕ Validating map...
03-12 18:51:51.864    5612-5652/com.example.administrator.rtspapplication 
I/Adreno-EGL﹕ <qeglDrvAPI_eglInitialize:410>: QUALCOMM Build: 10/28/14, 
c33033c, Ia6306ec328
03-12 18:51:51.866    5612-5652/com.example.administrator.rtspapplication 
I/OpenGLRenderer﹕ Initialized EGL, version 1.4
03-12 18:51:51.899    5612-5652/com.example.administrator.rtspapplication 
D/OpenGLRenderer﹕ Enabling debug mode 0
03-12 18:51:52.091    5612-5612/com.example.administrator.rtspapplication 
D/MediaPlayer﹕ Couldn't open file on client side, trying server side
03-12 18:51:52.096    5612-5628/com.example.administrator.rtspapplication 
W/MediaPlayer﹕ info/warning (701, 0)
03-12 18:52:55.279    5612-5628/com.example.administrator.rtspapplication 
E/MediaPlayer﹕ error (1, -2147483648)
03-12 18:52:55.281    5612-5612/com.example.administrator.rtspapplication 
E/MediaPlayer﹕ Error (1,-2147483648)
03-12 18:52:55.281    5612-5612/com.example.administrator.rtspapplication 
D/VideoView﹕ Error: 1,-2147483648

Original comment by johncho...@gmail.com on 12 Mar 2015 at 10:57