addCallTrackListener(handler:)

Event fired when call has a new MediaStreamTrack to play

func addCallTrackListener(handler: @escaping @Sendable (InitiatedSession, MediaStreamTrack, Array<MediaStream>) -> Void) -> Int32

Parameters

handler

takes three arguments, the associated Chat ID, the new MediaStreamTrack, and an array of any associated MediaStreams

Return Value

token for use with removeEventListener