mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update media controller
This commit is contained in:
parent
4a4adfbab9
commit
3df9361806
1 changed files with 9 additions and 6 deletions
|
@ -273,14 +273,17 @@
|
||||||
|
|
||||||
self.getPlayerInfo = function () {
|
self.getPlayerInfo = function () {
|
||||||
|
|
||||||
|
var player = currentPlayer || {};
|
||||||
|
var target = currentTargetInfo || {};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
name: currentPlayer.name,
|
name: player.name,
|
||||||
isLocalPlayer: currentPlayer.isLocalPlayer,
|
isLocalPlayer: player.isLocalPlayer,
|
||||||
id: currentTargetInfo.id,
|
id: target.id,
|
||||||
deviceName: currentTargetInfo.deviceName,
|
deviceName: target.deviceName,
|
||||||
playableMediaTypes: currentTargetInfo.playableMediaTypes,
|
playableMediaTypes: target.playableMediaTypes,
|
||||||
supportedCommands: currentTargetInfo.supportedCommands
|
supportedCommands: target.supportedCommands
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue