define(["exports"],function(_exports){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=function(){this.name="PDF Viewer",this.type="mediaplayer",this.id="pdfplayer",this.priority=1;var self=this;self.pdfplayer=null,self.play=function(options,signal){return signal.aborted?((signal=signal.reason)||((signal=new Error("Aborted")).name="AbortError"),Promise.reject(signal)):null===self.pdfplayer?Emby.importModule(PATH_PLAYER).then(function(playermodule){return self.pdfplayer=new playermodule,self.pdfplayer.show(options.item)}):self.pdfplayer.show(options.item)},self.stop=function(options){return null!==self.pdfplayer&&self.pdfplayer.clear(),Promise.resolve()},self.destroy=function(options){self.stop()},self.isPlaying=function(mediaType){return(!mediaType||"Book"===mediaType)&&null!==self.pdfplayer&&null!==self.pdfplayer.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){return"pdf"===(null==(item=item.Container)?void 0:item.toLowerCase())}};var PATH_PLAYER="./modules/pdfplayer/pdfplayer.js"});