trackless-links icon indicating copy to clipboard operation
trackless-links copied to clipboard

YouTube 画中画无效

Open xiandao604589 opened this issue 1 year ago • 4 comments

Device & OS

  • Device: [e.g., iPhone 13Promax]
  • OS: [e.g., iOS 26.1]

.

我在 app 中启用了画中画功能,但是我发现对 YouTube 网无效,仍然无法使用画中画功能,退出到后台后未见小窗口。

Image

xiandao604589 avatar Oct 28 '25 06:10 xiandao604589

Hey @xiandao604589,

Thank you for the detailed bug report and for providing the screenshot from the "Tweaks" (调整) screen! This is a very common (and very frustrating) problem.

The "Enable Picture-in-Picture" (启用画中画) tweak works on most websites, but unfortunately, YouTube.com is a special case. They use their own highly custom-built player specifically to prevent the native iOS PiP from working.

My simple tweak script can't override their complex player. This is a very difficult problem to fix, as it's a constant "cat-and-mouse" game with YouTube, but I will add it to my list to investigate.

Thanks again for the excellent feedback!


嗨 @xiandao604589,

感谢您提供详细的错误报告和“调整”页面的截图!这是一个非常常见(且非常棘手)的问题。

“启用画中画”功能在大多数网站上都有效,但可惜的是,YouTube.com 是一个特例。他们使用了自己高度定制的播放器,其目的就是为了阻止原生的 iOS 画中画功能。

我的这个“调整”脚本无法覆盖他们复杂的播放器。这是一个很难修复的问题,因为这就像和 YouTube 玩“猫捉老鼠”游戏,但我会把它添加到我的列表中进行研究。

再次感谢您的宝贵反馈!

aloth avatar Nov 11 '25 10:11 aloth

Update for 4.1

YouTube's player intentionally suppresses the normal PiP entry points, so the generic tweak couldn't help on its own. New approach in 4.1: when the Enable Picture-in-Picture tweak is on and you're on YouTube, the extension now starts PiP automatically when you swipe up or lock your screen. So the flow becomes:

  1. Make sure Settings Tweaks Enable Picture-in-Picture is on
  2. Start playing a video on youtube.com in Safari
  3. Swipe up to the home screen (or lock the device) the video pops out into PiP

Manual PiP buttons inside YouTube's UI are still controlled by YouTube and aren't part of this fix.

Will close once 4.1 ships and you've confirmed it works on your device.

aloth avatar Apr 26 '26 09:04 aloth

One more for 4.1: long-press a YouTube video for ~600 ms to start PiP directly, without needing to swipe up. Same toggle (Settings -> Tweaks -> Enable Picture-in-Picture), same YouTube-only scope. Cancels if you move your finger or lift early, so it won't trigger by accident.

aloth avatar Apr 26 '26 09:04 aloth

Version 4.1 is now live - closed. Kindly let me know if the issue is not solved as expected.

aloth avatar May 04 '26 09:05 aloth