mirror of
https://github.com/yattee/yattee.git
synced 2026-05-12 10:25:02 +00:00
Route YouTube links tapped in descriptions through in-app playback
Description links to YouTube videos, channels, playlists, and external video URLs now open in Yattee instead of Safari. When a video is already playing, tapping a video link surfaces the existing QueueActionSheet (Play Now / Play Next / Add to Queue) — the sheet is hosted both at the app root and inside ExpandedPlayerSheet so it appears above whichever layer is on screen.
This commit is contained in:
@@ -66,6 +66,12 @@ final class NavigationCoordinator {
|
||||
/// Whether the mini player queue sheet is showing.
|
||||
var isMiniPlayerQueueSheetPresented = false
|
||||
|
||||
/// Video to present in the queue action sheet (e.g. a video link tapped inside
|
||||
/// a description). Set by the deep-link handler; cleared when the sheet dismisses.
|
||||
/// Presented by YatteeApp when the player is collapsed and by ExpandedPlayerSheet
|
||||
/// when the player is expanded, so the sheet always sits above the visible layer.
|
||||
var descriptionLinkQueueSheetVideo: Video?
|
||||
|
||||
/// Whether the mini player playlist sheet is showing.
|
||||
var isMiniPlayerPlaylistSheetPresented = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user