kingslay / KSPlayer

A video player for iOS、macOS、tvOS、visionOS , based on AVPlayer and FFmpeg, support the horizontal, vertical screen. support adjust volume, brightness and seek by slide, support subtitles.
GNU General Public License v3.0
869 stars 184 forks source link

Picture in Picture (PiP) on tvOS #741

Closed truckclancy closed 4 months ago

truckclancy commented 4 months ago

It would be really useful to have Picture in Picture (PiP) on tvOS. Documentation: https://developer.apple.com/documentation/avkit/adopting_picture_in_picture_in_a_custom_player

kingslay commented 4 months ago

我是有在tvos加了pip能力。但是tvos和macos的pip都只有用系统播放器内核才可以用pip,用ksplayer播放内核是无法用pip的。只有iOS用ksplayer播放内核也可以用pip。这个需要苹果官方才可以。

truckclancy commented 4 months ago

Oh, thank you. Do you know why TracyPlayer can pip this stream on macOS/iOS but not tvOS if it's using AVPlayer? https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8

kingslay commented 4 months ago

好的,我下班回去看下这个问题。看下是什么原因导致的。

2024年3月4日 12:27,truckclancy @.***> 写道:

Oh, thank you. Do you know why TracyPlayer can pip this stream on macOS/iOS but not tvOS if it's using AVPlayer? https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8

— Reply to this email directly, view it on GitHub https://github.com/kingslay/KSPlayer/issues/741#issuecomment-1975677463, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6HZFZ47MGVXJBIRBSEJCLYWPZ4LAVCNFSM6AAAAABEEF2TIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZVGY3TONBWGM. You are receiving this because you commented.

kingslay commented 4 months ago

这个问题改好了。你可以用最新的TestFlight包

john-dududu commented 1 month ago

https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8

@kingslay 为啥AVPlayer 起播速度很快,3秒就播了, 而KSPlayer 要十几秒才行, 测试用的TracyPlayer

Kimentanm commented 1 month ago

这个视频是多分辨率的,AVPlayer会从分辨率最低的视轨开始播起,然后慢慢切换到最高的分辨率,所以快 KSPlayer会直播加载码率最高的那个

https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8

@kingslay 为啥AVPlayer 起播速度很快,3秒就播了, 而KSPlayer 要十几秒才行, 测试用的TracyPlayer