206 | | Array of media info.. |
| 207 | As now call can have multiple media streams, e.g: M audio streams and N video streams, {{{pjsua_call_info}}} also has array of media info: |
| 208 | {{{ |
| 209 | /** |
| 210 | * This structure describes the information and current status of a call. |
| 211 | */ |
| 212 | typedef struct pjsua_call_info |
| 213 | { |
| 214 | /** Call identification. */ |
| 215 | pjsua_call_id id; |
| 216 | |
| 217 | ... |
| 218 | |
| 219 | /** Array of media stream information */ |
| 220 | struct |
| 221 | { |
| 222 | /** Media index in SDP. */ |
| 223 | unsigned index; |
| 224 | |
| 225 | /** Media type. */ |
| 226 | pjmedia_type type; |
| 227 | |
| 228 | /** Media direction. */ |
| 229 | pjmedia_dir dir; |
| 230 | |
| 231 | /** Call media status. */ |
| 232 | pjsua_call_media_status status; |
| 233 | |
| 234 | /** The specific media stream info. */ |
| 235 | union { |
| 236 | /** Audio stream */ |
| 237 | struct { |
| 238 | /** The conference port number for the call. */ |
| 239 | pjsua_conf_port_id conf_slot; |
| 240 | } aud; |
| 241 | |
| 242 | /** Video stream */ |
| 243 | struct { |
| 244 | /** |
| 245 | * The window id for incoming video, if any, or |
| 246 | * PJSUA_INVALID_ID. |
| 247 | */ |
| 248 | pjsua_vid_win_id win_in; |
| 249 | |
| 250 | /** The video capture device for outgoing transmission, |
| 251 | * if any, or PJMEDIA_VID_INVALID_DEV |
| 252 | */ |
| 253 | pjmedia_vid_dev_index cap_dev; |
| 254 | |
| 255 | } vid; |
| 256 | } stream; |
| 257 | |
| 258 | } media[PJMEDIA_MAX_SDP_MEDIA]; |
| 259 | |
| 260 | ... |
| 261 | |
| 262 | } pjsua_call_info; |
| 263 | |
| 264 | }}} |