[PlayerPanel] MEDIA focus

This commit is contained in:
고동영
2024-05-16 17:02:25 +09:00
parent 281620e213
commit b2e753c96d

View File

@@ -524,6 +524,10 @@ const PlayerPanel = ({
return false;
}, [panelInfo, sideContentsVisible]);
useEffect(() => {
Spotlight.focus("player-tab-arrow");
}, [sideContentsVisible]);
return (
<TPanel
isTabActivated={false}
@@ -545,7 +549,10 @@ const PlayerPanel = ({
noAutoPlay={cannotPlay}
autoCloseTimeout={100000}
onBackButton={onClickBack}
spotlightDisabled={sideContentsVisible || panelInfo.modal}
spotlightDisabled={
(panelInfo?.shptmBanrTpNm !== "MEDIA" && sideContentsVisible) ||
panelInfo.modal
}
onLoadedData={mediainfoHandler}
onLoadedMetadata={mediainfoHandler}
onDurationChange={mediainfoHandler}