mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added a play command
This commit is contained in:
parent
8caa7a91e3
commit
1e450d45a2
3 changed files with 13 additions and 3 deletions
|
@ -883,7 +883,17 @@ var Dashboard = {
|
|||
}
|
||||
else if (msg.MessageType === "Play") {
|
||||
|
||||
ApiClient.getItems(Dashboard.getCurrentUserId(), {
|
||||
|
||||
Ids: msg.Data.ItemIds.join(','),
|
||||
|
||||
Fields: 'MediaStreams,UserData,DisplayMediaType,SeriesInfo,AudioInfo,Chapters'
|
||||
|
||||
}).done(function(result) {
|
||||
|
||||
MediaPlayer.play(result.Items, msg.Data.StartPositionTicks);
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
else if (msg.MessageType === "UpdatePlaystate") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue