mirror of
https://github.com/stashapp/stash.git
synced 2025-12-09 09:53:40 +01:00
Disable videojs-mobile-ui on Safari (#3919)
This commit is contained in:
parent
eb8a69e326
commit
1229f092a4
1 changed files with 4 additions and 2 deletions
|
|
@ -513,6 +513,7 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
|
|||
interactiveClient.pause();
|
||||
interactiveReady.current = false;
|
||||
|
||||
const isSafari = UAParser().browser.name?.includes("Safari");
|
||||
const isLandscape = file.height && file.width && file.width > file.height;
|
||||
const mobileUiOptions = {
|
||||
fullscreen: {
|
||||
|
|
@ -525,7 +526,9 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
|
|||
disabled: true,
|
||||
},
|
||||
};
|
||||
player.mobileUi(mobileUiOptions);
|
||||
if (!isSafari) {
|
||||
player.mobileUi(mobileUiOptions);
|
||||
}
|
||||
|
||||
function isDirect(src: URL) {
|
||||
return (
|
||||
|
|
@ -537,7 +540,6 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
|
|||
|
||||
const { duration } = file;
|
||||
const sourceSelector = player.sourceSelector();
|
||||
const isSafari = UAParser().browser.name?.includes("Safari");
|
||||
sourceSelector.setSources(
|
||||
scene.sceneStreams
|
||||
.filter((stream) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue