onTrack method

void onTrack(
  1. OnTrackCallback f
)

Subscribes the provided callback to the on_track events of this PeerConnection.

Implementation

void onTrack(OnTrackCallback f) {
  _onTrack = f;
}