feat(player): 接入双端画中画播放
This commit is contained in:
1 parent
5346be40a9
commit
43e60e29ec
10 files changed
+1015
-29
No files matched your search
@@ -37,9 +37,14 @@ extension _PlayerViewActions on _PlayerPageState {
|
||||
onQualityChanged: (quality) => _switchQuality(context, l10n, quality),
|
||||
onClear: _hideChrome,
|
||||
onDownload: () => requestEpisodeDownload(context, episode.id),
|
||||
onPip: logic.pictureInPicture.isPlatformSupported
|
||||
// iOS 不显示手动「画中画」入口(走下方「退出后自动小窗」开关)。
|
||||
onPip: logic.pictureInPicture.isPlatformSupported && !logic.iosDevice
|
||||
? () => unawaited(logic.enterPip(context))
|
||||
: null,
|
||||
autoPipEnabled: logic.iosAutoPipEnabled,
|
||||
onAutoPipChanged: logic.iosDevice
|
||||
? (value) => unawaited(logic.setIosAutoPip(value))
|
||||
: null,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user