Skip to content

chore(🎬): rename createVideoPlayer to createTestVideoPlayer - #644

Merged
wcandillon merged 2 commits into
mainfrom
claude/intelligent-planck-dyngry
Nov 24, 2026
Merged

wcandillon merged 2 commits into
mainfrom
claude/intelligent-planck-dyngry

Conversation

@wcandillon

Copy link
Copy Markdown
Owner

Description

The video player is only used for testing and demonstrating native buffers. We don't want people to think that video decoding is the responsibility of React Native WebGPU, so the API is renamed to make this explicit.

Agent-written content

  • createVideoPlayer() is now createTestVideoPlayer(), and CreateVideoPlayerOptions is now CreateTestVideoPlayerOptions (JS export, JSI method, PlatformContext, Apple and Android implementations, the JNI lookup and the Java method).
  • The VideoPlayer type itself is unchanged.
  • Examples (ImportExternalTexture, SharedTextureMemory) and the native tests use the new name.
  • Docs: api/video-player moved to api/test-video-player, titled "Test Video Player", with a warning callout stating that it is for tests and examples only, that video decoding is out of scope, and pointing to a video library plus createNativeBufferFromPointer() for apps. Links from the API index and the Native Buffer page are updated.
  • Breaking change for anyone calling createVideoPlayer() directly.

Generated by Claude Code

The video player only exists to test and demonstrate native buffers;
video decoding is out of the scope of this library. The new name and the
updated documentation make this explicit.
@wcandillon
wcandillon merged commit 4199a0a into main Nov 24, 2026
6 of 9 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.24.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant