Updated to use MediaStreamTrack instead of MediaStream.