mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-07-05 12:02:55 +01:00
fix: use full route path for casting-player navigation
This commit is contained in:
@@ -132,8 +132,12 @@ export function Chromecast({
|
|||||||
currentItemId: mediaStatus?.currentItemId,
|
currentItemId: mediaStatus?.currentItemId,
|
||||||
castDevice: castDevice?.friendlyName,
|
castDevice: castDevice?.friendlyName,
|
||||||
});
|
});
|
||||||
if (mediaStatus?.currentItemId) router.push("/casting-player");
|
if (mediaStatus?.currentItemId) {
|
||||||
else CastContext.showCastDialog();
|
console.log("Navigating to: /(auth)/casting-player");
|
||||||
|
router.push("/(auth)/casting-player");
|
||||||
|
} else {
|
||||||
|
CastContext.showCastDialog();
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user