attachStreamToVideo(stream, videoSource) {
			return __awaiter(this, void 0, void 0, function* () {
				const videoElement = this.prepareVideoElement(videoSource);
				this.addVideoSource(videoElement, stream);
				this.videoElement = videoElement;
				this.stream = stream;
				yield this.playVideoOnLoadAsync(videoElement);
				return videoElement;
			});
		}
Sets the new stream and request a new decoding-with-delay.

@param stream The stream to be shown in the video element.
@param decodeFn A callback for the decode method.