mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Disable videojs-mobile-ui on Safari (#3919)
This commit is contained in:
@@ -513,6 +513,7 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
|
|||||||
interactiveClient.pause();
|
interactiveClient.pause();
|
||||||
interactiveReady.current = false;
|
interactiveReady.current = false;
|
||||||
|
|
||||||
|
const isSafari = UAParser().browser.name?.includes("Safari");
|
||||||
const isLandscape = file.height && file.width && file.width > file.height;
|
const isLandscape = file.height && file.width && file.width > file.height;
|
||||||
const mobileUiOptions = {
|
const mobileUiOptions = {
|
||||||
fullscreen: {
|
fullscreen: {
|
||||||
@@ -525,7 +526,9 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
|
|||||||
disabled: true,
|
disabled: true,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
player.mobileUi(mobileUiOptions);
|
if (!isSafari) {
|
||||||
|
player.mobileUi(mobileUiOptions);
|
||||||
|
}
|
||||||
|
|
||||||
function isDirect(src: URL) {
|
function isDirect(src: URL) {
|
||||||
return (
|
return (
|
||||||
@@ -537,7 +540,6 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
|
|||||||
|
|
||||||
const { duration } = file;
|
const { duration } = file;
|
||||||
const sourceSelector = player.sourceSelector();
|
const sourceSelector = player.sourceSelector();
|
||||||
const isSafari = UAParser().browser.name?.includes("Safari");
|
|
||||||
sourceSelector.setSources(
|
sourceSelector.setSources(
|
||||||
scene.sceneStreams
|
scene.sceneStreams
|
||||||
.filter((stream) => {
|
.filter((stream) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user