int rtsp_request_play(rtsp_t *s, const char *what) { char *buf; if (what) { buf=strdup(what); } else { buf = _x_asprintf("rtsp://%s:%i/%s", s->host, s->port, s->path); } rtsp_send_request(s,"PLAY",buf); free(buf); return rtsp_get_answers(s); }
int rtsp_request_setparameter(rtsp_t *s, const char *what) { char *buf; if (what) { buf=strdup(what); } else { buf = _x_asprintf("rtsp://%s:%i/%s", s->host, s->port, s->path); } rtsp_send_request(s,"SET_PARAMETER",buf); free(buf); return rtsp_get_answers(s); }
int rtsp_request_options(rtsp_t *s, const char *what) { char *buf; if (what) { buf=strdup(what); } else { buf = _x_asprintf("rtsp://%s:%i", s->host, s->port); } rtsp_send_request(s,"OPTIONS",buf); free(buf); return rtsp_get_answers(s); }
int rtsp_request_options( rtsp_client_t *rtsp, const char *what ) { char *buf; if( what ) buf = strdup(what); else { buf = xmalloc( strlen(rtsp->p_private->host) + 16 ); sprintf( buf, "rtsp://%s:%i", rtsp->p_private->host, rtsp->p_private->port ); } rtsp_send_request( rtsp, "OPTIONS", buf ); free( buf ); return rtsp_get_answers( rtsp ); }
int rtsp_request_describe( rtsp_client_t *rtsp, const char *what ) { char *buf; if( what ) { buf = strdup(what); } else { buf = xmalloc( strlen(rtsp->p_private->host) + strlen(rtsp->p_private->path) + 16 ); sprintf( buf, "rtsp://%s:%i/%s", rtsp->p_private->host, rtsp->p_private->port, rtsp->p_private->path ); } rtsp_send_request( rtsp, "DESCRIBE", buf ); free( buf ); return rtsp_get_answers( rtsp ); }
static int rtsp_request_getparameter( rtsp_client_t *rtsp, const char *what ) { char *buf; if( what ) { buf = strdup(what); } else { buf = (char*)malloc( strlen(rtsp->p_private->host) + strlen(rtsp->p_private->path) + 16 ); sprintf( buf, "rtsp://%s:%i/%s", rtsp->p_private->host, rtsp->p_private->port, rtsp->p_private->path ); } rtsp_send_request( rtsp, "GET_PARAMETER", buf ); free( buf ); return rtsp_get_answers( rtsp ); }
int rtsp_request_tearoff( rtsp_client_t *rtsp, const char *what ) { rtsp_send_request( rtsp, "TEAROFF", what ); return rtsp_get_answers( rtsp ); }
int rtsp_request_setup( rtsp_client_t *rtsp, const char *what ) { rtsp_send_request( rtsp, "SETUP", what ); return rtsp_get_answers( rtsp ); }
int rtsp_request_tearoff(rtsp_t *s, const char *what) { rtsp_send_request(s,"TEAROFF",what); return rtsp_get_answers(s); }
int rtsp_request_setup(rtsp_t *s, const char *what) { rtsp_send_request(s,"SETUP",what); return rtsp_get_answers(s); }