mediastreamer2 5.2.0
|
Data Structures | |
struct | _TextStream |
Typedefs | |
typedef struct _TextStream | TextStream |
Functions | |
TextStream * | text_stream_new (MSFactory *factory, int loc_rtp_port, int loc_rtcp_port, bool_t ipv6) |
TextStream * | text_stream_new_with_sessions (MSFactory *factory, const MSMediaStreamSessions *sessions) |
TextStream * | text_stream_new2 (MSFactory *factory, const char *ip, int loc_rtp_port, int loc_rtcp_port) |
TextStream * | text_stream_start (TextStream *stream, RtpProfile *profile, const char *rem_rtp_addr, int rem_rtp_port, const char *rem_rtcp_addr, int rem_rtcp_port, int payload_type) |
void | text_stream_stop (TextStream *stream) |
void | text_stream_iterate (TextStream *stream) |
void | text_stream_putchar32 (TextStream *stream, uint32_t i) |
void | text_stream_prepare_text (TextStream *stream) |
void | text_stream_unprepare_text (TextStream *stream) |
void text_stream_iterate | ( | TextStream * | stream | ) |
Executes background low priority tasks related to text processing (RTP statistics analysis). It should be called periodically, for example with an interval of 100 ms or so.
[in] | stream | TextStream object previously created with text_stream_new(). |
TextStream * text_stream_new | ( | MSFactory * | factory, |
int | loc_rtp_port, | ||
int | loc_rtcp_port, | ||
bool_t | ipv6 | ||
) |
Creates a TextStream object listening on a RTP port.
loc_rtp_port | the local UDP port to listen for RTP packets. |
loc_rtcp_port | the local UDP port to listen for RTCP packets |
ipv6 | TRUE if ipv6 must be used. |
factory |
TextStream * text_stream_new2 | ( | MSFactory * | factory, |
const char * | ip, | ||
int | loc_rtp_port, | ||
int | loc_rtcp_port | ||
) |
Creates a TextStream object listening on a RTP port for a dedicated address.
loc_ip | the local ip to listen for RTP packets. Can be ::, O.O.O.O or any ip4/6 addresses | |
[in] | loc_rtp_port | the local UDP port to listen for RTP packets. |
[in] | loc_rtcp_port | the local UDP port to listen for RTCP packets |
factory |
TextStream * text_stream_new_with_sessions | ( | MSFactory * | factory, |
const MSMediaStreamSessions * | sessions | ||
) |
Creates a TextStream object from initialized MSMediaStreamSessions.
sessions | the MSMediaStreamSessions |
factory |
void text_stream_putchar32 | ( | TextStream * | stream, |
uint32_t | i | ||
) |
Writes a character to stream in UTF-32 format.
[in] | stream | TextStream object previously created with text_stream_new(). |
[in] | i | the Char in UTF-32 format. |
TextStream * text_stream_start | ( | TextStream * | stream, |
RtpProfile * | profile, | ||
const char * | rem_rtp_addr, | ||
int | rem_rtp_port, | ||
const char * | rem_rtcp_addr, | ||
int | rem_rtcp_port, | ||
int | payload_type | ||
) |
Starts a text stream.
[in] | stream | TextStream object previously created with text_stream_new(). |
[in] | profile | RtpProfile object holding the PayloadType that can be used during the text session. |
[in] | rem_rtp_addr | The remote IP address where to send the text to. |
[in] | rem_rtp_port | The remote port where to send the text to. |
[in] | rem_rtcp_addr | The remote IP address for RTCP. |
[in] | rem_rtcp_port | The remote port for RTCP. |
[in] | payload_type | The payload type number used to send the text stream. A valid PayloadType must be available at this index in the profile. |
[in] | factory |
void text_stream_stop | ( | TextStream * | stream | ) |
Stops the text streaming thread and free everything