HP-UX Multimedia Streaming Protocols (MSP) Programmer's Guide

break;
case 4:
mthd = RTSP_PAUSE;
err = process_pause(rtspconn, mediaurl);
break;
case 5:
mthd = RTSP_TEARDOWN;
err = process_teardown(rtspconn, mediaurl);
close = 1;
break;
case 6:
close = 1;
err = RTSP_SUCCESS;
break;
default:
err = RTSP_SUCCESS;
printf(Invalid value n);
break;
}
/*
* The rtsp_methods array contains the strings for RTSP
* Methods. The array index should be an enumerated RTSP
* Method type
*/
if( err!=RTSP_SUCCESS )
printf( nError occurred during %s message
processing n, rtsp_methods[mthd]);
} while(!close);
/* Close the RTSP Connection and free the resources */
rtsp_get_conn_opt(rtspconn, RTSP_OPT_SESSION,
&mapsession, NULL);
if( mapsession )
rtsp_free_session(mapsession);
rtsp_close(rtspconn);
}
The usage of this sample program is as follows:
sampleclient <mediaurl>
Example:
sampleclient rtsp://serveraddress/mediafile
RTSP Sample Program 103