prepareVideoElement(videoSource) {
			let videoElement;
			if (!videoSource && typeof document !== 'undefined') {
				videoElement = document.createElement('video');
				videoElement.width = 200;
				videoElement.height = 200;
			}
			if (typeof videoSource === 'string') {
				videoElement = this.getMediaElement(videoSource, 'video');
			}
			if (videoSource instanceof HTMLVideoElement) {
				videoElement = videoSource;
			}
			// Needed for iOS 11
			videoElement.setAttribute('autoplay', 'true');
			videoElement.setAttribute('muted', 'true');
			videoElement.setAttribute('playsinline', 'true');
			return videoElement;
		}
Sets a HTMLVideoElement for scanning or creates a new one.

@param videoSource The HTMLVideoElement to be set.