Fix video player back button - use push navigation
Changed video player from .fullScreen to .push navigation: - Removed NavigationViewCoordinator wrapper - Video player now returns VideoPlayerCoordinator directly This should allow ESC/back button to work during video playback. MediaCoordinator kept at .fullScreen to prevent Home screen navigation bug. Trade-offs: ✅ Video player ESC should now work ✅ Pressing back from empty channel goes to Media tab (not Home) ❌ Error dismissal still returns to Media tab (dismisses entire .fullScreen presentation) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
7c28c04048
commit
0dcde5dd74
|
@ -40,7 +40,7 @@ final class ItemCoordinator: NavigationCoordinatable {
|
||||||
var itemOverview = makeItemOverview
|
var itemOverview = makeItemOverview
|
||||||
@Route(.fullScreen)
|
@Route(.fullScreen)
|
||||||
var mediaSourceInfo = makeMediaSourceInfo
|
var mediaSourceInfo = makeMediaSourceInfo
|
||||||
@Route(.fullScreen)
|
@Route(.push)
|
||||||
var videoPlayer = makeVideoPlayer
|
var videoPlayer = makeVideoPlayer
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -90,8 +90,8 @@ final class ItemCoordinator: NavigationCoordinatable {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if os(tvOS)
|
#if os(tvOS)
|
||||||
func makeVideoPlayer(manager: VideoPlayerManager) -> NavigationViewCoordinator<VideoPlayerCoordinator> {
|
func makeVideoPlayer(manager: VideoPlayerManager) -> VideoPlayerCoordinator {
|
||||||
NavigationViewCoordinator(VideoPlayerCoordinator(manager: manager))
|
VideoPlayerCoordinator(manager: manager)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue