Repository navigation
feat(video): expose native rendering mode transitions on Darwin - #41
Open
sibogentleman wants to merge 3 commits into
Open
sibogentleman wants to merge 3 commits into
sibogentleman wants to merge 3 commits into
Conversation
5 of 11 tasks
Author
|
@Predidit 为了解决 hack 接口的更改 |
sibogentleman
marked this pull request as ready for review
October 12, 2026 13:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
iOS sample-buffer Picture in Picture needs to switch an existing player's output between GPU rendering and software rendering while keeping its media, audio, position, and decoder settings. This adds a typed native API published through Flutter's plugin registry so integrations can request that transition without intercepting the plugin's method channel or replaying create/dispose messages.
The plugin owns output configuration, dimensions, replacement readiness, rollback, and disposal. The caller suspends and restores the player's video track and serializes that transaction. Results distinguish changed, unchanged, temporarily not ready, and failed requests. iOS also gates GPU rendering when the application resigns active. The README documents the API and its lifecycle requirements.
Validation:
Companion integration: Predidit/Kazumi#2646. This draft is for review of the proposed public API before the integration switches back from the pinned fork commit to an upstream commit.
AI assistance: implementation and automated validation were assisted by Codex; device testing was performed by the contributor.
以下可直接用作中文 PR 说明,验证结果按[当前 PR #41](#41) 的记录整理。
标题:
feat(video): 为 Darwin 平台提供原生渲染模式切换 API为 iOS 基于 Sample Buffer 的画中画接入提供底层支持,允许现有播放器在 GPU 渲染与软件渲染之间切换,同时保留媒体、音频、播放位置和解码器配置。
通过 Flutter 插件注册表公开类型化的原生 API,接入方无需拦截插件的 Method Channel,也无需模拟创建与销毁消息。主要改动包括:
验证情况:
配套画中画接入见 [Predidit/Kazumi#2646](https://github.com/Predidit/Kazumi/pull/2646)。本 PR 保持草稿状态,用于先评审公开 API;上游合入后,接入方再将固定的 fork 提交依赖切换至上游提交。
实现与自动化验证由 Codex 辅助完成,真机测试由贡献者执行。