mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
live tv updates
This commit is contained in:
parent
ab99669e2d
commit
17ae566950
45 changed files with 337 additions and 336 deletions
|
@ -661,7 +661,7 @@
|
|||
|
||||
currentItem = item;
|
||||
curentDurationTicks = item.RunTimeTicks;
|
||||
|
||||
alert(JSON.stringify(item));
|
||||
return videoElement[0];
|
||||
};
|
||||
|
||||
|
@ -980,7 +980,29 @@
|
|||
return ApiClient.getItems(userId, query);
|
||||
};
|
||||
|
||||
self.playById = function (id, startPositionTicks) {
|
||||
self.playById = function (id, itemType, startPositionTicks) {
|
||||
|
||||
if (itemType == "Recording") {
|
||||
|
||||
ApiClient.getLiveTvRecording(id, Dashboard.getCurrentUserId()).done(function (item) {
|
||||
|
||||
self.play([item], startPositionTicks);
|
||||
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (itemType == "Channel") {
|
||||
|
||||
ApiClient.getLiveTvChannel(id, Dashboard.getCurrentUserId()).done(function (item) {
|
||||
|
||||
self.play([item], startPositionTicks);
|
||||
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
ApiClient.getItem(Dashboard.getCurrentUserId(), id).done(function (item) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue