on_stream_created property

Pointer<NativeFunction<Void Function(pjsua_call_id call_id, Pointer<pjmedia_stream> strm, UnsignedInt stream_idx, Pointer<Pointer<pjmedia_port>> p_port)>> on_stream_created
getter/setter pair

Notify application when audio media session is created and before it is registered to the conference bridge. Application may return different audio media port if it has added media processing port to the stream. This media port then will be added to the conference bridge instead.

Note: if implemented, on_stream_created2() callback will be called instead of this one.

@param call_id Call identification. @param strm Audio media stream. @param stream_idx Stream index in the audio media session. @param p_port On input, it specifies the audio media port of the stream. Application may modify this pointer to point to different media port to be registered to the conference bridge.

Implementation

external ffi.Pointer<
        ffi.NativeFunction<
            ffi.Void Function(
                pjsua_call_id call_id,
                ffi.Pointer<pjmedia_stream> strm,
                ffi.UnsignedInt stream_idx,
                ffi.Pointer<ffi.Pointer<pjmedia_port>> p_port)>>
    on_stream_created;