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 () {
|
||||
|
||||
var player = currentPlayer || {};
|
||||
var target = currentTargetInfo || {};
|
||||
|
||||
return {
|
||||
|
||||
name: currentPlayer.name,
|
||||
isLocalPlayer: currentPlayer.isLocalPlayer,
|
||||
id: currentTargetInfo.id,
|
||||
deviceName: currentTargetInfo.deviceName,
|
||||
playableMediaTypes: currentTargetInfo.playableMediaTypes,
|
||||
supportedCommands: currentTargetInfo.supportedCommands
|
||||
name: player.name,
|
||||
isLocalPlayer: player.isLocalPlayer,
|
||||
id: target.id,
|
||||
deviceName: target.deviceName,
|
||||
playableMediaTypes: target.playableMediaTypes,
|
||||
supportedCommands: target.supportedCommands
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue