I am trying to receive the RTSP H.264 stream on Android device using a sdp file.
I am using MediaPlayer to do this.
Just made changes to MediaPlayerDemo_Video sample by setting a RTSP URL.
The media prepared event is received, surfacechanged event is also received, but an error is received when we start the player.
error is (1, -2147483648).
The contents of SDP file are as follows:
v=0
o=Creator_Name 116861936824897 171987842069057 IN IP4 192.168.1.73
s=MainConcept "Network Renderer"
i=Mainconcept streaming session
e=username@mainconept.ru
p=+1(1234)567-890
c=IN IP4 234.2.128.12/64
b=AS:4000
m=video 1100 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; profile-level-id=42801E; sprop-parameter-sets=Z0KAHpZYFoJNgKRAAAADAEAAAAynaFi+,aM41IA==
a=cliprect:0,0,576,720
a=control:trackID=1
Pls guide on what is the problem.
Best Regards
Jasleen
I am using MediaPlayer to do this.
Just made changes to MediaPlayerDemo_Video sample by setting a RTSP URL.
The media prepared event is received, surfacechanged event is also received, but an error is received when we start the player.
error is (1, -2147483648).
The contents of SDP file are as follows:
v=0
o=Creator_Name 116861936824897 171987842069057 IN IP4 192.168.1.73
s=MainConcept "Network Renderer"
i=Mainconcept streaming session
e=username@mainconept.ru
p=+1(1234)567-890
c=IN IP4 234.2.128.12/64
b=AS:4000
m=video 1100 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; profile-level-id=42801E; sprop-parameter-sets=Z0KAHpZYFoJNgKRAAAADAEAAAAynaFi+,aM41IA==
a=cliprect:0,0,576,720
a=control:trackID=1
Pls guide on what is the problem.
Best Regards
Jasleen