|
Defines | |
| #define | rtsp_status(ctrl) ctrl->status |
Functions | |
| rtsp_ctrl * | rtsp_init (nms_rtsp_hints *) |
| int | rtsp_is_busy (rtsp_ctrl *) |
| RTSP_Error | rtsp_wait (rtsp_ctrl *) |
| int | rtsp_close (rtsp_ctrl *) |
| int | rtsp_open (rtsp_ctrl *, char *) |
| int | rtsp_pause (rtsp_ctrl *) |
| int | rtsp_stop (rtsp_ctrl *) |
| int | rtsp_play (rtsp_ctrl *, double, double) |
| int | rtsp_seek (rtsp_ctrl *, double, double) |
| int | rtsp_uninit (rtsp_ctrl *) |
| void | rtsp_info_print (rtsp_ctrl *) |
| rtp_thread * | rtsp_get_rtp_th (rtsp_ctrl *rtsp_ctl) |
| rtp_session * | rtsp_get_rtp_queue (rtsp_ctrl *rtsp_ctl) |
The RTSP module requests the media streams and handles the service handshake. Once this phase is complete it behaves like a remote controller for the requested multimedia stream.
| int rtsp_close | ( | rtsp_ctrl * | rtsp_ctl | ) |
| rtp_session* rtsp_get_rtp_queue | ( | rtsp_ctrl * | rtsp_ctl | ) |
Gets the head of the RTP sessions queue linked to the given RTSP controller
| rtsp_ctl | The RTSP controller for which to get the RTP sessions queue |
Definition at line 259 of file rtsp.c.
Referenced by rtp_session_get_ssrc().
| rtp_thread* rtsp_get_rtp_th | ( | rtsp_ctrl * | rtsp_ctl | ) |
| void rtsp_info_print | ( | rtsp_ctrl * | rtsp_ctl | ) |
Prints the informations about the given RTSP controller: Session informations, medium informations.
| rtsp_ctl | The controller for which to print the informations |
Definition at line 279 of file rtsp.c.
References sdp_medium_info_s::attr_list, sdp_session_info::attr_list, rtsp_medium_s::filename, rtsp_session_s::info, rtsp_session_s::media_queue, rtsp_medium_s::medium_info, sdp_attr_s::name, rtsp_session_s::next, rtsp_medium_s::next, sdp_attr_s::next, rtsp_session_s::pathname, and sdp_attr_s::value.
| rtsp_ctrl* rtsp_init | ( | nms_rtsp_hints * | hints | ) |
Initialized the library and starts a thread that handles both commands to send to the server and responses received from the server.
The ports to use for the new connection. This are just hints.
Definition at line 52 of file rtsp.c.
References rtsp_thread::cond_busy, rtsp_thread::default_rtp_proto, rtsp_thread::force_rtp_port, rtsp_thread::hints, init_state(), playing_state(), ready_state(), recording_state(), rtp_init(), rtsp_thread::rtp_th, rtsp(), RTSP_MIN_RTP_PORT, and rtsp_thread::transport.

| int rtsp_is_busy | ( | rtsp_ctrl * | rtsp_ctl | ) |
| int rtsp_open | ( | rtsp_ctrl * | rtsp_ctl, | |
| char * | urlname | |||
| ) |
Sends to the controller the request to open a given url
| rtsp_ctl | The controller that should open the url | |
| urlanem | The path of the document to open |
Definition at line 503 of file rtsp.c.
Referenced by check_status().
| int rtsp_pause | ( | rtsp_ctrl * | rtsp_ctl | ) |
| int rtsp_play | ( | rtsp_ctrl * | rtsp_ctl, | |
| double | start, | |||
| double | stop | |||
| ) |
| int rtsp_seek | ( | rtsp_ctrl * | rtsp_ctl, | |
| double | new_start, | |||
| double | new_end | |||
| ) |
Starts playing the given new range of the stream, stopping the previously played one This is implemented with a PAUSE and PLAY methods call
| rtsp_ctl | The controller that should start playing in the new range | |
| start | from where to start playing | |
| stop | where to stop playing |
| int rtsp_stop | ( | rtsp_ctrl * | rtsp_ctl | ) |
| int rtsp_uninit | ( | rtsp_ctrl * | rtsp_ctl | ) |
| RTSP_Error rtsp_wait | ( | rtsp_ctrl * | rtsp_ctl | ) |
Waits for the main loop to handle the last given command, this should be called after issuing a command to the rtsp main loop.
| rtsp_ctl | The control structure for which to wait. |
Definition at line 235 of file rtsp.c.
References rtsp_thread::cond_busy.
1.5.4