Skip to main content

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:

CallbackDescription
MEDIA_CONTEXT_CREATE_CBCreate a media context for full-duplex streaming
MEDIA_CONTEXT_DESTROY_CBDestroy a previously created media context
MEDIA_DECODE_AND_RENDER_CBCalled on receiving compressed media. Should decompress media frame and render it immediately or queue it for later rendering
MEDIA_CAPTURE_AND_ENCODE_CBCalled 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)