setup method

void setup(
  1. VideoTracks trackListToWrap
)

Method to setup the VideoTrack event listeners on a TextTrack list (VideoTracks).

Implementation

void setup(VideoTracks trackListToWrap) {
  _wrappedTrackList = trackListToWrap;
  innerList = trackListToWrap;

  _wrappedTrackList?.addEventListener(VideoTracksEventTypes.ADDTRACK, forwardingkEventListener);
  _wrappedTrackList?.addEventListener(VideoTracksEventTypes.REMOVETRACK, forwardingkEventListener);
  _wrappedTrackList?.addEventListener(VideoTracksEventTypes.CHANGE, forwardingkEventListener);
}