code: function(track, stream) {
      stream.addTrack(track);
      stream.dispatchEvent(new window.MediaStreamTrackEvent('addtrack',
        {track: track}));
    }
docs: /* adds the track to the stream and dispatches 'addtrack'