jellyfin-web/src/scripts/livetvguide.js

16 lines
542 B
JavaScript
Raw Normal View History

2018-10-22 15:05:09 -07:00
define(["tvguide"], function(tvguide) {
"use strict";
return function(view, params, tabContent) {
var guideInstance, self = this;
self.renderTab = function() {
guideInstance || (guideInstance = new tvguide({
element: tabContent,
serverId: ApiClient.serverId()
}))
}, self.onShow = function() {
guideInstance && guideInstance.resume()
}, self.onHide = function() {
guideInstance && guideInstance.pause()
}
}
});