mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-04 21:18:31 +01:00
fix: pip
This commit is contained in:
@@ -57,6 +57,8 @@ export const CurrentlyPlayingBar: React.FC = () => {
|
|||||||
const [paused, setPaused] = useState(true);
|
const [paused, setPaused] = useState(true);
|
||||||
const [progress, setProgress] = useState(0);
|
const [progress, setProgress] = useState(0);
|
||||||
|
|
||||||
|
const [pip, setPip] = useState(false);
|
||||||
|
|
||||||
const aBottom = useSharedValue(0);
|
const aBottom = useSharedValue(0);
|
||||||
const aPadding = useSharedValue(0);
|
const aPadding = useSharedValue(0);
|
||||||
const aHeight = useSharedValue(100);
|
const aHeight = useSharedValue(100);
|
||||||
@@ -236,6 +238,10 @@ export const CurrentlyPlayingBar: React.FC = () => {
|
|||||||
showNotificationControls={true}
|
showNotificationControls={true}
|
||||||
ignoreSilentSwitch="ignore"
|
ignoreSilentSwitch="ignore"
|
||||||
controls={false}
|
controls={false}
|
||||||
|
pictureInPicture={true}
|
||||||
|
onPictureInPictureStatusChanged={(e) => {
|
||||||
|
setPip(e.isActive);
|
||||||
|
}}
|
||||||
poster={
|
poster={
|
||||||
backdropUrl && item?.Type === "Audio"
|
backdropUrl && item?.Type === "Audio"
|
||||||
? backdropUrl
|
? backdropUrl
|
||||||
|
|||||||
Reference in New Issue
Block a user