Media Callbacks
The set of callbacks are called by media transport part of SIP signaling to send/receive compressed media streams to/from application layer:
| Callback | Description |
|---|---|
| MEDIA_CONTEXT_CREATE_CB | Create a media context for full-duplex streaming |
| MEDIA_CONTEXT_DESTROY_CB | Destroy a previously created media context |
| MEDIA_DECODE_AND_RENDER_CB | Called on receiving compressed media. Should decompress media frame and render it immediately or queue it for later rendering |
| MEDIA_CAPTURE_AND_ENCODE_CB | Called repeatedly when media transmission is enabled. Should capture media frame, compress it and make it available to the caller (i.e.media transport part of signaling) |