mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
support theme songs in the web client
This commit is contained in:
parent
b8c3e8c777
commit
b7235c797f
22 changed files with 603 additions and 272 deletions
|
@ -566,7 +566,7 @@
|
|||
};
|
||||
|
||||
self.displayContent = function (options) {
|
||||
|
||||
|
||||
// Handle it the same as a remote control command
|
||||
Dashboard.onBrowseCommand({
|
||||
|
||||
|
@ -934,7 +934,7 @@
|
|||
};
|
||||
|
||||
self.isPlaying = function () {
|
||||
return currentMediaElement;
|
||||
return currentMediaElement != null;
|
||||
};
|
||||
|
||||
self.getPlayerState = function () {
|
||||
|
@ -1121,6 +1121,15 @@
|
|||
return testableVideoElement.canPlayType('video/webm').replace(/no/, '');
|
||||
}
|
||||
|
||||
self.canAutoPlayAudio = function () {
|
||||
|
||||
if ($.browser.android || ($.browser.webkit && !$.browser.chrome)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
function getAudioElement() {
|
||||
|
||||
var elem = $('.mediaPlayerAudio');
|
||||
|
@ -1131,7 +1140,7 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
var requiresControls = $.browser.android || ($.browser.webkit && !$.browser.chrome);
|
||||
var requiresControls = !self.canAutoPlayAudio();
|
||||
|
||||
if (requiresControls) {
|
||||
html += '<div class="mediaPlayerAudioContainer"><div class="mediaPlayerAudioContainerInner">';;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue