What happens (when I run the player with the -vvv option) is the debug output (see below) showing a normal rtsp session start as far as I can see. The app shows a single frame of the stream, but then stops (the image doesn't move).
The options I am passing to the VLCMediaPlayer:
-vvv
--rtsp-tcp
--rtsp-user
--rtsp-pwd
I've tried openig the same stream in VLC on the PC as well in the VLC app on the iPhone, and it works correctly in both cases. Is there something special I need to do in order to open or support certain types of streams?
Code: Select all
017-06-12 19:32:32.163 VLCKit Test[62559:4268465] creating player instance with private library as options were given
Opening connection to 192.168.1.162, port 7002...
...remote connection opened
Sending request: OPTIONS rtsp://192.168.1.162:7002/live/1 RTSP/1.0
CSeq: 2
User-Agent: LibVLC/3.0.0-git (LIVE555 Streaming Media v2016.11.28)
Received 104 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 2
Content-Length: 0
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE
Sending request: DESCRIBE rtsp://192.168.1.162:7002/live/1 RTSP/1.0
CSeq: 3
User-Agent: LibVLC/3.0.0-git (LIVE555 Streaming Media v2016.11.28)
Accept: application/sdp
Received 112 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 401 Authorization Required
CSeq: 3
Content-Length: 0
WWW-Authenticate: Basic realm="RTSP Server"
Resending...
Sending request: DESCRIBE rtsp://192.168.1.162:7002/live/1 RTSP/1.0
CSeq: 4
Authorization: Basic YWRtaW46Y2hhaWtBNjY=
User-Agent: LibVLC/3.0.0-git (LIVE555 Streaming Media v2016.11.28)
Accept: application/sdp
Received 80 new bytes of response data.
Have received 80 total bytes of a DESCRIBE RTSP response; awaiting 305 bytes more.
Received 305 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 4
Content-Length: 305
Content-Type: application/sdp
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
t=0 0
a=tool:libavformat 57.25.100
m=video 0 RTP/AVP 96
b=AS:128
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z00AKpWoHgCJ+VA=,aO48gA==; profile-level-id=4D002A
a=control:streamid=0
m=audio 0 RTP/AVP 8
a=control:streamid=1
Sending request: SETUP rtsp://192.168.1.162:7002/live/1/streamid=0 RTSP/1.0
CSeq: 5
Authorization: Basic YWRtaW46Y2hhaWtBNjY=
User-Agent: LibVLC/3.0.0-git (LIVE555 Streaming Media v2016.11.28)
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
Received 120 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 5
Content-Length: 0
Session: 1090663979
Transport: RTP/AVP/TCP;mode="PLAY";interleaved=0-1
Sending request: SETUP rtsp://192.168.1.162:7002/live/1/streamid=1 RTSP/1.0
CSeq: 6
Authorization: Basic YWRtaW46Y2hhaWtBNjY=
User-Agent: LibVLC/3.0.0-git (LIVE555 Streaming Media v2016.11.28)
Transport: RTP/AVP/TCP;unicast;interleaved=2-3
Session: 1090663979
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 6
Content-Length: 0
Session: 353793983
Transport: RTP/AVP/TCP;mode="PLAY";interleaved=2-3
Sending request: PLAY rtsp://192.168.1.162:7002/live/1 RTSP/1.0
CSeq: 7
Authorization: Basic YWRtaW46Y2hhaWtBNjY=
User-Agent: LibVLC/3.0.0-git (LIVE555 Streaming Media v2016.11.28)
Session: 353793983
Range: npt=0.000-
Received a complete PLAY response:
RTSP/1.0 200 OK
CSeq: 7
Content-Length: 0