on_call_media_event property

Pointer<NativeFunction<Void Function(pjsua_call_id call_id, UnsignedInt med_idx, Pointer<pjmedia_event> event)>> on_call_media_event
getter/setter pair

Notification about media events such as video notifications. This callback will most likely be called from media threads, thus application must not perform heavy processing in this callback. Especially, application must not destroy the call or media in this callback. If application needs to perform more complex tasks to handle the event, it should post the task to another thread.

@param call_id The call id. @param med_idx The media stream index. @param event The media event.

Implementation

external ffi.Pointer<
    ffi.NativeFunction<
        ffi.Void Function(pjsua_call_id call_id, ffi.UnsignedInt med_idx,
            ffi.Pointer<pjmedia_event> event)>> on_call_media_event;