Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > App Developers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 05-27-2010, 02:34 AM
CrackBerry Newbie
Device(s): 9000 (Bold)
Carrier: Vodafone
 
Join Date: Oct 2009
Posts: 3
Likes Received: 0
Thanked 0 Times in 0 Posts
Default RTSP Play / Pause issue

I've developed a client that lets you view streaming video on a blackberry through RTSP.
I'm using a darwin server to do the streaming.

It seems to work just fine the first time I use it and I can even change between two rtsp links.
But the minute I try to pause the video and play it again, I seem to have issues.

On some occassions it buffers for a long time and then starts playing but on most occassions it just refuses to start.


I'm attaching the RTSP communication between the Client and the Server.
I call for Pause at Cseq=6
I call for Play at Cseq=10


So,
1-6 is the first play + response
7-9 is the pause + response
10 onwards is play + response


DESCRIBE rtsp://61.15.173.25:554/vid1.sdp RTSP/1.0
CSeq: 1
Accept: application/sdp
User-Agent: BlackBerry

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 1
Cache-Control: no-cache
Content-length: 573
Date: Thu, 27 May 2010 06:49:57 GMT
Expires: Thu, 27 May 2010 06:49:57 GMT
Content-Type: application/sdp
x-Accept-Retransmit: our-retransmit
x-Accept-Dynamic-Rate: 1
Content-Base: rtsp://61.15.173.25:554/vid1.sdp/

v=0
o=- 14958220309981421598 14958220309981421598 IN IP4 guest-comp
s=Unnamed
i=N/A
c=IN IP4 0.0.0.0
t=0 0
a=recvonly
a=type:broadcast
a=charset:UTF-8
a=control:*
m=audio 0 RTP/AVP 96
b=AS:8
b=RR:0
a=rtpmap:96 MP4A-LATM/16000/2
a=fmtp:96 profile-level-id=13; object=2; cpresent=0; config=400025203fe0
a=control:trackID=1
m=video 0 RTP/AVP 97
b=AS:100
b=RR:0
a=rtpmap:97 MP4V-ES/90000
a=fmtp:97 profile-level-id=1; config=000001b001000001b58913000001000000012000c4f 8d8b588007d0584121463000001b24c61766335322e32304d4 5;
a=control:trackID=2
SETUP rtsp://61.15.173.25:554/vid1.sdp/trackID=1 RTSP/1.0
CSeq: 2
User-Agent: BlackBerry
Transport: RTP/AVP;unicast;client_port=51100-51101;mode="PLAY"

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 2
Cache-Control: no-cache
Session: 6255608828653768307
Date: Thu, 27 May 2010 06:49:57 GMT
Expires: Thu, 27 May 2010 06:49:57 GMT
Transport: RTP/AVP;unicast;mode="PLAY";source=182.148.254.25;clie nt_port=51100-51101;server_port=6970-6971

SETUP rtsp://61.15.173.25:554/vid1.sdp/trackID=2 RTSP/1.0
CSeq: 3
Session: 6255608828653768307
User-Agent: BlackBerry
Transport: RTP/AVP;unicast;client_port=51102-51103;mode="PLAY"

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 3
Session: 6255608828653768307
Cache-Control: no-cache
Date: Thu, 27 May 2010 06:49:57 GMT
Expires: Thu, 27 May 2010 06:49:57 GMT
Transport: RTP/AVP;unicast;mode="PLAY";source=182.148.254.25;clie nt_port=51102-51103;server_port=6970-6971

PLAY rtsp://61.15.173.25:554/vid1.sdp RTSP/1.0
CSeq: 4
Session: 6255608828653768307
User-Agent: BlackBerry
Range: npt=0-

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 4
Session: 6255608828653768307
Range: npt=now-
RTP-Info: url=rtsp://61.15.173.25:554/vid1.sdp/trackID=1,url=rtsp://61.15.173.25:554/vid1.sdp/trackID=2

OPTIONS rtsp://61.15.173.25:554/vid1.sdp RTSP/1.0
CSeq: 5
Session: 6255608828653768307
User-Agent: BlackBerry

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 5
Session: 6255608828653768307
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD

OPTIONS rtsp://61.15.173.25:554/vid1.sdp RTSP/1.0
CSeq: 6
Session: 6255608828653768307
User-Agent: BlackBerry

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 6
Session: 6255608828653768307
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD

OPTIONS rtsp://61.15.173.25:554/vid1.sdp RTSP/1.0
CSeq: 7
Session: 6255608828653768307
User-Agent: BlackBerry

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 7
Session: 6255608828653768307
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD

PAUSE rtsp://61.15.173.25:554/vid1.sdp RTSP/1.0
CSeq: 8
Session: 6255608828653768307
User-Agent: BlackBerry

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 8
Session: 6255608828653768307

OPTIONS rtsp://61.15.173.25:554/vid1.sdp RTSP/1.0
CSeq: 9
Session: 6255608828653768307
User-Agent: BlackBerry

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 9
Session: 6255608828653768307
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD

OPTIONS rtsp://61.15.173.25:554/vid1.sdp RTSP/1.0
CSeq: 10
Session: 6255608828653768307
User-Agent: BlackBerry

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 10
Session: 6255608828653768307
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD

OPTIONS rtsp://61.15.173.25:554/vid1.sdp RTSP/1.0
CSeq: 11
Session: 6255608828653768307
User-Agent: BlackBerry

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 11
Session: 6255608828653768307
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD

OPTIONS rtsp://61.15.173.25:554/vid1.sdp RTSP/1.0
CSeq: 12
Session: 6255608828653768307
User-Agent: BlackBerry

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 12
Session: 6255608828653768307
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD

OPTIONS rtsp://61.15.173.25:554/vid1.sdp RTSP/1.0
CSeq: 13
Session: 6255608828653768307
User-Agent: BlackBerry

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 13
Session: 6255608828653768307
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD

OPTIONS rtsp://61.15.173.25:554/vid1.sdp RTSP/1.0
CSeq: 14
Session: 6255608828653768307
User-Agent: BlackBerry

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 14
Session: 6255608828653768307
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD

OPTIONS rtsp://61.15.173.25:554/vid1.sdp RTSP/1.0
CSeq: 15
Session: 6255608828653768307
User-Agent: BlackBerry

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 15
Session: 6255608828653768307
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD

OPTIONS rtsp://61.15.173.25:554/vid1.sdp RTSP/1.0
CSeq: 16
Session: 6255608828653768307
User-Agent: BlackBerry

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 16
Session: 6255608828653768307
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD

OPTIONS rtsp://61.15.173.25:554/vid1.sdp RTSP/1.0
CSeq: 17
Session: 6255608828653768307
User-Agent: BlackBerry

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 17
Session: 6255608828653768307
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD

PLAY rtsp://61.15.173.25:554/vid1.sdp RTSP/1.0
CSeq: 18
Session: 6255608828653768307
User-Agent: BlackBerry

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 18
Session: 6255608828653768307
Range: npt=now-
RTP-Info: url=rtsp://61.15.173.25:554/vid1.sdp/trackID=1,url=rtsp://61.15.173.25:554/vid1.sdp/trackID=2

The sdp files seem to be fine and the video works the first time, so I'm guessing there isnt an issue with the Server.



Thanks for any help rendered.
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > App Developers   RTSP Play / Pause issue

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes