pjmedia_transport_op class final

This structure describes the operations for the stream transport.

Inheritance
Implemented types
Available extensions

Constructors

pjmedia_transport_op()

Properties

address Pointer<T>

Available on T, provided by the StructAddress extension

The memory address of the underlying data.
no setter
attach Pointer<NativeFunction<pj_status_t Function(Pointer<pjmedia_transport> tp, Pointer<Void> user_data, Pointer<pj_sockaddr_t> rem_addr, Pointer<pj_sockaddr_t> rem_rtcp, UnsignedInt addr_len, Pointer<NativeFunction<Void Function(Pointer<Void> user_data, Pointer<Void> pkt, pj_ssize_t size)>> rtp_cb, Pointer<NativeFunction<Void Function(Pointer<Void> user_data, Pointer<Void> pkt, pj_ssize_t size)>> rtcp_cb)>>
This function is called by the stream when the transport is about to be used by the stream for the first time, and it tells the transport about remote RTP address to send the packet and some callbacks to be called for incoming packets. This function exists for backwards compatibility. Transports should implement attach2 instead.
getter/setter pair
attach2 Pointer<NativeFunction<pj_status_t Function(Pointer<pjmedia_transport> tp, Pointer<pjmedia_transport_attach_param> att_param)>>
This function is called by the stream when the transport is about to be used by the stream for the first time, and it tells the transport about remote RTP address to send the packet and some callbacks to be called for incoming packets.
getter/setter pair
destroy Pointer<NativeFunction<pj_status_t Function(Pointer<pjmedia_transport> tp)>>
This function can be called to destroy this transport.
getter/setter pair
detach Pointer<NativeFunction<Void Function(Pointer<pjmedia_transport> tp, Pointer<Void> user_data)>>
This function is called by the stream when the stream no longer needs the transport (normally when the stream is about to be closed). After the transport is detached, it will ignore incoming RTP/RTCP packets, and will refuse to send outgoing RTP/RTCP packets. Application may re-attach the media transport to another transport user (e.g. stream) after the transport has been detached.
getter/setter pair
encode_sdp Pointer<NativeFunction<pj_status_t Function(Pointer<pjmedia_transport> tp, Pointer<pj_pool_t> sdp_pool, Pointer<pjmedia_sdp_session> sdp_local, Pointer<pjmedia_sdp_session> rem_sdp, UnsignedInt media_index)>>
This function is called by application to generate the SDP parts related to transport type, e.g: ICE, SRTP.
getter/setter pair
get_info Pointer<NativeFunction<pj_status_t Function(Pointer<pjmedia_transport> tp, Pointer<pjmedia_transport_info> info)>>
Get media socket info from the specified transport.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
media_create Pointer<NativeFunction<pj_status_t Function(Pointer<pjmedia_transport> tp, Pointer<pj_pool_t> sdp_pool, UnsignedInt options, Pointer<pjmedia_sdp_session> remote_sdp, UnsignedInt media_index)>>
Prepare the transport for a new media session.
getter/setter pair
media_start Pointer<NativeFunction<pj_status_t Function(Pointer<pjmedia_transport> tp, Pointer<pj_pool_t> tmp_pool, Pointer<pjmedia_sdp_session> sdp_local, Pointer<pjmedia_sdp_session> sdp_remote, UnsignedInt media_index)>>
This function is called by application to start the transport based on local and remote SDP.
getter/setter pair
media_stop Pointer<NativeFunction<pj_status_t Function(Pointer<pjmedia_transport> tp)>>
This function is called by application to stop the transport.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
send_rtcp Pointer<NativeFunction<pj_status_t Function(Pointer<pjmedia_transport> tp, Pointer<Void> pkt, pj_size_t size)>>
This function is called by the stream to send RTCP packet using the transport.
getter/setter pair
send_rtcp2 Pointer<NativeFunction<pj_status_t Function(Pointer<pjmedia_transport> tp, Pointer<pj_sockaddr_t> addr, UnsignedInt addr_len, Pointer<Void> pkt, pj_size_t size)>>
This function is called by the stream to send RTCP packet using the transport with destination address other than default specified in #pjmedia_transport_attach().
getter/setter pair
send_rtp Pointer<NativeFunction<pj_status_t Function(Pointer<pjmedia_transport> tp, Pointer<Void> pkt, pj_size_t size)>>
This function is called by the stream to send RTP packet using the transport.
getter/setter pair
simulate_lost Pointer<NativeFunction<pj_status_t Function(Pointer<pjmedia_transport> tp, Int32 dir, UnsignedInt pct_lost)>>
This function can be called to simulate packet lost.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited