NabtoDeviceWebrtc.setTrackEventCallback()

DESCRIPTION

Set callback to be called when the Client has added a track to the PeerConnection. (ie. a WebRTC Offer containing new tracks was received)

The MediaTrack provided in this callback will have an SDP description containing all payload types offered by the client. The callback must remove any unsupported payload types from the SDP before returning. When the callback returns, the SDP of the MediaTrack will be used in the WebRTC Answer returned to the client. If the callback is not able to properly handle the track, it must use track->setErrorState() to make the track fail on the client side.

DECLARATION

    void setTrackEventCallback(TrackEventCallback cb)

PARAMETERS

cb:
[in] The callback to set