1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/src/controllers/livetv/livetvguide.js

30 lines
698 B
JavaScript
Raw Normal View History

2020-05-04 12:44:12 +02:00
define(['tvguide'], function (tvguide) {
'use strict';
return function (view, params, tabContent) {
var guideInstance;
var self = this;
self.renderTab = function () {
if (!guideInstance) {
guideInstance = new tvguide({
element: tabContent,
serverId: ApiClient.serverId()
});
}
};
self.onShow = function () {
if (guideInstance) {
guideInstance.resume();
}
};
self.onHide = function () {
if (guideInstance) {
guideInstance.pause();
}
};
};
});