mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-05-26 16:56:39 +01:00
debug: add logging to Chromecast button tap handler
This commit is contained in:
@@ -104,6 +104,11 @@ export function Chromecast({
|
|||||||
<Pressable
|
<Pressable
|
||||||
className='mr-4'
|
className='mr-4'
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
|
console.log("Chromecast button tapped (iOS)", {
|
||||||
|
hasMediaStatus: !!mediaStatus,
|
||||||
|
currentItemId: mediaStatus?.currentItemId,
|
||||||
|
castDevice: castDevice?.friendlyName,
|
||||||
|
});
|
||||||
if (mediaStatus?.currentItemId) router.push("/casting-player");
|
if (mediaStatus?.currentItemId) router.push("/casting-player");
|
||||||
else CastContext.showCastDialog();
|
else CastContext.showCastDialog();
|
||||||
}}
|
}}
|
||||||
@@ -122,6 +127,11 @@ export function Chromecast({
|
|||||||
className='mr-2'
|
className='mr-2'
|
||||||
background={false}
|
background={false}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
|
console.log("Chromecast button tapped (Android transparent)", {
|
||||||
|
hasMediaStatus: !!mediaStatus,
|
||||||
|
currentItemId: mediaStatus?.currentItemId,
|
||||||
|
castDevice: castDevice?.friendlyName,
|
||||||
|
});
|
||||||
if (mediaStatus?.currentItemId) router.push("/casting-player");
|
if (mediaStatus?.currentItemId) router.push("/casting-player");
|
||||||
else CastContext.showCastDialog();
|
else CastContext.showCastDialog();
|
||||||
}}
|
}}
|
||||||
@@ -136,6 +146,11 @@ export function Chromecast({
|
|||||||
<RoundButton
|
<RoundButton
|
||||||
size='large'
|
size='large'
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
|
console.log("Chromecast button tapped (Android)", {
|
||||||
|
hasMediaStatus: !!mediaStatus,
|
||||||
|
currentItemId: mediaStatus?.currentItemId,
|
||||||
|
castDevice: castDevice?.friendlyName,
|
||||||
|
});
|
||||||
if (mediaStatus?.currentItemId) router.push("/casting-player");
|
if (mediaStatus?.currentItemId) router.push("/casting-player");
|
||||||
else CastContext.showCastDialog();
|
else CastContext.showCastDialog();
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user