define(["exports"],function(_exports){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=function(){this.name="E-book Viewer",this.type="mediaplayer",this.id="ebookplayer",this.priority=1;var self=this;self.ebookplayer=null,self.play=function(options,signal){return signal.aborted?((signal=signal.reason)||((signal=new Error("Aborted")).name="AbortError"),Promise.reject(signal)):null===self.ebookplayer?Emby.importModule(PATH_PLAYER).then(function(playermodule){return self.ebookplayer=new playermodule,self.ebookplayer.show(options.item)}):self.ebookplayer.show(options.item)},self.stop=function(options){return null!==self.ebookplayer&&self.ebookplayer.clear(),Promise.resolve()},self.destroy=function(options){self.stop()},self.isPlaying=function(mediaType){return(!mediaType||"Book"===mediaType)&&null!==self.ebookplayer&&null!==self.ebookplayer.currentPage},self.pause=function(){},self.unpause=function(){},self.paused=function(){return!1},self.getVolume=function(){return 100},self.setVolume=function(){},self.volumeUp=function(){},self.volumeDown=function(){},self.setMute=function(mute){},self.currentTime=function(){},self.duration=function(){},self.isMuted=function(){return!1},self.canPlayMediaType=function(mediaType){return"Book"===mediaType},self.canPlayItem=function(item,playOptions){switch(null==(item=item.Container)?void 0:item.toLowerCase()){case"epub":case"mobi":case"kf8":case"azw3":case"cbz":case"cbr":case"cbt":case"cb7":case"fb2":case"fbz":return!0;default:return!1}}};var PATH_PLAYER="./modules/ebookplayer/ebookplayer.js"});