Hello All,

I was wondering if you folks can help me stream video which is available to me using RTSP.
I have compiled Live555 source code for iOS and integrated in my project.
After supplying the URL to the below code:

session = [[RTSPClientSession allocinitWithURL:[NSURL URLWithString:stringContainingURL]];
[session setup];
NSLog(@"getSDP: --> %@", [session getSDP]);
NSArray *array =  [session getSubsessions];
for (int i = 0; i < [array count]; i++) {
RTSPSubsession *subsession = [array objectAtIndex:i]; 
         [session setupSubsession:subsession useTCP:YES];
subsession.delegate = self;
[subsession increaseReceiveBufferTo:2000000];
NSLog(@"[subsession getProtocolName] = %@", [subsession getProtocolName]);
NSLog(@"[subsession getCodecName] = %@", [subsession getCodecName]);
NSLog(@"[subsession getMediumName] = %@", [subsession getMediumName]);
}
[session play]; 
NSLog(@"error: --> %@",[session getLastErrorString]);

I get the following log:

2012-01-06 19:06:18.857 Sample_Video[25829:207] getSDP: --> v=0
o=- 13260000 1 IN IP4 0.0.0.0
s=Session streamed by "Object RTSPServer"
i=H264
t=0 0
a=tool:LIVE555 Streaming Media v2011.07.08
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:Session streamed by "Object RTSPServer"
a=x-qt-text-inf:H264
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=42000D;sprop-parameter-sets=J0IADapAoPk3AgICQAAAAwBAAAAGeAC5zgCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA,KM4EcgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
a=control:track1
2012-01-06 19:06:19.045 Sample_Video[25829:207] [subsession getProtocolName] = RTP
2012-01-06 19:06:19.046 Sample_Video[25829:207] [subsession getCodecName] = H264
2012-01-06 19:06:19.046 Sample_Video[25829:207] [subsession getMediumName] = video
2012-01-06 19:06:19.197 Sample_Video[25829:207] error: --> liveMedia4
2012-01-06 19:06:19.345 Sample_Video[25829:207] didReceiveFrame
2012-01-06 19:06:19.346 Sample_Video[25829:207] frameDataLength = 220
2012-01-06 19:06:19.347 Sample_Video[25829:207] presentationTime.tv_sec = 1325856979
2012-01-06 19:06:19.498 Sample_Video[25829:207] didReceiveFrame
2012-01-06 19:06:19.499 Sample_Video[25829:207] frameDataLength = 316
2012-01-06 19:06:19.500 Sample_Video[25829:207] presentationTime.tv_sec = 1325856979

Its my understanding that I am receiving the video frames correctly but I am unsure on how to proceed from here to display the video on the device.
Any prod in the right direction is much appreciated.
Thanks for your time guys. 

Best Regards,
Viraj Mehta
Software Engineer
Kritnu IT Solutions Private Limited
No. 7 | 3rd Cross | B Street | Link Road | 
Malleshwaram East Link | Bangalore | 560003 | India
Phone-  +91 80 23564841
+91 - 9538453154 | viraj.me...@kritnu.com
www.kritnu.com

_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to