VideoTextureElement Op
Play a video file, use it as a texture, and output the native HTML video element.
Play a video file, use it as a texture, and output the native HTML video element.
Summary (oneliner)
Changelog: Video Player Op Update
Overview
Updated the video player operator to expose the native HTML5 video element, allowing for advanced DOM manipulation and downstream integration outside of the WebGL context.
Added Features
- New Output Port (
outElement): Added an Object output port labeled "Video Element" (op.outObject("Video Element")). - Direct DOM Access: The operator now directly exposes the native HTML5
<video>node created internally during initialization.
Use Cases
This modification allows downstream Ops or custom scripts to access the raw DOM element. It enables:
- Applying custom CSS properties to the video element.
- Adding specific custom event listeners.
- Integrating and positioning the video directly into the HTML layout (DOM) outside of the WebGL canvas.
- Ops.Patch.PR5Jn1t.VideoTextureElement
- Patch Op - visible in this patch only
- MIT
- Aug 22, 2026 at 12:01
- interactionneededbutton
- cgl
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Multi Face Tracking Bounding box & video Element
Multiface tracking Op with bounding box and videoTextureElement Op example
Inspired by https://cables.gl/p/fr5hEj and https://cables.gl/p/Q78AyQ
New features added (check Op's documentation)
INPUT PORTS
File to play
Start playback
Loop file when it reaches the end
Audio
Audio volume
mute audio
Texture
Flip the texture
Timing
Speed of playback
Set time to trigger playback from
Load into memory - useful when loading from a URL
OUTPUT PORTS
Texture out
Duration of loaded media
Playback progress
Width of texture
height of texture