mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update video osd
This commit is contained in:
parent
93ce8f975b
commit
9511b02112
4 changed files with 36 additions and 56 deletions
|
@ -2579,7 +2579,7 @@ define(['events', 'datetime', 'appSettings', 'pluginManager', 'userSettings', 'g
|
|||
|
||||
function acquireResourceLocks(player, mediaType) {
|
||||
|
||||
if (!player.isLocalPlayer) {
|
||||
if (!player.isLocalPlayer || player.hasResourceLocks) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -2608,13 +2608,15 @@ define(['events', 'datetime', 'appSettings', 'pluginManager', 'userSettings', 'g
|
|||
resourceLockManager.request(resourceType).then(function (resourceLock) {
|
||||
locks[prop] = resourceLock;
|
||||
resourceLock.acquire();
|
||||
}, function () {
|
||||
// not supported or not allowed
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function releaseResourceLocks(player) {
|
||||
|
||||
if (!player.isLocalPlayer) {
|
||||
if (!player.isLocalPlayer || player.hasResourceLocks) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue