Source
RenderTexture.fromVideoElement(VideoElement videoElement) { if (videoElement.readyState < 3) throw new ArgumentError("videoElement"); _width = ensureInt(videoElement.videoWidth); _height = ensureInt(videoElement.videoHeight); _source = videoElement; _globalFrameListeners.insert(0, _onGlobalFrame); }