Closed
Description
Using the texture filter combination (linear/linear)
<texture name="arvideo" filterMin="linear" filterMag="linear">
<video autoplay="true" id="inputvideo" src="resources/my-video.mp4"></video>
</texture>
as shader input in conjunction with the usage of an Xflow operator results in an
Error: WebGL: texImage2D: invalid typed array type for given texture data type
Instead of directly passed the HTMLElement to WebGL, an ImageData object is retrieved from an internal canvas to fetch a frame of the video stream. This call returns an Uint8ClampedArray, which in turn is not valid as argument to be given to texImage2D (requires Uint8Array).
Metadata
Metadata
Assignees
Labels
No labels