Skip to content

Add a UI Toolkit render target for video tracks - #234

Closed
sierpinskid wants to merge 1 commit into
mainfrom
feature/ui-toolkit-render-target
Closed

sierpinskid wants to merge 1 commit into
mainfrom
feature/ui-toolkit-render-target

Conversation

@sierpinskid

Copy link
Copy Markdown
Member

Summary

  • Add StreamVideoTrack.SetRenderTarget for a UI Toolkit Image, so a track can render without a hidden RawImage.
  • Document that the local preview texture is resized in place, and add editor and runtime tests.
  • The UI Toolkit sample project is not in this PR. That stays on the sample branch.

Test plan

  • Editor StreamVideoTrackTests pass with STREAM_TESTS_ENABLED
  • A UI Toolkit image receives the track texture, and updates stop after retargeting to a RawImage
  • Existing SetRenderTarget(RawImage) behavior is unchanged

Callers can bind a track to a UI Toolkit Image directly instead of copying frames through a hidden RawImage.

Co-authored-by: Cursor <cursoragent@cursor.com>
@sierpinskid sierpinskid closed this Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant