1
0
Fork 0
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:
Luke Pulverenti 2013-05-28 13:25:10 -04:00
parent 8caa7a91e3
commit 1e450d45a2
3 changed files with 13 additions and 3 deletions

View file

@ -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") {