mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
f4278dfc1a
commit
1e3bc96dab
6 changed files with 81 additions and 15 deletions
|
@ -698,6 +698,23 @@
|
|||
});
|
||||
};
|
||||
|
||||
self.isPlaying = function () {
|
||||
var state = self.lastPlayerData || {};
|
||||
return state.NowPlayingItem != null;
|
||||
};
|
||||
|
||||
self.isPlayingVideo = function () {
|
||||
var state = self.lastPlayerData || {};
|
||||
state = state.NowPlayingItem || {};
|
||||
return state.MediaType === 'Video';
|
||||
};
|
||||
|
||||
self.isPlayingAudio = function () {
|
||||
var state = self.lastPlayerData || {};
|
||||
state = state.NowPlayingItem || {};
|
||||
return state.MediaType === 'Audio';
|
||||
};
|
||||
|
||||
self.currentTime = function (val) {
|
||||
|
||||
if (val != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue