NabtoDeviceWebrtc.connectionAddMediaTracks()
DESCRIPTION
Add MediaTracks to a Nabto Connection. These tracks will be added to the WebRTC PeerConnection which will send an WebRTC Offer to the client to negotiate (or renegotiate if a connection is already established) the WebRTC connection.
To be able to negotiate the WebRTC connection, the client must first have established a Signaling Stream.
DECLARATION
bool connectionAddMediaTracks(NabtoDeviceConnectionRef ref, const std::vector<MediaTrackPtr>& tracks)
PARAMETERS
ref:
- [in] The Nabto Connection to add the media tracks to
tracks:
- [in] List of tracks to add
RETURNS
False if the Nabto Connection referenced does not have a Signaling Stream open