mirror of
https://github.com/jellyfin/jellyfin-tizen.git
synced 2024-11-26 23:50:24 +00:00
Fix PlayPause button
Disable on-screen playback control, if available on the page.
This commit is contained in:
parent
a56950ddb6
commit
336ba9ed19
11
tizen.js
11
tizen.js
@ -188,4 +188,15 @@
|
||||
tizen.tvinputdevice.registerKey('MediaRewind');
|
||||
tizen.tvinputdevice.registerKey('MediaFastForward');
|
||||
});
|
||||
|
||||
function updateKeys() {
|
||||
if (location.hash.indexOf('/queue') !== -1 || location.hash.indexOf('/video') !== -1) {
|
||||
// Disable on-screen playback control, if available on the page
|
||||
tizen.tvinputdevice.registerKey('MediaPlayPause');
|
||||
} else {
|
||||
tizen.tvinputdevice.unregisterKey('MediaPlayPause');
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener('viewshow', updateKeys);
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user