media_dir property
Media direction. This setting will only be used if the flag PJSUA_CALL_SET_MEDIA_DIR is set, and it will persist for subsequent offers or answers. For example, a media that is set as PJMEDIA_DIR_ENCODING can only mark the stream in the SDP as sendonly or inactive, but will not become sendrecv in subsequent offers and answers. Application can update the media direction in any API or callback that accepts pjsua_call_setting as a parameter, such as via pjsua_call_reinvite/update() or in on_call_rx_offer/reinvite() callback.
The index of the media dir will correspond to the provisional media
in pjsua_call_info.prov_media.
For offers that involve adding new medias (such as initial offer),
the index will correspond to all new audio media first, then video.
For example, for a new call with 2 audios and 1 video, media_dir0
and media_dir1 will be for the audios, and media_dir2 video.
Default: PJMEDIA_DIR_ENCODING_DECODING
Implementation
@ffi.Array.multi([16])
external ffi.Array<ffi.Int32> media_dir;