Group PJMEDIA_BIDIRECTIONAL_PORT

group PJMEDIA_BIDIRECTIONAL_PORT

A bidirectional port combines two unidirectional ports into one bidirectional port.

Functions

pj_status_t pjmedia_bidirectional_port_create(pj_pool_t *pool, pjmedia_port *get_port, pjmedia_port *put_port, pjmedia_port **p_port)

Create bidirectional port from two unidirectional ports

Parameters:
  • pool – Pool to allocate memory.

  • get_port – Port where get_frame() will be directed to.

  • put_port – Port where put_frame() will be directed to.

  • p_port – Pointer to receive the port instance.

Returns:

PJ_SUCCESS on success.