@gcorevideo/player 2.19.5 → 2.19.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -7
- package/build/vite-raw-plugin.js +1 -1
- package/dist/core.js +1 -1
- package/dist/index.css +694 -694
- package/dist/index.js +21 -11
- package/dist/player.d.ts +1923 -0
- package/dist/plugins/index.css +1453 -1453
- package/dist/plugins/{index.js/index.plugins.js → index.js} +20 -10
- package/docs/api/player.audioselector.attributes.md +17 -0
- package/docs/api/player.audioselector.bindevents.md +18 -0
- package/docs/api/player.audioselector.events.md +17 -0
- package/docs/api/player.audioselector.hideselecttrackmenu.md +18 -0
- package/docs/api/player.audioselector.highlightcurrenttrack.md +18 -0
- package/docs/api/player.audioselector.md +329 -0
- package/docs/api/player.audioselector.name.md +14 -0
- package/docs/api/player.audioselector.onshowlevelselectmenu.md +18 -0
- package/docs/api/player.audioselector.reload.md +18 -0
- package/docs/api/player.audioselector.render.md +18 -0
- package/docs/api/player.audioselector.starttrackswitch.md +18 -0
- package/docs/api/player.audioselector.supportedversion.md +16 -0
- package/docs/api/player.audioselector.template.md +14 -0
- package/docs/api/player.audioselector.togglecontextmenu.md +18 -0
- package/docs/api/player.audioselector.unbindevents.md +18 -0
- package/docs/api/player.audioselector.updatecurrenttrack.md +66 -0
- package/docs/api/player.audioselector.version.md +14 -0
- package/docs/api/player.bigmutebutton.bindevents.md +18 -0
- package/docs/api/player.bigmutebutton.events.md +17 -0
- package/docs/api/player.bigmutebutton.md +187 -0
- package/docs/api/player.bigmutebutton.name.md +14 -0
- package/docs/api/player.bigmutebutton.render.md +18 -0
- package/docs/api/player.bigmutebutton.supportedversion.md +16 -0
- package/docs/api/player.bigmutebutton.template.md +14 -0
- package/docs/api/player.bigmutebutton.unbindevents.md +18 -0
- package/docs/api/player.bottomgear.attributes.md +17 -0
- package/docs/api/player.bottomgear.bindevents.md +18 -0
- package/docs/api/player.bottomgear.container.md +14 -0
- package/docs/api/player.bottomgear.events.md +16 -0
- package/docs/api/player.bottomgear.hide.md +18 -0
- package/docs/api/player.bottomgear.md +308 -0
- package/docs/api/player.bottomgear.name.md +14 -0
- package/docs/api/player.bottomgear.refresh.md +18 -0
- package/docs/api/player.bottomgear.reload.md +18 -0
- package/docs/api/player.bottomgear.render.md +18 -0
- package/docs/api/player.bottomgear.supportedversion.md +16 -0
- package/docs/api/player.bottomgear.template.md +14 -0
- package/docs/api/player.bottomgear.togglegearmenu.md +18 -0
- package/docs/api/player.bottomgear.unbindevents.md +18 -0
- package/docs/api/player.bottomgear.version.md +14 -0
- package/docs/api/player.clapprnerdstats._constructor_.md +50 -0
- package/docs/api/player.clapprnerdstats.attributes.md +17 -0
- package/docs/api/player.clapprnerdstats.bindevents.md +18 -0
- package/docs/api/player.clapprnerdstats.events.md +18 -0
- package/docs/api/player.clapprnerdstats.md +312 -0
- package/docs/api/player.clapprnerdstats.name.md +14 -0
- package/docs/api/player.clapprnerdstats.playerheight.md +14 -0
- package/docs/api/player.clapprnerdstats.playerwidth.md +14 -0
- package/docs/api/player.clapprnerdstats.render.md +18 -0
- package/docs/api/player.clapprnerdstats.statsboxelem.md +14 -0
- package/docs/api/player.clapprnerdstats.statsboxwidththreshold.md +14 -0
- package/docs/api/player.clapprnerdstats.supportedversion.md +16 -0
- package/docs/api/player.clapprnerdstats.template.md +14 -0
- package/docs/api/player.clapprstats._buildreport.md +18 -0
- package/docs/api/player.clapprstats._constructor_.md +50 -0
- package/docs/api/player.clapprstats._defaultreport.md +52 -0
- package/docs/api/player.clapprstats._playbackname.md +14 -0
- package/docs/api/player.clapprstats._playbacktype.md +14 -0
- package/docs/api/player.clapprstats.bindevents.md +18 -0
- package/docs/api/player.clapprstats.destroy.md +18 -0
- package/docs/api/player.clapprstats.exportmetrics.md +18 -0
- package/docs/api/player.clapprstats.md +333 -0
- package/docs/api/player.clapprstats.name.md +14 -0
- package/docs/api/player.clapprstats.onbitrate.md +52 -0
- package/docs/api/player.clapprstats.onfirstplaying.md +18 -0
- package/docs/api/player.clapprstats.playafterpause.md +18 -0
- package/docs/api/player.clapprstats.setupdatemetrics.md +52 -0
- package/docs/api/player.clapprstats.starttimers.md +18 -0
- package/docs/api/player.clapprstats.stopreporting.md +18 -0
- package/docs/api/player.clapprstats.supportedversion.md +16 -0
- package/docs/api/player.clicktopause.bindevents.md +15 -0
- package/docs/api/player.clicktopause.config.md +11 -0
- package/docs/api/player.clicktopause.md +126 -0
- package/docs/api/player.clicktopause.name.md +11 -0
- package/docs/api/player.clicktopause.supportedversion.md +13 -0
- package/docs/api/player.clipsplugin.attributes.md +13 -0
- package/docs/api/player.clipsplugin.bindevents.md +15 -0
- package/docs/api/player.clipsplugin.gettext.md +49 -0
- package/docs/api/player.clipsplugin.makesvg.md +49 -0
- package/docs/api/player.clipsplugin.md +143 -0
- package/docs/api/player.clipsplugin.name.md +11 -0
- package/docs/api/player.clipsplugin.unbindevents.md +15 -0
- package/docs/api/player.contextmenu._constructor_.md +47 -0
- package/docs/api/player.contextmenu.attributes.md +13 -0
- package/docs/api/player.contextmenu.bindevents.md +15 -0
- package/docs/api/player.contextmenu.destroy.md +15 -0
- package/docs/api/player.contextmenu.events.md +13 -0
- package/docs/api/player.contextmenu.exposeversion.md +14 -0
- package/docs/api/player.contextmenu.label.md +11 -0
- package/docs/api/player.contextmenu.md +298 -0
- package/docs/api/player.contextmenu.mediacontrol.md +11 -0
- package/docs/api/player.contextmenu.name.md +11 -0
- package/docs/api/player.contextmenu.render.md +15 -0
- package/docs/api/player.contextmenu.supportedversion.md +13 -0
- package/docs/api/player.contextmenu.template.md +11 -0
- package/docs/api/player.contextmenu.url.md +11 -0
- package/docs/api/player.disablecontrols.bindevents.md +15 -0
- package/docs/api/player.disablecontrols.container.md +11 -0
- package/docs/api/player.disablecontrols.md +138 -0
- package/docs/api/player.disablecontrols.name.md +11 -0
- package/docs/api/player.disablecontrols.supportedversion.md +13 -0
- package/docs/api/player.disablecontrols.unbindevents.md +15 -0
- package/docs/api/player.dvrcontrols._constructor_.md +47 -0
- package/docs/api/player.dvrcontrols.attributes.md +14 -0
- package/docs/api/player.dvrcontrols.bindevents.md +15 -0
- package/docs/api/player.dvrcontrols.click.md +15 -0
- package/docs/api/player.dvrcontrols.events.md +13 -0
- package/docs/api/player.dvrcontrols.md +246 -0
- package/docs/api/player.dvrcontrols.name.md +11 -0
- package/docs/api/player.dvrcontrols.render.md +15 -0
- package/docs/api/player.dvrcontrols.settingsupdate.md +15 -0
- package/docs/api/player.dvrcontrols.shouldrender.md +15 -0
- package/docs/api/player.dvrcontrols.supportedversion.md +13 -0
- package/docs/api/player.dvrcontrols.template.md +11 -0
- package/docs/api/player.errorscreen.attributes.md +14 -0
- package/docs/api/player.errorscreen.bindevents.md +15 -0
- package/docs/api/player.errorscreen.container.md +11 -0
- package/docs/api/player.errorscreen.hide.md +15 -0
- package/docs/api/player.errorscreen.md +212 -0
- package/docs/api/player.errorscreen.name.md +11 -0
- package/docs/api/player.errorscreen.render.md +15 -0
- package/docs/api/player.errorscreen.show.md +51 -0
- package/docs/api/player.errorscreen.supportedversion.md +13 -0
- package/docs/api/player.errorscreen.template.md +11 -0
- package/docs/api/player.errorscreen.unbindevents.md +15 -0
- package/docs/api/player.favicon._constructor_.md +47 -0
- package/docs/api/player.favicon.bindevents.md +15 -0
- package/docs/api/player.favicon.configure.md +15 -0
- package/docs/api/player.favicon.destroy.md +15 -0
- package/docs/api/player.favicon.disable.md +15 -0
- package/docs/api/player.favicon.md +177 -0
- package/docs/api/player.favicon.name.md +11 -0
- package/docs/api/player.favicon.supportedversion.md +13 -0
- package/docs/api/player.googleanalytics._constructor_.md +47 -0
- package/docs/api/player.googleanalytics.addeventlisteners.md +15 -0
- package/docs/api/player.googleanalytics.embedscript.md +15 -0
- package/docs/api/player.googleanalytics.md +321 -0
- package/docs/api/player.googleanalytics.name.md +11 -0
- package/docs/api/player.googleanalytics.onbufferfull.md +15 -0
- package/docs/api/player.googleanalytics.onbuffering.md +15 -0
- package/docs/api/player.googleanalytics.ondvr.md +49 -0
- package/docs/api/player.googleanalytics.onended.md +15 -0
- package/docs/api/player.googleanalytics.onerror.md +15 -0
- package/docs/api/player.googleanalytics.onfullscreen.md +15 -0
- package/docs/api/player.googleanalytics.onhd.md +49 -0
- package/docs/api/player.googleanalytics.onpause.md +15 -0
- package/docs/api/player.googleanalytics.onplay.md +15 -0
- package/docs/api/player.googleanalytics.onready.md +15 -0
- package/docs/api/player.googleanalytics.onseek.md +15 -0
- package/docs/api/player.googleanalytics.onstop.md +15 -0
- package/docs/api/player.googleanalytics.onvolumechanged.md +15 -0
- package/docs/api/player.googleanalytics.push.md +49 -0
- package/docs/api/player.googleanalytics.supportedversion.md +13 -0
- package/docs/api/player.kibo._constructor_.md +49 -0
- package/docs/api/player.kibo.delegate.md +79 -0
- package/docs/api/player.kibo.down.md +65 -0
- package/docs/api/player.kibo.lastkey.md +51 -0
- package/docs/api/player.kibo.lastmodifiersandkey.md +15 -0
- package/docs/api/player.kibo.md +137 -0
- package/docs/api/player.kibo.off.md +49 -0
- package/docs/api/player.kibo.up.md +65 -0
- package/docs/api/player.levelselector.attributes.md +17 -0
- package/docs/api/player.levelselector.bindevents.md +18 -0
- package/docs/api/player.levelselector.events.md +18 -0
- package/docs/api/player.levelselector.md +217 -0
- package/docs/api/player.levelselector.name.md +14 -0
- package/docs/api/player.levelselector.render.md +18 -0
- package/docs/api/player.levelselector.supportedversion.md +16 -0
- package/docs/api/player.levelselector.version.md +14 -0
- package/docs/api/player.logo._constructor_.md +47 -0
- package/docs/api/player.logo.attributes.md +14 -0
- package/docs/api/player.logo.bindevents.md +15 -0
- package/docs/api/player.logo.md +203 -0
- package/docs/api/player.logo.name.md +11 -0
- package/docs/api/player.logo.render.md +15 -0
- package/docs/api/player.logo.stoplistening.md +15 -0
- package/docs/api/player.logo.supportedversion.md +13 -0
- package/docs/api/player.logo.template.md +11 -0
- package/docs/api/player.md +304 -0
- package/docs/api/player.mediacontrol._constructor_.md +47 -0
- package/docs/api/player.mediacontrol.applybuttonstyle.md +49 -0
- package/docs/api/player.mediacontrol.attributes.md +14 -0
- package/docs/api/player.mediacontrol.bigplaybutton.md +11 -0
- package/docs/api/player.mediacontrol.bindcontainerevents.md +15 -0
- package/docs/api/player.mediacontrol.bindevents.md +15 -0
- package/docs/api/player.mediacontrol.bindkeyandshow.md +63 -0
- package/docs/api/player.mediacontrol.bindkeyevents.md +15 -0
- package/docs/api/player.mediacontrol.configure.md +15 -0
- package/docs/api/player.mediacontrol.container.md +11 -0
- package/docs/api/player.mediacontrol.createcachedelements.md +15 -0
- package/docs/api/player.mediacontrol.destroy.md +15 -0
- package/docs/api/player.mediacontrol.disable.md +15 -0
- package/docs/api/player.mediacontrol.disabled.md +11 -0
- package/docs/api/player.mediacontrol.disabledcontrolbutton.md +15 -0
- package/docs/api/player.mediacontrol.drawdurationandposition.md +15 -0
- package/docs/api/player.mediacontrol.enable.md +15 -0
- package/docs/api/player.mediacontrol.enablecontrolbutton.md +15 -0
- package/docs/api/player.mediacontrol.ended.md +15 -0
- package/docs/api/player.mediacontrol.events.md +37 -0
- package/docs/api/player.mediacontrol.getelement.md +49 -0
- package/docs/api/player.mediacontrol.getexternalinterface.md +18 -0
- package/docs/api/player.mediacontrol.getsettings.md +15 -0
- package/docs/api/player.mediacontrol.getvolumefromuievent.md +49 -0
- package/docs/api/player.mediacontrol.hide.md +51 -0
- package/docs/api/player.mediacontrol.hidecontrollads.md +15 -0
- package/docs/api/player.mediacontrol.hidevolumebar.md +51 -0
- package/docs/api/player.mediacontrol.highdefinitionupdate.md +49 -0
- package/docs/api/player.mediacontrol.initializeicons.md +15 -0
- package/docs/api/player.mediacontrol.isseekenabledforhtml5playback.md +15 -0
- package/docs/api/player.mediacontrol.isvisible.md +15 -0
- package/docs/api/player.mediacontrol.md +1030 -0
- package/docs/api/player.mediacontrol.muted.md +11 -0
- package/docs/api/player.mediacontrol.name.md +11 -0
- package/docs/api/player.mediacontrol.onactivecontainerchanged.md +15 -0
- package/docs/api/player.mediacontrol.onfinishad.md +15 -0
- package/docs/api/player.mediacontrol.onstartad.md +15 -0
- package/docs/api/player.mediacontrol.ontimeupdate.md +49 -0
- package/docs/api/player.mediacontrol.parsecolors.md +15 -0
- package/docs/api/player.mediacontrol.pause.md +15 -0
- package/docs/api/player.mediacontrol.play.md +15 -0
- package/docs/api/player.mediacontrol.playback.md +11 -0
- package/docs/api/player.mediacontrol.render.md +15 -0
- package/docs/api/player.mediacontrol.renderseekbar.md +15 -0
- package/docs/api/player.mediacontrol.resetindicators.md +15 -0
- package/docs/api/player.mediacontrol.resetkeepvisible.md +15 -0
- package/docs/api/player.mediacontrol.resetuserkeepvisible.md +15 -0
- package/docs/api/player.mediacontrol.seek.md +49 -0
- package/docs/api/player.mediacontrol.seekrelative.md +49 -0
- package/docs/api/player.mediacontrol.setcliptext.md +49 -0
- package/docs/api/player.mediacontrol.setkeepvisible.md +15 -0
- package/docs/api/player.mediacontrol.setmuted.md +49 -0
- package/docs/api/player.mediacontrol.setseekpercentage.md +49 -0
- package/docs/api/player.mediacontrol.setsvgmask.md +49 -0
- package/docs/api/player.mediacontrol.setuserkeepvisible.md +15 -0
- package/docs/api/player.mediacontrol.setvolume.md +65 -0
- package/docs/api/player.mediacontrol.show.md +51 -0
- package/docs/api/player.mediacontrol.showvolumebar.md +15 -0
- package/docs/api/player.mediacontrol.startseekdrag.md +49 -0
- package/docs/api/player.mediacontrol.startvolumedrag.md +49 -0
- package/docs/api/player.mediacontrol.stop.md +15 -0
- package/docs/api/player.mediacontrol.stopdrag.md +11 -0
- package/docs/api/player.mediacontrol.supportedversion.md +13 -0
- package/docs/api/player.mediacontrol.template.md +11 -0
- package/docs/api/player.mediacontrol.togglefullscreen.md +15 -0
- package/docs/api/player.mediacontrol.togglemute.md +15 -0
- package/docs/api/player.mediacontrol.toggleplaypause.md +15 -0
- package/docs/api/player.mediacontrol.toggleplaystop.md +15 -0
- package/docs/api/player.mediacontrol.unbindkeyevents.md +15 -0
- package/docs/api/player.mediacontrol.updatecursorstyle.md +49 -0
- package/docs/api/player.mediacontrol.updatedrag.md +11 -0
- package/docs/api/player.mediacontrol.updateprogressbar.md +49 -0
- package/docs/api/player.mediacontrol.volume.md +11 -0
- package/docs/api/player.multicamera._constructor_.md +47 -0
- package/docs/api/player.multicamera.activebyid.md +63 -0
- package/docs/api/player.multicamera.attributes.md +14 -0
- package/docs/api/player.multicamera.bindevents.md +15 -0
- package/docs/api/player.multicamera.events.md +14 -0
- package/docs/api/player.multicamera.getcameraslist.md +15 -0
- package/docs/api/player.multicamera.getcurrentcamera.md +15 -0
- package/docs/api/player.multicamera.md +279 -0
- package/docs/api/player.multicamera.name.md +11 -0
- package/docs/api/player.multicamera.render.md +15 -0
- package/docs/api/player.multicamera.supportedversion.md +13 -0
- package/docs/api/player.multicamera.template.md +11 -0
- package/docs/api/player.multicamera.unbindevents.md +15 -0
- package/docs/api/player.multicamera.version.md +11 -0
- package/docs/api/player.pictureinpicture.bindevents.md +15 -0
- package/docs/api/player.pictureinpicture.events.md +13 -0
- package/docs/api/player.pictureinpicture.exitpictureinpicture.md +15 -0
- package/docs/api/player.pictureinpicture.md +214 -0
- package/docs/api/player.pictureinpicture.name.md +11 -0
- package/docs/api/player.pictureinpicture.render.md +15 -0
- package/docs/api/player.pictureinpicture.requestpictureinpicture.md +15 -0
- package/docs/api/player.pictureinpicture.supportedversion.md +13 -0
- package/docs/api/player.pictureinpicture.togglepictureinpicture.md +15 -0
- package/docs/api/player.pictureinpicture.version.md +11 -0
- package/docs/api/player.pictureinpicture.videoelement.md +11 -0
- package/docs/api/player.playbackrate.attributes.md +14 -0
- package/docs/api/player.playbackrate.bindevents.md +15 -0
- package/docs/api/player.playbackrate.events.md +15 -0
- package/docs/api/player.playbackrate.gettitle.md +15 -0
- package/docs/api/player.playbackrate.goback.md +15 -0
- package/docs/api/player.playbackrate.highlightcurrentrate.md +15 -0
- package/docs/api/player.playbackrate.md +332 -0
- package/docs/api/player.playbackrate.name.md +11 -0
- package/docs/api/player.playbackrate.onfinishad.md +15 -0
- package/docs/api/player.playbackrate.onplay.md +15 -0
- package/docs/api/player.playbackrate.onrateselect.md +49 -0
- package/docs/api/player.playbackrate.onshowmenu.md +15 -0
- package/docs/api/player.playbackrate.onstartad.md +15 -0
- package/docs/api/player.playbackrate.onstop.md +15 -0
- package/docs/api/player.playbackrate.reload.md +15 -0
- package/docs/api/player.playbackrate.render.md +15 -0
- package/docs/api/player.playbackrate.setselectedrate.md +49 -0
- package/docs/api/player.playbackrate.supportedversion.md +13 -0
- package/docs/api/player.playbackrate.template.md +11 -0
- package/docs/api/player.playbackrate.unbindevents.md +15 -0
- package/docs/api/player.playbackrate.updateplaybackrate.md +49 -0
- package/docs/api/player.pluginsettings.md +13 -0
- package/docs/api/player.poster.attributes.md +14 -0
- package/docs/api/player.poster.bindevents.md +15 -0
- package/docs/api/player.poster.destroy.md +15 -0
- package/docs/api/player.poster.disable.md +15 -0
- package/docs/api/player.poster.enable.md +15 -0
- package/docs/api/player.poster.events.md +13 -0
- package/docs/api/player.poster.md +250 -0
- package/docs/api/player.poster.name.md +11 -0
- package/docs/api/player.poster.render.md +15 -0
- package/docs/api/player.poster.shouldrender.md +11 -0
- package/docs/api/player.poster.showonvideoend.md +11 -0
- package/docs/api/player.poster.supportedversion.md +13 -0
- package/docs/api/player.poster.template.md +11 -0
- package/docs/api/player.seektime.attributes.md +14 -0
- package/docs/api/player.seektime.bindevents.md +15 -0
- package/docs/api/player.seektime.durationshown.md +11 -0
- package/docs/api/player.seektime.getseektime.md +17 -0
- package/docs/api/player.seektime.islivestreamwithdvr.md +11 -0
- package/docs/api/player.seektime.md +269 -0
- package/docs/api/player.seektime.mediacontrol.md +11 -0
- package/docs/api/player.seektime.mediacontrolcontainer.md +11 -0
- package/docs/api/player.seektime.name.md +11 -0
- package/docs/api/player.seektime.render.md +15 -0
- package/docs/api/player.seektime.shouldbevisible.md +15 -0
- package/docs/api/player.seektime.supportedversion.md +13 -0
- package/docs/api/player.seektime.template.md +11 -0
- package/docs/api/player.seektime.update.md +15 -0
- package/docs/api/player.share.attributes.md +14 -0
- package/docs/api/player.share.bindevents.md +15 -0
- package/docs/api/player.share.canshowshare.md +15 -0
- package/docs/api/player.share.events.md +18 -0
- package/docs/api/player.share.hideshare.md +15 -0
- package/docs/api/player.share.initializeicons.md +15 -0
- package/docs/api/player.share.md +308 -0
- package/docs/api/player.share.name.md +11 -0
- package/docs/api/player.share.onshareembedclick.md +15 -0
- package/docs/api/player.share.onsharefb.md +15 -0
- package/docs/api/player.share.onsharehide.md +15 -0
- package/docs/api/player.share.onsharelinkclick.md +15 -0
- package/docs/api/player.share.onshareshow.md +15 -0
- package/docs/api/player.share.onsharetw.md +15 -0
- package/docs/api/player.share.render.md +15 -0
- package/docs/api/player.share.showshare.md +15 -0
- package/docs/api/player.share.supportedversion.md +13 -0
- package/docs/api/player.share.template.md +11 -0
- package/docs/api/player.share.unbindevents.md +15 -0
- package/docs/api/player.skiptime.attributes.md +14 -0
- package/docs/api/player.skiptime.bindevents.md +15 -0
- package/docs/api/player.skiptime.container.md +11 -0
- package/docs/api/player.skiptime.events.md +15 -0
- package/docs/api/player.skiptime.handlerewindclicks.md +15 -0
- package/docs/api/player.skiptime.md +255 -0
- package/docs/api/player.skiptime.name.md +11 -0
- package/docs/api/player.skiptime.render.md +15 -0
- package/docs/api/player.skiptime.setback.md +15 -0
- package/docs/api/player.skiptime.setforward.md +15 -0
- package/docs/api/player.skiptime.setmidclick.md +15 -0
- package/docs/api/player.skiptime.supportedversion.md +13 -0
- package/docs/api/player.skiptime.template.md +11 -0
- package/docs/api/player.skiptime.togglefullscreen.md +15 -0
- package/docs/api/player.sourcecontroller._constructor_.md +50 -0
- package/docs/api/player.sourcecontroller.md +156 -0
- package/docs/api/player.sourcecontroller.name.md +14 -0
- package/docs/api/player.sourcecontroller.supportedversion.md +16 -0
- package/docs/api/player.sourcecontroller.version.md +14 -0
- package/docs/api/player.spinnerthreebounce._constructor_.md +47 -0
- package/docs/api/player.spinnerthreebounce.attributes.md +14 -0
- package/docs/api/player.spinnerthreebounce.hide.md +15 -0
- package/docs/api/player.spinnerthreebounce.md +184 -0
- package/docs/api/player.spinnerthreebounce.name.md +11 -0
- package/docs/api/player.spinnerthreebounce.render.md +15 -0
- package/docs/api/player.spinnerthreebounce.show.md +51 -0
- package/docs/api/player.spinnerthreebounce.supportedversion.md +13 -0
- package/docs/api/player.statistics._constructor_.md +47 -0
- package/docs/api/player.statistics.bindevents.md +15 -0
- package/docs/api/player.statistics.md +141 -0
- package/docs/api/player.statistics.name.md +11 -0
- package/docs/api/player.statistics.supportedversion.md +13 -0
- package/docs/api/player.subtitles.attributes.md +14 -0
- package/docs/api/player.subtitles.bindevents.md +15 -0
- package/docs/api/player.subtitles.buttonelement.md +15 -0
- package/docs/api/player.subtitles.events.md +14 -0
- package/docs/api/player.subtitles.hide.md +15 -0
- package/docs/api/player.subtitles.levelelement.md +51 -0
- package/docs/api/player.subtitles.md +343 -0
- package/docs/api/player.subtitles.name.md +11 -0
- package/docs/api/player.subtitles.preselectedlanguage.md +11 -0
- package/docs/api/player.subtitles.reload.md +15 -0
- package/docs/api/player.subtitles.render.md +15 -0
- package/docs/api/player.subtitles.selectsubtitles.md +15 -0
- package/docs/api/player.subtitles.show.md +15 -0
- package/docs/api/player.subtitles.startlevelswitch.md +15 -0
- package/docs/api/player.subtitles.stoplevelswitch.md +15 -0
- package/docs/api/player.subtitles.supportedversion.md +13 -0
- package/docs/api/player.subtitles.template.md +11 -0
- package/docs/api/player.subtitles.templatestring.md +11 -0
- package/docs/api/player.subtitles.unbindevents.md +15 -0
- package/docs/api/player.subtitles.version.md +11 -0
- package/docs/api/player.thumbnails.attributes.md +13 -0
- package/docs/api/player.thumbnails.bindevents.md +15 -0
- package/docs/api/player.thumbnails.md +157 -0
- package/docs/api/player.thumbnails.name.md +11 -0
- package/docs/api/player.thumbnails.settext.md +49 -0
- package/docs/api/player.thumbnails.supportedversion.md +13 -0
- package/docs/api/player.thumbnails.template.md +11 -0
- package/docs/api/player.volumefade.bindevents.md +18 -0
- package/docs/api/player.volumefade.md +110 -0
- package/docs/api/player.volumefade.name.md +14 -0
- package/docs/api/player.volumefade.unbindevents.md +18 -0
- package/docs/api/player.volumefadeevents.md +45 -0
- package/lib/index.core.d.ts +0 -9
- package/lib/index.core.d.ts.map +1 -1
- package/lib/index.core.js +0 -9
- package/lib/index.d.ts +9 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.plugins.d.ts +0 -5
- package/lib/index.plugins.d.ts.map +1 -1
- package/lib/index.plugins.js +0 -5
- package/lib/internal.types.d.ts +1 -1
- package/lib/internal.types.d.ts.map +1 -1
- package/lib/plugins/audio-selector/AudioSelector.d.ts +3 -0
- package/lib/plugins/audio-selector/AudioSelector.d.ts.map +1 -1
- package/lib/plugins/audio-selector/AudioSelector.js +3 -0
- package/lib/plugins/big-mute-button/BigMuteButton.d.ts +3 -0
- package/lib/plugins/big-mute-button/BigMuteButton.d.ts.map +1 -1
- package/lib/plugins/big-mute-button/BigMuteButton.js +3 -0
- package/lib/plugins/bottom-gear/BottomGear.d.ts +3 -0
- package/lib/plugins/bottom-gear/BottomGear.d.ts.map +1 -1
- package/lib/plugins/bottom-gear/BottomGear.js +3 -0
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.d.ts +3 -0
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.d.ts.map +1 -1
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.js +3 -0
- package/lib/plugins/clappr-stats/ClapprStats.d.ts +4 -1
- package/lib/plugins/clappr-stats/ClapprStats.d.ts.map +1 -1
- package/lib/plugins/clappr-stats/ClapprStats.js +3 -0
- package/lib/plugins/level-selector/LevelSelector.d.ts +0 -3
- package/lib/plugins/level-selector/LevelSelector.d.ts.map +1 -1
- package/lib/plugins/level-selector/LevelSelector.js +2 -10
- package/lib/plugins/media-control/MediaControl.d.ts +1 -1
- package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
- package/lib/plugins/source-controller/SourceController.js +1 -1
- package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.js +1 -1
- package/lib/plugins/thumbnails/Thumbnails.d.ts +1 -1
- package/lib/plugins/thumbnails/Thumbnails.d.ts.map +1 -1
- package/lib/plugins/volume-fade/VolumeFade.d.ts +3 -0
- package/lib/plugins/volume-fade/VolumeFade.d.ts.map +1 -1
- package/lib/plugins/volume-fade/VolumeFade.js +3 -0
- package/lib/tsdoc-metadata.json +11 -0
- package/package.json +1 -1
- package/rollup.config.js +1 -1
- package/src/index.core.ts +0 -10
- package/src/index.plugins.ts +0 -6
- package/src/index.ts +9 -0
- package/src/internal.types.ts +1 -1
- package/src/plugins/audio-selector/AudioSelector.ts +3 -0
- package/src/plugins/big-mute-button/BigMuteButton.ts +3 -0
- package/src/plugins/bottom-gear/BottomGear.ts +3 -0
- package/src/plugins/clappr-nerd-stats/ClapprNerdStats.ts +3 -0
- package/src/plugins/clappr-stats/ClapprStats.ts +4 -1
- package/src/plugins/clips/Clips.ts +1 -1
- package/src/plugins/level-selector/LevelSelector.ts +4 -14
- package/src/plugins/level-selector/__tests__/LevelSelector.test.ts +192 -37
- package/src/plugins/level-selector/__tests__/__snapshots__/LevelSelector.test.ts.snap +154 -1
- package/src/plugins/media-control/MediaControl.ts +1 -1
- package/src/plugins/poster/Poster.ts +1 -1
- package/src/plugins/seek-time/SeekTime.ts +1 -1
- package/src/plugins/source-controller/SourceController.ts +1 -1
- package/src/plugins/source-controller/__tests__/SourceController.test.ts +2 -1
- package/src/plugins/spinner-three-bounce/SpinnerThreeBounce.ts +1 -1
- package/src/plugins/statistics/Statistics.ts +1 -1
- package/src/plugins/subtitles/Subtitles.ts +1 -1
- package/src/plugins/thumbnails/Thumbnails.ts +1 -1
- package/src/plugins/vast-ads/VastAds.ts +1 -1
- package/src/plugins/volume-fade/VolumeFade.ts +3 -0
- package/src/typings/vitest.d.ts +11 -0
- package/temp/player.api.json +14825 -1304
- package/tsconfig.tsbuildinfo +1 -1
- package/vitest.config.ts +9 -0
package/dist/player.d.ts
ADDED
|
@@ -0,0 +1,1923 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Video player for the Gcore streaming platform
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* This package provides a video player for the Gcore streaming platform.
|
|
6
|
+
* It is built on top of the Clappr library and provides a framework for building custom integrations.
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { $ } from '@clappr/core';
|
|
12
|
+
import { AudioTrackLoadedData } from 'hls.js';
|
|
13
|
+
import { AudioTrackSwitchedData } from 'hls.js';
|
|
14
|
+
import { Container } from '@clappr/core';
|
|
15
|
+
import { ContainerPlugin } from '@clappr/core';
|
|
16
|
+
import { Core } from '@clappr/core';
|
|
17
|
+
import { CorePlugin } from '@clappr/core';
|
|
18
|
+
import { Events } from 'hls.js';
|
|
19
|
+
import { Logger } from '@gcorevideo/utils';
|
|
20
|
+
import { LogTracer } from '@gcorevideo/utils';
|
|
21
|
+
import { Player as Player_2 } from '@clappr/core';
|
|
22
|
+
import { reportError as reportError_2 } from '@gcorevideo/utils';
|
|
23
|
+
import { SentryTracer } from '@gcorevideo/utils';
|
|
24
|
+
import { setTracer } from '@gcorevideo/utils';
|
|
25
|
+
import { trace } from '@gcorevideo/utils';
|
|
26
|
+
import { UIContainerPlugin } from '@clappr/core';
|
|
27
|
+
import { UICorePlugin } from '@clappr/core';
|
|
28
|
+
import { UIObject } from '@clappr/core';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @beta
|
|
32
|
+
*/
|
|
33
|
+
export declare class AudioSelector extends UICorePlugin {
|
|
34
|
+
private selectedTrackId;
|
|
35
|
+
private currentTrack;
|
|
36
|
+
private tracks;
|
|
37
|
+
get name(): string;
|
|
38
|
+
get supportedVersion(): {
|
|
39
|
+
min: string;
|
|
40
|
+
};
|
|
41
|
+
static get version(): string;
|
|
42
|
+
get template(): any;
|
|
43
|
+
get attributes(): {
|
|
44
|
+
class: string;
|
|
45
|
+
'data-track-selector': string;
|
|
46
|
+
};
|
|
47
|
+
get events(): {
|
|
48
|
+
'click [data-track-selector-select]': string;
|
|
49
|
+
'click [data-track-selector-button]': string;
|
|
50
|
+
};
|
|
51
|
+
bindEvents(): void;
|
|
52
|
+
unBindEvents(): void;
|
|
53
|
+
private bindPlaybackEvents;
|
|
54
|
+
private setupAudioTrackListeners;
|
|
55
|
+
private onStop;
|
|
56
|
+
reload(): void;
|
|
57
|
+
private shouldRender;
|
|
58
|
+
render(): this;
|
|
59
|
+
private fillTracks;
|
|
60
|
+
private findTrackBy;
|
|
61
|
+
private onTrackSelect;
|
|
62
|
+
private setIndexTrack;
|
|
63
|
+
onShowLevelSelectMenu(): void;
|
|
64
|
+
hideSelectTrackMenu(): void;
|
|
65
|
+
toggleContextMenu(): void;
|
|
66
|
+
private buttonElement;
|
|
67
|
+
private buttonElementText;
|
|
68
|
+
private trackElement;
|
|
69
|
+
private getTitle;
|
|
70
|
+
startTrackSwitch(): void;
|
|
71
|
+
private updateText;
|
|
72
|
+
updateCurrentTrack(e: Events.AUDIO_TRACK_SWITCHED, info: AudioTrackSwitchedData | AudioTrackLoadedData): void;
|
|
73
|
+
private updateCurrentTrackW3C;
|
|
74
|
+
private setCurrentTrack;
|
|
75
|
+
highlightCurrentTrack(): void;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @beta
|
|
80
|
+
*/
|
|
81
|
+
export declare class BigMuteButton extends UICorePlugin {
|
|
82
|
+
private isBigMuteButtonHidden;
|
|
83
|
+
private _adIsPlaying;
|
|
84
|
+
private $bigMuteBtnContainer;
|
|
85
|
+
private $bigMuteButton;
|
|
86
|
+
get name(): string;
|
|
87
|
+
get supportedVersion(): {
|
|
88
|
+
min: string;
|
|
89
|
+
};
|
|
90
|
+
get template(): any;
|
|
91
|
+
get events(): {
|
|
92
|
+
'click .big-mute-icon': string;
|
|
93
|
+
'click .big-mute-icon-wrapper': string;
|
|
94
|
+
};
|
|
95
|
+
bindEvents(): void;
|
|
96
|
+
unBindEvents(): void;
|
|
97
|
+
private onCoreReady;
|
|
98
|
+
private onContainerVolume;
|
|
99
|
+
private onContainerStart;
|
|
100
|
+
private onPlaybackEnded;
|
|
101
|
+
private mediaControlRendered;
|
|
102
|
+
private onStartAd;
|
|
103
|
+
private onFinishAd;
|
|
104
|
+
private shouldRender;
|
|
105
|
+
render(): this;
|
|
106
|
+
private hideBigMuteBtn;
|
|
107
|
+
private showBigMuteBtn;
|
|
108
|
+
private destroyBigMuteBtn;
|
|
109
|
+
private handleBigMuteBtnClick;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare type BitrateTrackRecord = {
|
|
113
|
+
start: number;
|
|
114
|
+
end?: number;
|
|
115
|
+
time?: number;
|
|
116
|
+
bitrate: number;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @beta
|
|
121
|
+
*/
|
|
122
|
+
export declare class BottomGear extends UICorePlugin {
|
|
123
|
+
private isHd;
|
|
124
|
+
get name(): string;
|
|
125
|
+
get supportedVersion(): {
|
|
126
|
+
min: string;
|
|
127
|
+
};
|
|
128
|
+
static get version(): string;
|
|
129
|
+
get template(): any;
|
|
130
|
+
get attributes(): {
|
|
131
|
+
class: string;
|
|
132
|
+
'data-track-selector': string;
|
|
133
|
+
};
|
|
134
|
+
get events(): {
|
|
135
|
+
'click .button-gear': string;
|
|
136
|
+
};
|
|
137
|
+
get container(): any;
|
|
138
|
+
bindEvents(): void;
|
|
139
|
+
unBindEvents(): void;
|
|
140
|
+
private onActiveContainerChanged;
|
|
141
|
+
private bindContainerEvents;
|
|
142
|
+
reload(): void;
|
|
143
|
+
private highDefinitionUpdate;
|
|
144
|
+
render(): this;
|
|
145
|
+
refresh(): void;
|
|
146
|
+
toggleGearMenu(): void;
|
|
147
|
+
hide(): void;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @beta
|
|
152
|
+
*/
|
|
153
|
+
export declare class ClapprNerdStats extends UICorePlugin {
|
|
154
|
+
private container;
|
|
155
|
+
private customMetrics;
|
|
156
|
+
private metrics;
|
|
157
|
+
private showing;
|
|
158
|
+
private shortcut;
|
|
159
|
+
private iconPosition;
|
|
160
|
+
get name(): string;
|
|
161
|
+
get supportedVersion(): {
|
|
162
|
+
min: string;
|
|
163
|
+
};
|
|
164
|
+
get template(): any;
|
|
165
|
+
get attributes(): {
|
|
166
|
+
'data-clappr-nerd-stats': string;
|
|
167
|
+
class: string;
|
|
168
|
+
};
|
|
169
|
+
get events(): {
|
|
170
|
+
'click [data-show-stats-button]': string;
|
|
171
|
+
'click [data-close-button]': string;
|
|
172
|
+
'click [data-refresh-button]': string;
|
|
173
|
+
};
|
|
174
|
+
get statsBoxElem(): string;
|
|
175
|
+
get statsBoxWidthThreshold(): number;
|
|
176
|
+
get playerWidth(): any;
|
|
177
|
+
get playerHeight(): any;
|
|
178
|
+
constructor(core: Core);
|
|
179
|
+
bindEvents(): void;
|
|
180
|
+
private init;
|
|
181
|
+
private showOrHide;
|
|
182
|
+
private show;
|
|
183
|
+
private hide;
|
|
184
|
+
private onPlayerResize;
|
|
185
|
+
private addGeneralMetrics;
|
|
186
|
+
private addCustomMetrics;
|
|
187
|
+
private updateMetrics;
|
|
188
|
+
private setStatsBoxSize;
|
|
189
|
+
render(): this;
|
|
190
|
+
private addToBottomGear;
|
|
191
|
+
private clearCustomMetrics;
|
|
192
|
+
private refreshSpeedTest;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @beta
|
|
197
|
+
*/
|
|
198
|
+
export declare class ClapprStats extends ContainerPlugin {
|
|
199
|
+
private bwMeasureCount;
|
|
200
|
+
private intervalId;
|
|
201
|
+
private lastDecodedFramesCount;
|
|
202
|
+
private metrics;
|
|
203
|
+
private completion;
|
|
204
|
+
private _onReport;
|
|
205
|
+
private runBandwidthTestEvery;
|
|
206
|
+
private runEach;
|
|
207
|
+
private timers;
|
|
208
|
+
private updateFn;
|
|
209
|
+
private urisToMeasureBandwidth;
|
|
210
|
+
private uriToMeasureLatency;
|
|
211
|
+
get name(): string;
|
|
212
|
+
get supportedVersion(): {
|
|
213
|
+
min: string;
|
|
214
|
+
};
|
|
215
|
+
get _playbackName(): string;
|
|
216
|
+
get _playbackType(): any;
|
|
217
|
+
private _now;
|
|
218
|
+
private _inc;
|
|
219
|
+
private start;
|
|
220
|
+
private _stop;
|
|
221
|
+
setUpdateMetrics(updateMetricsFn: MetricsUpdateFn): void;
|
|
222
|
+
_defaultReport(metrics: Metrics): void;
|
|
223
|
+
constructor(container: Container);
|
|
224
|
+
bindEvents(): void;
|
|
225
|
+
destroy(): void;
|
|
226
|
+
exportMetrics(): Metrics;
|
|
227
|
+
onBitrate(newBitrate: QualityLevel): void;
|
|
228
|
+
stopReporting(): void;
|
|
229
|
+
startTimers(): void;
|
|
230
|
+
onFirstPlaying(): void;
|
|
231
|
+
playAfterPause(): void;
|
|
232
|
+
private onPlay;
|
|
233
|
+
private onPause;
|
|
234
|
+
private onSeek;
|
|
235
|
+
private onTimeUpdate;
|
|
236
|
+
private onContainerUpdateWhilePlaying;
|
|
237
|
+
private onBuffering;
|
|
238
|
+
private onBufferfull;
|
|
239
|
+
private onProgress;
|
|
240
|
+
private _newMetrics;
|
|
241
|
+
private _onCompletion;
|
|
242
|
+
_buildReport(): void;
|
|
243
|
+
private _fetchFPS;
|
|
244
|
+
private _calculateBitrates;
|
|
245
|
+
private _calculatePercentages;
|
|
246
|
+
private _html5FetchFPS;
|
|
247
|
+
private _measureLatency;
|
|
248
|
+
private _measureBandwidth;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export declare class ClickToPause extends ContainerPlugin {
|
|
252
|
+
private pointerEnabled;
|
|
253
|
+
private timer;
|
|
254
|
+
get name(): string;
|
|
255
|
+
get supportedVersion(): {
|
|
256
|
+
min: string;
|
|
257
|
+
};
|
|
258
|
+
get config(): any;
|
|
259
|
+
bindEvents(): void;
|
|
260
|
+
private click;
|
|
261
|
+
private settingsUpdate;
|
|
262
|
+
private togglePlay;
|
|
263
|
+
private clearTimer;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export declare class ClipsPlugin extends UICorePlugin {
|
|
267
|
+
private clips;
|
|
268
|
+
private duration;
|
|
269
|
+
private durationGetting;
|
|
270
|
+
private _oldContainer;
|
|
271
|
+
get name(): string;
|
|
272
|
+
get attributes(): {
|
|
273
|
+
class: string;
|
|
274
|
+
};
|
|
275
|
+
bindEvents(): void;
|
|
276
|
+
private _onCoreReady;
|
|
277
|
+
unbindEvents(): void;
|
|
278
|
+
private _onMediaControlContainerChanged;
|
|
279
|
+
private playerResize;
|
|
280
|
+
private _bindContainerEvents;
|
|
281
|
+
private onTimeUpdate;
|
|
282
|
+
private parseClips;
|
|
283
|
+
getText(time: number): string;
|
|
284
|
+
makeSvg(duration: number): void;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Dimensions of the player container DOM element.
|
|
289
|
+
* @beta
|
|
290
|
+
*/
|
|
291
|
+
export declare type ContainerSize = {
|
|
292
|
+
width: number;
|
|
293
|
+
height: number;
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
export declare class ContextMenu extends UICorePlugin {
|
|
297
|
+
private _label;
|
|
298
|
+
private _url;
|
|
299
|
+
private container;
|
|
300
|
+
private menuOptions;
|
|
301
|
+
get name(): string;
|
|
302
|
+
get supportedVersion(): {
|
|
303
|
+
min: string;
|
|
304
|
+
};
|
|
305
|
+
get attributes(): {
|
|
306
|
+
class: string;
|
|
307
|
+
};
|
|
308
|
+
get mediaControl(): any;
|
|
309
|
+
get template(): any;
|
|
310
|
+
get label(): string;
|
|
311
|
+
get url(): string;
|
|
312
|
+
get exposeVersion(): {
|
|
313
|
+
label: string;
|
|
314
|
+
name: string;
|
|
315
|
+
};
|
|
316
|
+
get events(): {
|
|
317
|
+
'click [data-version]': string;
|
|
318
|
+
};
|
|
319
|
+
constructor(core: Core);
|
|
320
|
+
bindEvents(): void;
|
|
321
|
+
destroy(): UIObject;
|
|
322
|
+
private containerChanged;
|
|
323
|
+
private toggleContextMenu;
|
|
324
|
+
private show;
|
|
325
|
+
private hide;
|
|
326
|
+
private onOpenMainPage;
|
|
327
|
+
render(): this;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* A plain JS object that must conform to the DASH.js settings schema.
|
|
332
|
+
* @beta
|
|
333
|
+
* {@link https://cdn.dashjs.org/latest/jsdoc/module-Settings.html | DASH.js settings}
|
|
334
|
+
*/
|
|
335
|
+
export declare type DashSettings = Record<string, unknown>;
|
|
336
|
+
|
|
337
|
+
export declare class DisableControls extends UICorePlugin {
|
|
338
|
+
get name(): string;
|
|
339
|
+
get container(): any;
|
|
340
|
+
get supportedVersion(): {
|
|
341
|
+
min: string;
|
|
342
|
+
};
|
|
343
|
+
bindEvents(): void;
|
|
344
|
+
unbindEvents(): void;
|
|
345
|
+
private setDisableStyles;
|
|
346
|
+
private onCoreReady;
|
|
347
|
+
private enableControls;
|
|
348
|
+
private disableAllControls;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export declare class DvrControls extends UICorePlugin {
|
|
352
|
+
get template(): any;
|
|
353
|
+
get name(): string;
|
|
354
|
+
get supportedVersion(): {
|
|
355
|
+
min: string;
|
|
356
|
+
};
|
|
357
|
+
get events(): {
|
|
358
|
+
'click .live-button': string;
|
|
359
|
+
};
|
|
360
|
+
get attributes(): {
|
|
361
|
+
class: string;
|
|
362
|
+
'data-dvr-controls': string;
|
|
363
|
+
};
|
|
364
|
+
constructor(core: Core);
|
|
365
|
+
bindEvents(): void;
|
|
366
|
+
private bindCoreEvents;
|
|
367
|
+
private bindContainerEvents;
|
|
368
|
+
private containerChanged;
|
|
369
|
+
private dvrChanged;
|
|
370
|
+
click(): void;
|
|
371
|
+
settingsUpdate(): void;
|
|
372
|
+
shouldRender(): boolean;
|
|
373
|
+
render(): this;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Levels of severity of errors. Non-fatal errors usually can be ignored.
|
|
378
|
+
* @beta
|
|
379
|
+
*/
|
|
380
|
+
export declare type ErrorLevel = 'FATAL' | 'WARN' | 'INFO';
|
|
381
|
+
|
|
382
|
+
export declare class ErrorScreen extends UICorePlugin {
|
|
383
|
+
private _retry;
|
|
384
|
+
private err;
|
|
385
|
+
private hideValue;
|
|
386
|
+
private timeout;
|
|
387
|
+
private reloadButton;
|
|
388
|
+
get name(): string;
|
|
389
|
+
get supportedVersion(): {
|
|
390
|
+
min: string;
|
|
391
|
+
};
|
|
392
|
+
get template(): any;
|
|
393
|
+
get container(): any;
|
|
394
|
+
get attributes(): {
|
|
395
|
+
class: string;
|
|
396
|
+
'data-error-screen': string;
|
|
397
|
+
};
|
|
398
|
+
bindEvents(): void;
|
|
399
|
+
private onCoreReady;
|
|
400
|
+
private onPlay;
|
|
401
|
+
private destroyError;
|
|
402
|
+
unBindEvents(): void;
|
|
403
|
+
private bindReload;
|
|
404
|
+
private reload;
|
|
405
|
+
private unbindReload;
|
|
406
|
+
private onContainerChanged;
|
|
407
|
+
private onStartAd;
|
|
408
|
+
private onFinishAd;
|
|
409
|
+
private onError;
|
|
410
|
+
private drying;
|
|
411
|
+
show(err?: PresentationalError): void;
|
|
412
|
+
hide(): void;
|
|
413
|
+
render(): this;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export declare class Favicon extends CorePlugin {
|
|
417
|
+
private _container;
|
|
418
|
+
private oldIcon;
|
|
419
|
+
private playIcon;
|
|
420
|
+
private pauseIcon;
|
|
421
|
+
private stopIcon;
|
|
422
|
+
get name(): string;
|
|
423
|
+
get supportedVersion(): {
|
|
424
|
+
min: string;
|
|
425
|
+
};
|
|
426
|
+
constructor(core: Core);
|
|
427
|
+
configure(): void;
|
|
428
|
+
bindEvents(): void;
|
|
429
|
+
private containerChanged;
|
|
430
|
+
disable(): void;
|
|
431
|
+
destroy(): void;
|
|
432
|
+
private createIcon;
|
|
433
|
+
private setPlayIcon;
|
|
434
|
+
private setPauseIcon;
|
|
435
|
+
private resetIcon;
|
|
436
|
+
private changeIcon;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export declare class GoogleAnalytics extends ContainerPlugin {
|
|
440
|
+
private account;
|
|
441
|
+
private trackerName;
|
|
442
|
+
private domainName;
|
|
443
|
+
private currentHDState;
|
|
444
|
+
get name(): string;
|
|
445
|
+
get supportedVersion(): {
|
|
446
|
+
min: string;
|
|
447
|
+
};
|
|
448
|
+
constructor(container: Container);
|
|
449
|
+
embedScript(): void;
|
|
450
|
+
addEventListeners(): void;
|
|
451
|
+
onReady(): void;
|
|
452
|
+
onPlay(): void;
|
|
453
|
+
onStop(): void;
|
|
454
|
+
onEnded(): void;
|
|
455
|
+
onBuffering(): void;
|
|
456
|
+
onBufferFull(): void;
|
|
457
|
+
onError(): void;
|
|
458
|
+
onHD(isHD: boolean): void;
|
|
459
|
+
private onPlaybackChanged;
|
|
460
|
+
onDVR(dvrInUse: boolean): void;
|
|
461
|
+
onPause(): void;
|
|
462
|
+
onSeek(): void;
|
|
463
|
+
onVolumeChanged(): void;
|
|
464
|
+
onFullscreen(): void;
|
|
465
|
+
push(array: string[]): void;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
declare type KeyboardEventHandler = (e: KeyboardEvent) => boolean | undefined;
|
|
469
|
+
|
|
470
|
+
export declare class Kibo {
|
|
471
|
+
private element;
|
|
472
|
+
private lastKeyCode;
|
|
473
|
+
private lastModifiers;
|
|
474
|
+
private keysDown;
|
|
475
|
+
private keysUp;
|
|
476
|
+
private downHandler;
|
|
477
|
+
private upHandler;
|
|
478
|
+
constructor(element?: Document | Element);
|
|
479
|
+
private handler;
|
|
480
|
+
private registerKeys;
|
|
481
|
+
private unregisterKeys;
|
|
482
|
+
off(keys: string | string[]): Kibo;
|
|
483
|
+
delegate(upOrDown: UpDown, keys: string | string[], func?: KeyboardEventHandler | null): Kibo;
|
|
484
|
+
down(keys: string | string[], func?: KeyboardEventHandler | null): Kibo;
|
|
485
|
+
up(keys: string | string[], func?: KeyboardEventHandler | null): Kibo;
|
|
486
|
+
lastKey(modifier?: string): string | boolean;
|
|
487
|
+
lastModifiersAndKey(): string;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* An ISO 639-1 language code.
|
|
492
|
+
* @example `pt`
|
|
493
|
+
* @beta
|
|
494
|
+
*/
|
|
495
|
+
export declare type LangTag = string;
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Allows to control the quality level of the playback.
|
|
499
|
+
* @beta
|
|
500
|
+
*
|
|
501
|
+
* @remarks
|
|
502
|
+
* The plugin is rendered as a button in the gear menu.
|
|
503
|
+
* When clicked, it shows a list of quality levels to choose from.
|
|
504
|
+
*
|
|
505
|
+
* Configuration options:
|
|
506
|
+
*
|
|
507
|
+
* - `labels`: The labels to show in the level selector. [vertical resolution]: string
|
|
508
|
+
* - `restrictResolution`: The maximum resolution to allow in the level selector.
|
|
509
|
+
* - `title`: The title to show in the level selector.
|
|
510
|
+
*
|
|
511
|
+
* @example
|
|
512
|
+
* ```ts
|
|
513
|
+
* {
|
|
514
|
+
* levelSelector: {
|
|
515
|
+
* restrictResolution: 360,
|
|
516
|
+
* labels: { 360: '360p', 720: '720p' },
|
|
517
|
+
* },
|
|
518
|
+
* }
|
|
519
|
+
* ```
|
|
520
|
+
*/
|
|
521
|
+
export declare class LevelSelector extends UICorePlugin {
|
|
522
|
+
private levels;
|
|
523
|
+
private levelLabels;
|
|
524
|
+
private removeAuto;
|
|
525
|
+
private isHd;
|
|
526
|
+
private isOpen;
|
|
527
|
+
private buttonTemplate;
|
|
528
|
+
private listTemplate;
|
|
529
|
+
get name(): string;
|
|
530
|
+
get supportedVersion(): {
|
|
531
|
+
min: string;
|
|
532
|
+
};
|
|
533
|
+
static get version(): string;
|
|
534
|
+
get attributes(): {
|
|
535
|
+
class: string;
|
|
536
|
+
'data-level-selector': string;
|
|
537
|
+
};
|
|
538
|
+
private currentText;
|
|
539
|
+
private selectedLevelId;
|
|
540
|
+
get events(): {
|
|
541
|
+
'click .gear-sub-menu_btn': string;
|
|
542
|
+
'click .gear-option': string;
|
|
543
|
+
'click .go-back': string;
|
|
544
|
+
};
|
|
545
|
+
bindEvents(): void;
|
|
546
|
+
private bindPlaybackEvents;
|
|
547
|
+
private onStop;
|
|
548
|
+
private shouldRender;
|
|
549
|
+
render(): this;
|
|
550
|
+
private renderButton;
|
|
551
|
+
private renderDropdown;
|
|
552
|
+
private get maxLevel();
|
|
553
|
+
private fillLevels;
|
|
554
|
+
private makeLevelsLabels;
|
|
555
|
+
private findLevelBy;
|
|
556
|
+
private onLevelSelect;
|
|
557
|
+
private goBack;
|
|
558
|
+
private setLevel;
|
|
559
|
+
private onShowLevelSelectMenu;
|
|
560
|
+
private allLevelElements;
|
|
561
|
+
private levelElement;
|
|
562
|
+
private onLevelSwitchStart;
|
|
563
|
+
private onLevelSwitchEnd;
|
|
564
|
+
private updateText;
|
|
565
|
+
private getLevelLabel;
|
|
566
|
+
private updateCurrentLevel;
|
|
567
|
+
private highlightCurrentLevel;
|
|
568
|
+
private deferRender;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
export { Logger }
|
|
572
|
+
|
|
573
|
+
export declare class Logo extends UIContainerPlugin {
|
|
574
|
+
private hasStartedPlaying;
|
|
575
|
+
private $logoContainer;
|
|
576
|
+
get name(): string;
|
|
577
|
+
get supportedVersion(): {
|
|
578
|
+
min: string;
|
|
579
|
+
};
|
|
580
|
+
get template(): any;
|
|
581
|
+
get attributes(): {
|
|
582
|
+
class: string;
|
|
583
|
+
'data-logo': string;
|
|
584
|
+
};
|
|
585
|
+
private get shouldRender();
|
|
586
|
+
bindEvents(): void;
|
|
587
|
+
stopListening(): this;
|
|
588
|
+
private onPlay;
|
|
589
|
+
private onStop;
|
|
590
|
+
private update;
|
|
591
|
+
constructor(container: Container);
|
|
592
|
+
render(): this;
|
|
593
|
+
private setLogoImgAttrs;
|
|
594
|
+
private setLogoWidth;
|
|
595
|
+
private setPosition;
|
|
596
|
+
private setStyles;
|
|
597
|
+
private setStyle;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
export { LogTracer }
|
|
601
|
+
|
|
602
|
+
export declare class MediaControl extends UICorePlugin {
|
|
603
|
+
private advertisementPlaying;
|
|
604
|
+
private buttonsColor;
|
|
605
|
+
private currentDurationValue;
|
|
606
|
+
private currentPositionValue;
|
|
607
|
+
private currentSeekBarPercentage;
|
|
608
|
+
private disabledClickableList;
|
|
609
|
+
private displayedDuration;
|
|
610
|
+
private displayedPosition;
|
|
611
|
+
private displayedSeekBarPercentage;
|
|
612
|
+
private draggingSeekBar;
|
|
613
|
+
private draggingVolumeBar;
|
|
614
|
+
private fullScreenOnVideoTagSupported;
|
|
615
|
+
private hideId;
|
|
616
|
+
private hideVolumeId;
|
|
617
|
+
private intendedVolume;
|
|
618
|
+
private isHD;
|
|
619
|
+
private keepVisible;
|
|
620
|
+
private kibo;
|
|
621
|
+
private lastMouseX;
|
|
622
|
+
private lastMouseY;
|
|
623
|
+
private persistConfig;
|
|
624
|
+
private rendered;
|
|
625
|
+
private settings;
|
|
626
|
+
private svgMask;
|
|
627
|
+
private userDisabled;
|
|
628
|
+
private userKeepVisible;
|
|
629
|
+
private verticalVolume;
|
|
630
|
+
private $audioTracksSelector;
|
|
631
|
+
private $bottomGear;
|
|
632
|
+
private $clipText;
|
|
633
|
+
private $clipTextContainer;
|
|
634
|
+
private $duration;
|
|
635
|
+
private $fullscreenToggle;
|
|
636
|
+
private $multiCameraSelector;
|
|
637
|
+
private $pip;
|
|
638
|
+
private $playPauseToggle;
|
|
639
|
+
private $playStopToggle;
|
|
640
|
+
private $playbackRate;
|
|
641
|
+
private $position;
|
|
642
|
+
private $seekBarContainer;
|
|
643
|
+
private $seekBarHover;
|
|
644
|
+
private $seekBarLoaded;
|
|
645
|
+
private $seekBarPosition;
|
|
646
|
+
private $seekBarScrubber;
|
|
647
|
+
private $subtitlesSelector;
|
|
648
|
+
private $volumeBarContainer;
|
|
649
|
+
private $volumeBarBackground;
|
|
650
|
+
private $volumeBarFill;
|
|
651
|
+
private $volumeBarScrubber;
|
|
652
|
+
private $volumeContainer;
|
|
653
|
+
private $volumeIcon;
|
|
654
|
+
get name(): string;
|
|
655
|
+
get supportedVersion(): {
|
|
656
|
+
min: string;
|
|
657
|
+
};
|
|
658
|
+
get disabled(): any;
|
|
659
|
+
get container(): any;
|
|
660
|
+
get playback(): any;
|
|
661
|
+
get attributes(): {
|
|
662
|
+
class: string;
|
|
663
|
+
'data-media-control-skin-1': string;
|
|
664
|
+
};
|
|
665
|
+
get events(): {
|
|
666
|
+
'click [data-play]': string;
|
|
667
|
+
'click [data-pause]': string;
|
|
668
|
+
'click [data-playpause]': string;
|
|
669
|
+
'click [data-stop]': string;
|
|
670
|
+
'click [data-playstop]': string;
|
|
671
|
+
'click [data-fullscreen]': string;
|
|
672
|
+
'click .bar-container[data-seekbar]': string;
|
|
673
|
+
'click .bar-container[data-volume]': string;
|
|
674
|
+
'click .drawer-icon[data-volume]': string;
|
|
675
|
+
'mouseenter .drawer-container[data-volume]': string;
|
|
676
|
+
'mouseleave .drawer-container[data-volume]': string;
|
|
677
|
+
'mousedown .bar-container[data-volume]': string;
|
|
678
|
+
'touchstart .bar-container[data-volume]': string;
|
|
679
|
+
'mousemove .bar-container[data-volume]': string;
|
|
680
|
+
'touchmove .bar-container[data-volume]': string;
|
|
681
|
+
'mousedown .bar-scrubber[data-seekbar]': string;
|
|
682
|
+
'mousedown .bar-container[data-seekbar]': string;
|
|
683
|
+
'touchstart .bar-scrubber[data-seekbar]': string;
|
|
684
|
+
'touchstart .bar-container[data-seekbar]': string;
|
|
685
|
+
'mousemove .bar-container[data-seekbar]': string;
|
|
686
|
+
'touchmove .bar-container[data-seekbar]': string;
|
|
687
|
+
'mouseleave .bar-container[data-seekbar]': string;
|
|
688
|
+
'touchend .bar-container[data-seekbar]': string;
|
|
689
|
+
'mouseenter .media-control-layer[data-controls]': string;
|
|
690
|
+
'mouseleave .media-control-layer[data-controls]': string;
|
|
691
|
+
};
|
|
692
|
+
get template(): any;
|
|
693
|
+
get volume(): any;
|
|
694
|
+
get muted(): boolean;
|
|
695
|
+
constructor(core: Player_2);
|
|
696
|
+
getExternalInterface(): {
|
|
697
|
+
setVolume: (value: number, isInitialVolume?: boolean) => void;
|
|
698
|
+
getVolume: () => any;
|
|
699
|
+
};
|
|
700
|
+
bindEvents(): void;
|
|
701
|
+
bindContainerEvents(): void;
|
|
702
|
+
disable(): void;
|
|
703
|
+
enable(): void;
|
|
704
|
+
play(): void;
|
|
705
|
+
pause(): void;
|
|
706
|
+
stop(): void;
|
|
707
|
+
private setInitialVolume;
|
|
708
|
+
private onVolumeChanged;
|
|
709
|
+
private onLoadedMetadataOnVideoTag;
|
|
710
|
+
private updateVolumeUI;
|
|
711
|
+
private changeTogglePlay;
|
|
712
|
+
private mousemoveOnSeekBar;
|
|
713
|
+
private mouseleaveOnSeekBar;
|
|
714
|
+
private onVolumeClick;
|
|
715
|
+
private mousemoveOnVolumeBar;
|
|
716
|
+
private playerResize;
|
|
717
|
+
togglePlayPause(): boolean;
|
|
718
|
+
togglePlayStop(): void;
|
|
719
|
+
startSeekDrag(event: MouseEvent): void;
|
|
720
|
+
startVolumeDrag(event: MouseEvent): void;
|
|
721
|
+
stopDrag: (event: MouseEvent) => void;
|
|
722
|
+
updateDrag: (event: MouseEvent | TouchEvent) => void;
|
|
723
|
+
getVolumeFromUIEvent(event: MouseEvent | TouchEvent): number;
|
|
724
|
+
toggleMute(): void;
|
|
725
|
+
setVolume(value: number, isInitialVolume?: boolean): void;
|
|
726
|
+
toggleFullscreen(): void;
|
|
727
|
+
onActiveContainerChanged(): void;
|
|
728
|
+
showVolumeBar(): void;
|
|
729
|
+
hideVolumeBar(timeout?: number): void;
|
|
730
|
+
ended(): void;
|
|
731
|
+
updateProgressBar(progress: TimeProgress): void;
|
|
732
|
+
onTimeUpdate(timeProgress: TimeProgress): void;
|
|
733
|
+
renderSeekBar(): void;
|
|
734
|
+
drawDurationAndPosition(): void;
|
|
735
|
+
seek(event: MouseEvent): false | undefined;
|
|
736
|
+
setKeepVisible(): void;
|
|
737
|
+
resetKeepVisible(): void;
|
|
738
|
+
setUserKeepVisible(): void;
|
|
739
|
+
resetUserKeepVisible(): void;
|
|
740
|
+
isVisible(): boolean;
|
|
741
|
+
show(event?: MouseEvent): void;
|
|
742
|
+
hide(delay?: number): void;
|
|
743
|
+
updateCursorStyle(showing: boolean): void;
|
|
744
|
+
private settingsUpdate;
|
|
745
|
+
getSettings(): any;
|
|
746
|
+
highDefinitionUpdate(isHD: boolean): void;
|
|
747
|
+
createCachedElements(): void;
|
|
748
|
+
getElement(name: MediaControlElement): ZeptoResult | null;
|
|
749
|
+
resetIndicators(): void;
|
|
750
|
+
initializeIcons(): void;
|
|
751
|
+
setSeekPercentage(value: number): void;
|
|
752
|
+
seekRelative(delta: number): void;
|
|
753
|
+
bindKeyAndShow(key: string, callback: () => boolean | undefined): void;
|
|
754
|
+
bindKeyEvents(): void;
|
|
755
|
+
unbindKeyEvents(): void;
|
|
756
|
+
parseColors(): void;
|
|
757
|
+
applyButtonStyle(element: ZeptoResult | undefined): void;
|
|
758
|
+
destroy(): UIObject;
|
|
759
|
+
configure(): void;
|
|
760
|
+
render(): this;
|
|
761
|
+
get bigPlayButton(): any;
|
|
762
|
+
private handleFullScreenOnBtn;
|
|
763
|
+
onStartAd(): void;
|
|
764
|
+
onFinishAd(): void;
|
|
765
|
+
setClipText(txt: unknown): void;
|
|
766
|
+
hideControllAds(): void;
|
|
767
|
+
setSVGMask(svg: string): void;
|
|
768
|
+
setMuted(value: boolean): void;
|
|
769
|
+
private static getPageX;
|
|
770
|
+
private static getPageY;
|
|
771
|
+
enableControlButton(): void;
|
|
772
|
+
disabledControlButton(): void;
|
|
773
|
+
isSeekEnabledForHtml5Playback(): any;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
declare type MediaControlElement = 'pip';
|
|
777
|
+
|
|
778
|
+
declare type MediaSourceInfo = {
|
|
779
|
+
live: boolean;
|
|
780
|
+
source: string;
|
|
781
|
+
id: number;
|
|
782
|
+
dvr: boolean;
|
|
783
|
+
projection: string | null;
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* Media delivery protocol
|
|
788
|
+
* @beta
|
|
789
|
+
*/
|
|
790
|
+
export declare type MediaTransport = 'dash' | 'hls';
|
|
791
|
+
|
|
792
|
+
declare type Metrics = {
|
|
793
|
+
counters: {
|
|
794
|
+
play: number;
|
|
795
|
+
pause: number;
|
|
796
|
+
error: number;
|
|
797
|
+
buffering: number;
|
|
798
|
+
decodedFrames: number;
|
|
799
|
+
droppedFrames: number;
|
|
800
|
+
fps: number;
|
|
801
|
+
changeLevel: number;
|
|
802
|
+
seek: number;
|
|
803
|
+
fullscreen: number;
|
|
804
|
+
dvrUsage: number;
|
|
805
|
+
};
|
|
806
|
+
timers: {
|
|
807
|
+
startup: number;
|
|
808
|
+
watch: number;
|
|
809
|
+
pause: number;
|
|
810
|
+
buffering: number;
|
|
811
|
+
session: number;
|
|
812
|
+
latency: number;
|
|
813
|
+
};
|
|
814
|
+
extra: {
|
|
815
|
+
playbackName: string;
|
|
816
|
+
playbackType: string;
|
|
817
|
+
bitratesHistory: BitrateTrackRecord[];
|
|
818
|
+
bitrateWeightedMean: number;
|
|
819
|
+
bitrateMostUsed: number;
|
|
820
|
+
buffersize: number;
|
|
821
|
+
watchHistory: Array<[number, number]>;
|
|
822
|
+
watchedPercentage: number;
|
|
823
|
+
bufferingPercentage: number;
|
|
824
|
+
bandwidth: number;
|
|
825
|
+
duration: number;
|
|
826
|
+
currentTime: number;
|
|
827
|
+
};
|
|
828
|
+
custom: Record<string, unknown>;
|
|
829
|
+
};
|
|
830
|
+
|
|
831
|
+
declare type MetricsUpdateFn = (metrics: Metrics) => void;
|
|
832
|
+
|
|
833
|
+
export declare class MultiCamera extends UICorePlugin {
|
|
834
|
+
private currentCamera;
|
|
835
|
+
private currentTime;
|
|
836
|
+
private playing;
|
|
837
|
+
private multicamera;
|
|
838
|
+
private noActiveStreams;
|
|
839
|
+
get name(): string;
|
|
840
|
+
get supportedVersion(): {
|
|
841
|
+
min: string;
|
|
842
|
+
};
|
|
843
|
+
static get version(): string;
|
|
844
|
+
get template(): any;
|
|
845
|
+
get attributes(): {
|
|
846
|
+
class: string;
|
|
847
|
+
'data-multicamera': string;
|
|
848
|
+
};
|
|
849
|
+
get events(): {
|
|
850
|
+
'click [data-multicamera-selector-select]': string;
|
|
851
|
+
'click [data-multicamera-button]': string;
|
|
852
|
+
};
|
|
853
|
+
constructor(core: Core);
|
|
854
|
+
bindEvents(): void;
|
|
855
|
+
unBindEvents(): void;
|
|
856
|
+
private onPlay;
|
|
857
|
+
private bindPlaybackEvents;
|
|
858
|
+
private reload;
|
|
859
|
+
private shouldRender;
|
|
860
|
+
render(): this;
|
|
861
|
+
private onCameraSelect;
|
|
862
|
+
activeById(id: number, active: boolean): void;
|
|
863
|
+
private setLiveStatus;
|
|
864
|
+
private behaviorLive;
|
|
865
|
+
private behaviorOne;
|
|
866
|
+
private behaviorAll;
|
|
867
|
+
private findAndInitNextStream;
|
|
868
|
+
private showError;
|
|
869
|
+
private hideError;
|
|
870
|
+
private changeById;
|
|
871
|
+
getCamerasList(): MediaSourceInfo[];
|
|
872
|
+
getCurrentCamera(): MediaSourceInfo | null;
|
|
873
|
+
private findElementById;
|
|
874
|
+
private findIndexById;
|
|
875
|
+
private onShowLevelSelectMenu;
|
|
876
|
+
private hideSelectLevelMenu;
|
|
877
|
+
private toggleContextMenu;
|
|
878
|
+
private levelElement;
|
|
879
|
+
private highlightCurrentLevel;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
export declare class PictureInPicture extends UICorePlugin {
|
|
883
|
+
get name(): string;
|
|
884
|
+
get supportedVersion(): {
|
|
885
|
+
min: string;
|
|
886
|
+
};
|
|
887
|
+
static get version(): string;
|
|
888
|
+
get events(): {
|
|
889
|
+
'click button': string;
|
|
890
|
+
};
|
|
891
|
+
get videoElement(): any;
|
|
892
|
+
bindEvents(): void;
|
|
893
|
+
private isPiPSupported;
|
|
894
|
+
render(): this;
|
|
895
|
+
togglePictureInPicture(): void;
|
|
896
|
+
requestPictureInPicture(): void;
|
|
897
|
+
exitPictureInPicture(): void;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* An error occurred during the playback.
|
|
902
|
+
* @beta
|
|
903
|
+
*/
|
|
904
|
+
export declare interface PlaybackError {
|
|
905
|
+
/**
|
|
906
|
+
* Error code.
|
|
907
|
+
*/
|
|
908
|
+
code: PlaybackErrorCode;
|
|
909
|
+
/**
|
|
910
|
+
* Detailed description of the error.
|
|
911
|
+
*/
|
|
912
|
+
description: string;
|
|
913
|
+
/**
|
|
914
|
+
* Level of severity of the error.
|
|
915
|
+
*/
|
|
916
|
+
level: ErrorLevel;
|
|
917
|
+
/**
|
|
918
|
+
* Error message. Non-fatal usually can be ignored.
|
|
919
|
+
*/
|
|
920
|
+
message: string;
|
|
921
|
+
/**
|
|
922
|
+
* Exact component that originated the error.
|
|
923
|
+
* @example
|
|
924
|
+
* - 'core'
|
|
925
|
+
* - 'dash'
|
|
926
|
+
* - 'media_control'
|
|
927
|
+
*/
|
|
928
|
+
origin: string;
|
|
929
|
+
/**
|
|
930
|
+
* Component subsystem of the error origin
|
|
931
|
+
*/
|
|
932
|
+
scope: PlayerComponentType;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* Codes of errors occurring within the playback component.
|
|
937
|
+
* @beta
|
|
938
|
+
*/
|
|
939
|
+
export declare enum PlaybackErrorCode {
|
|
940
|
+
/**
|
|
941
|
+
* An unknown or uncategorised error.
|
|
942
|
+
*/
|
|
943
|
+
Generic = 0,
|
|
944
|
+
/**
|
|
945
|
+
* The media source is not available. Typically a network error.
|
|
946
|
+
*/
|
|
947
|
+
MediaSourceUnavailable = 1,
|
|
948
|
+
/**
|
|
949
|
+
* The media source is not accessible due to some protection policy.
|
|
950
|
+
*/
|
|
951
|
+
MediaSourceAccessDenied = 3
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* Module to perform the playback.
|
|
956
|
+
* @beta
|
|
957
|
+
*/
|
|
958
|
+
export declare type PlaybackModule = 'dash' | 'hls' | 'html5_video';
|
|
959
|
+
|
|
960
|
+
export declare class PlaybackRate extends UICorePlugin {
|
|
961
|
+
private currentPlayback;
|
|
962
|
+
private playbackRates;
|
|
963
|
+
private prevSelectedRate;
|
|
964
|
+
private selectedRate;
|
|
965
|
+
get name(): string;
|
|
966
|
+
get supportedVersion(): {
|
|
967
|
+
min: string;
|
|
968
|
+
};
|
|
969
|
+
get template(): any;
|
|
970
|
+
get attributes(): {
|
|
971
|
+
class: string;
|
|
972
|
+
'data-playback-rate-select': string;
|
|
973
|
+
};
|
|
974
|
+
get events(): {
|
|
975
|
+
'click .gear-sub-menu_btn': string;
|
|
976
|
+
'click .gear-option': string;
|
|
977
|
+
'click .go-back': string;
|
|
978
|
+
};
|
|
979
|
+
bindEvents(): void;
|
|
980
|
+
unBindEvents(): void;
|
|
981
|
+
private allRateElements;
|
|
982
|
+
private rateElement;
|
|
983
|
+
private onDashRateChange;
|
|
984
|
+
private updateLiveStatus;
|
|
985
|
+
reload(): void;
|
|
986
|
+
private shouldRender;
|
|
987
|
+
render(): this;
|
|
988
|
+
onStartAd(): void;
|
|
989
|
+
onFinishAd(): void;
|
|
990
|
+
onPlay(): void;
|
|
991
|
+
onStop(): void;
|
|
992
|
+
onRateSelect(event: MouseEvent): boolean;
|
|
993
|
+
onShowMenu(): void;
|
|
994
|
+
goBack(): void;
|
|
995
|
+
updatePlaybackRate(rate: string): void;
|
|
996
|
+
setSelectedRate(rate: string): void;
|
|
997
|
+
getTitle(): string;
|
|
998
|
+
highlightCurrentRate(): void;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Type of a stream playback
|
|
1003
|
+
* @beta
|
|
1004
|
+
*/
|
|
1005
|
+
export declare type PlaybackType = 'live' | 'vod';
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* The main component to use in the application code.
|
|
1009
|
+
* @beta
|
|
1010
|
+
* @remarks
|
|
1011
|
+
* The Player object provides very basic API to control playback.
|
|
1012
|
+
* To build a sophisticated UI, use the plugins framework to tap into the Clappr core.
|
|
1013
|
+
* {@link https://github.com/clappr/clappr/wiki/Architecture}
|
|
1014
|
+
*/
|
|
1015
|
+
export declare class Player {
|
|
1016
|
+
private config;
|
|
1017
|
+
private emitter;
|
|
1018
|
+
private player;
|
|
1019
|
+
private ready;
|
|
1020
|
+
private rootNode;
|
|
1021
|
+
private tuneInTimerId;
|
|
1022
|
+
private tunedIn;
|
|
1023
|
+
constructor(config: PlayerConfig);
|
|
1024
|
+
/**
|
|
1025
|
+
* Adds a listener to a player event
|
|
1026
|
+
* @param event - event type, see {@link PlayerEvent}
|
|
1027
|
+
* @param handler - a callback function to handle the event
|
|
1028
|
+
*/
|
|
1029
|
+
on<E extends PlayerEvent>(event: E, handler: PlayerEventHandler<E>): void;
|
|
1030
|
+
/**
|
|
1031
|
+
* Removes a previously added event listener
|
|
1032
|
+
* @param event - See {@link PlayerEvent}
|
|
1033
|
+
* @param handler - a callback attached earlier to that event type
|
|
1034
|
+
*/
|
|
1035
|
+
off<E extends PlayerEvent>(event: E, handler: PlayerEventHandler<E>): void;
|
|
1036
|
+
/**
|
|
1037
|
+
* Configures the player.
|
|
1038
|
+
*
|
|
1039
|
+
* @param config - complete or partial configuration
|
|
1040
|
+
* @remarks
|
|
1041
|
+
* Can be called multiple times.
|
|
1042
|
+
* Each consequent call extends the previous configuration with only the new keys overridden.
|
|
1043
|
+
*
|
|
1044
|
+
* After a reconfiguration, if something significant has changed, it might make sense reinitialize the player (i.e, a `.destroy()` followed by an `.init()` call).
|
|
1045
|
+
*/
|
|
1046
|
+
configure(config: Partial<PlayerConfig>): void;
|
|
1047
|
+
/**
|
|
1048
|
+
* Initializes the player at the given container element.
|
|
1049
|
+
* @param playerElement - DOM element to host the player
|
|
1050
|
+
* @remarks
|
|
1051
|
+
* The player will be initialized and attached to the given element.
|
|
1052
|
+
*
|
|
1053
|
+
* All the core plugins will be initialized at this point.
|
|
1054
|
+
*
|
|
1055
|
+
* If no sources were configured, it will trigger an error.
|
|
1056
|
+
*
|
|
1057
|
+
* The player container will be initialized and then all the registered UI plugins.
|
|
1058
|
+
*
|
|
1059
|
+
* If the `autoPlay` option is set, then it will trigger playback immediately.
|
|
1060
|
+
*
|
|
1061
|
+
* It is an error to call this method twice. If you need to attache player to another DOM element,
|
|
1062
|
+
* first call {@link Player.destroy} and then {@link Player.attachTo}.
|
|
1063
|
+
*
|
|
1064
|
+
* @example
|
|
1065
|
+
* ```ts
|
|
1066
|
+
* const player = new Player({
|
|
1067
|
+
* sources: [{ source: 'https://example.com/a.mpd', mimeType: 'application/dash+xml' }],
|
|
1068
|
+
* })
|
|
1069
|
+
* document.addEventListener('DOMContentLoaded', () => {
|
|
1070
|
+
* player.attachTo(document.getElementById('video-container'))
|
|
1071
|
+
* })
|
|
1072
|
+
* ```
|
|
1073
|
+
*/
|
|
1074
|
+
attachTo(playerElement: HTMLElement): void;
|
|
1075
|
+
/**
|
|
1076
|
+
* Destroys the player, releasing all resources and unmounting its UI from the DOM.
|
|
1077
|
+
*/
|
|
1078
|
+
destroy(): void;
|
|
1079
|
+
/**
|
|
1080
|
+
* Current playback (time since the beginning of the stream), if appropriate.
|
|
1081
|
+
*
|
|
1082
|
+
* @returns Time in seconds
|
|
1083
|
+
* @remarks
|
|
1084
|
+
* For live streams, it returns the current time within the current segment.
|
|
1085
|
+
*/
|
|
1086
|
+
getCurrentTime(): number;
|
|
1087
|
+
/**
|
|
1088
|
+
* Duration of the current media in seconds, if appropriate.
|
|
1089
|
+
*
|
|
1090
|
+
* @returns Time in seconds
|
|
1091
|
+
* @remarks
|
|
1092
|
+
* For live streams, it returns the duration of the current segment.
|
|
1093
|
+
*/
|
|
1094
|
+
getDuration(): number;
|
|
1095
|
+
/**
|
|
1096
|
+
* Indicates whether DVR is enabled.
|
|
1097
|
+
*/
|
|
1098
|
+
isDvrEnabled(): boolean;
|
|
1099
|
+
/**
|
|
1100
|
+
* Indicates whether DVR is in use.
|
|
1101
|
+
* @remarks
|
|
1102
|
+
* DVR mode, if it is enabled, is triggered we a user seeks behind the live edge.
|
|
1103
|
+
*/
|
|
1104
|
+
isDvrInUse(): boolean;
|
|
1105
|
+
/**
|
|
1106
|
+
* Indicates muted state of the video.
|
|
1107
|
+
* @remarks
|
|
1108
|
+
* Note that muted state is independent from the volume level.
|
|
1109
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/muted}
|
|
1110
|
+
*/
|
|
1111
|
+
isMuted(): boolean;
|
|
1112
|
+
/**
|
|
1113
|
+
* Indicates the playing state.
|
|
1114
|
+
*/
|
|
1115
|
+
isPlaying(): boolean;
|
|
1116
|
+
/**
|
|
1117
|
+
* Mutes the sound of the video.
|
|
1118
|
+
*/
|
|
1119
|
+
mute(): void;
|
|
1120
|
+
/**
|
|
1121
|
+
* Unmutes the video sound.
|
|
1122
|
+
*/
|
|
1123
|
+
unmute(): void;
|
|
1124
|
+
/**
|
|
1125
|
+
* Pauses playback.
|
|
1126
|
+
*/
|
|
1127
|
+
pause(): void;
|
|
1128
|
+
/**
|
|
1129
|
+
* Starts playback.
|
|
1130
|
+
*/
|
|
1131
|
+
play(): void;
|
|
1132
|
+
/**
|
|
1133
|
+
* Resizes the player container element and everything within it.
|
|
1134
|
+
* @param newSize - new size of the player
|
|
1135
|
+
* @remarks
|
|
1136
|
+
* Use this method when the player itself does not detect properly the change in size of its container element.
|
|
1137
|
+
* It can be a case for orientation change on some mobile devices.
|
|
1138
|
+
*/
|
|
1139
|
+
resize(newSize: ContainerSize): void;
|
|
1140
|
+
/**
|
|
1141
|
+
* Seeks to the given time.
|
|
1142
|
+
* @param time - time to seek to in seconds (since the beginning of the stream)
|
|
1143
|
+
*/
|
|
1144
|
+
seek(time: number): void;
|
|
1145
|
+
/**
|
|
1146
|
+
* Gets the current volume of the media content being played.
|
|
1147
|
+
* @returns a number between 0 and 1
|
|
1148
|
+
*/
|
|
1149
|
+
getVolume(): number;
|
|
1150
|
+
/**
|
|
1151
|
+
* Sets the current volume of the media content being played.
|
|
1152
|
+
* @param volume - a number between 0 and 1
|
|
1153
|
+
*/
|
|
1154
|
+
setVolume(volume: number): void;
|
|
1155
|
+
/**
|
|
1156
|
+
* Stops playback.
|
|
1157
|
+
*/
|
|
1158
|
+
stop(): void;
|
|
1159
|
+
/**
|
|
1160
|
+
* Registers a plugin.
|
|
1161
|
+
* @param plugin - a plugin class
|
|
1162
|
+
* @remarks
|
|
1163
|
+
* Use this method to extend the player with custom behavior.
|
|
1164
|
+
* The plugin class must inherit from one of the Clappr UIPlugin, UIContainerPlugin or CorePlugin classes.
|
|
1165
|
+
* A core plugin will be initialized and attached to the player when the player is initialized.
|
|
1166
|
+
* A UI plugin will be initialized and attached to the player container is initialized.
|
|
1167
|
+
*
|
|
1168
|
+
* @see {@link https://github.com/clappr/clappr/wiki/Architecture}
|
|
1169
|
+
* @example
|
|
1170
|
+
* ```ts
|
|
1171
|
+
* import MyPlugin from './MyPlugin.js'
|
|
1172
|
+
*
|
|
1173
|
+
* Player.registerPlugin(MyPlugin)
|
|
1174
|
+
* ```
|
|
1175
|
+
*/
|
|
1176
|
+
static registerPlugin(plugin: PlayerPlugin): void;
|
|
1177
|
+
/**
|
|
1178
|
+
* Unregisters a plugin registered earlier with {@link Player.registerPlugin}.
|
|
1179
|
+
* @param plugin - a plugin class
|
|
1180
|
+
*/
|
|
1181
|
+
static unregisterPlugin(plugin: PlayerPlugin): void;
|
|
1182
|
+
private setConfig;
|
|
1183
|
+
private initPlayer;
|
|
1184
|
+
private tuneIn;
|
|
1185
|
+
private safeTriggerEvent;
|
|
1186
|
+
private events;
|
|
1187
|
+
private buildCoreOptions;
|
|
1188
|
+
private configurePlaybacks;
|
|
1189
|
+
private buildMediaSourcesList;
|
|
1190
|
+
private bindContainerEventListeners;
|
|
1191
|
+
private bindSizeManagementListeners;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* Subsystems of a player component.
|
|
1196
|
+
* @beta
|
|
1197
|
+
*/
|
|
1198
|
+
export declare type PlayerComponentType = 'container' | 'core' | 'playback';
|
|
1199
|
+
|
|
1200
|
+
/**
|
|
1201
|
+
* Configuration options for the player
|
|
1202
|
+
*
|
|
1203
|
+
* @remarks
|
|
1204
|
+
* You can specify multiple sources, each in two forms: just a plain URL or a full object with `source` and `mimeType` fields {@link PlayerMediaSource}.
|
|
1205
|
+
* The player will pick the first viable media source according to the source availability, and either the transport preference or standard transport selection order.
|
|
1206
|
+
*
|
|
1207
|
+
* `priorityTransport` is used to specify the preferred transport protocol
|
|
1208
|
+
* when multiple sources are available.
|
|
1209
|
+
* It will first try to use the transport specified if it's supported (by a playback engine) and the source is available.
|
|
1210
|
+
* Otherwise it will try the other transports in the regular order (dash, hls, mpegts).
|
|
1211
|
+
*
|
|
1212
|
+
* The `autoPlay` option should be used together with the {@link PlayerConfig.mute | mute} to avoid issues with the browsers' autoplay policies.
|
|
1213
|
+
*
|
|
1214
|
+
* Note that the `playbackType` is specified explicitly in the examle below, but a playback engine might be able to detect the type of the stream automatically.
|
|
1215
|
+
*
|
|
1216
|
+
* A plugin options can be specified in the configuration object under a unique key, typically corresponding to the plugin name.
|
|
1217
|
+
* The plugin object will have access to the internal normalized configuration object that contains all the custom options.
|
|
1218
|
+
* in the examle below, the `poster` field is the `Poster` plugin configuration options.
|
|
1219
|
+
*
|
|
1220
|
+
* @example
|
|
1221
|
+
* ```ts
|
|
1222
|
+
* {
|
|
1223
|
+
* autoPlay: true,
|
|
1224
|
+
* mute: true,
|
|
1225
|
+
* playbackType: 'live',
|
|
1226
|
+
* priorityTransport: 'dash',
|
|
1227
|
+
* sources: [{
|
|
1228
|
+
* source: 'https://example.com/myownair66.mpd',
|
|
1229
|
+
* mimeType: 'application/dash+xml',
|
|
1230
|
+
* }, {
|
|
1231
|
+
* source: 'https://example.com/myownair66.m3u8',
|
|
1232
|
+
* mimeType: 'application/x-mpegURL',
|
|
1233
|
+
* }],
|
|
1234
|
+
* poster: {
|
|
1235
|
+
* url: settings.poster,
|
|
1236
|
+
* },
|
|
1237
|
+
* }
|
|
1238
|
+
* ```
|
|
1239
|
+
* @beta
|
|
1240
|
+
*/
|
|
1241
|
+
export declare interface PlayerConfig extends Record<string, unknown> {
|
|
1242
|
+
/**
|
|
1243
|
+
* Start playback automatically when the player is ready
|
|
1244
|
+
* @defaultValue false
|
|
1245
|
+
*/
|
|
1246
|
+
autoPlay?: boolean;
|
|
1247
|
+
/**
|
|
1248
|
+
* Configuration settings for the DASH playback engine
|
|
1249
|
+
* @defaultValue \{\}
|
|
1250
|
+
* {@link https://cdn.dashjs.org/latest/jsdoc/module-Settings.html}
|
|
1251
|
+
*/
|
|
1252
|
+
dash?: DashSettings;
|
|
1253
|
+
/**
|
|
1254
|
+
* Controls the debug output level
|
|
1255
|
+
* @defaultValue 'none'
|
|
1256
|
+
*/
|
|
1257
|
+
debug?: PlayerDebugSettings;
|
|
1258
|
+
/**
|
|
1259
|
+
* A language code for the player UI, for example, `es`. Must reference a key in the {@link PlayerConfig.strings | strings} record.
|
|
1260
|
+
* @defaultValue 'en'
|
|
1261
|
+
*/
|
|
1262
|
+
language?: string;
|
|
1263
|
+
/**
|
|
1264
|
+
* Repeat playback when the media ends.
|
|
1265
|
+
* Is used with the `vod` {@link PlayerConfig.playbackType | playbackType}
|
|
1266
|
+
* @defaultValue false
|
|
1267
|
+
*/
|
|
1268
|
+
loop?: boolean;
|
|
1269
|
+
/**
|
|
1270
|
+
* Mute the audio output in order to comply with browsers' autoplay policy.
|
|
1271
|
+
* @defaultValue false
|
|
1272
|
+
*/
|
|
1273
|
+
mute?: boolean;
|
|
1274
|
+
/**
|
|
1275
|
+
* The type of playback (live stream or video on demand).
|
|
1276
|
+
*
|
|
1277
|
+
* @defaultValue 'vod'
|
|
1278
|
+
*/
|
|
1279
|
+
playbackType?: PlaybackType;
|
|
1280
|
+
/**
|
|
1281
|
+
* Preferred transport protocol when multiple sources are available.
|
|
1282
|
+
* @defaultValue 'dash'
|
|
1283
|
+
*/
|
|
1284
|
+
priorityTransport?: TransportPreference;
|
|
1285
|
+
/**
|
|
1286
|
+
* List of media sources, at least one is required.
|
|
1287
|
+
*/
|
|
1288
|
+
sources: PlayerMediaSource[];
|
|
1289
|
+
/**
|
|
1290
|
+
* Localization strings for the player UI.
|
|
1291
|
+
*/
|
|
1292
|
+
strings?: TranslationSettings;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* @remarks `true` is equivalent to `'all'`, `false` is equivalent to `'none'`
|
|
1297
|
+
* @beta
|
|
1298
|
+
*/
|
|
1299
|
+
export declare type PlayerDebugSettings = PlayerDebugTag | boolean;
|
|
1300
|
+
|
|
1301
|
+
/**
|
|
1302
|
+
* Debug output category selector
|
|
1303
|
+
* @beta
|
|
1304
|
+
*/
|
|
1305
|
+
export declare type PlayerDebugTag = 'all' | 'clappr' | 'dash' | 'hls' | 'none';
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* A top-level event on the player object
|
|
1309
|
+
* @beta
|
|
1310
|
+
*/
|
|
1311
|
+
export declare enum PlayerEvent {
|
|
1312
|
+
/**
|
|
1313
|
+
* Playback has reached the end of the media.
|
|
1314
|
+
*/
|
|
1315
|
+
Ended = "ended",
|
|
1316
|
+
/**
|
|
1317
|
+
* An error occurred.
|
|
1318
|
+
* Parameters: {@link PlaybackError}
|
|
1319
|
+
*/
|
|
1320
|
+
Error = "error",
|
|
1321
|
+
/**
|
|
1322
|
+
* The player has switched to or from the fullscreen mode.
|
|
1323
|
+
* Parameters:`boolean` isFullscreen
|
|
1324
|
+
*/
|
|
1325
|
+
Fullscreen = "fullscreen",
|
|
1326
|
+
/**
|
|
1327
|
+
* The player is ready to use.
|
|
1328
|
+
*/
|
|
1329
|
+
Ready = "ready",
|
|
1330
|
+
/**
|
|
1331
|
+
* Playback has started.
|
|
1332
|
+
*/
|
|
1333
|
+
Play = "play",
|
|
1334
|
+
/**
|
|
1335
|
+
* Playback has been paused.
|
|
1336
|
+
*/
|
|
1337
|
+
Pause = "pause",
|
|
1338
|
+
/**
|
|
1339
|
+
* The player's container has been resized.
|
|
1340
|
+
* Parameters: {@link ContainerSize}
|
|
1341
|
+
*/
|
|
1342
|
+
Resize = "resize",
|
|
1343
|
+
/**
|
|
1344
|
+
* The player is seeking to a new position.
|
|
1345
|
+
*/
|
|
1346
|
+
Seek = "seek",
|
|
1347
|
+
/**
|
|
1348
|
+
* Playback has been stopped.
|
|
1349
|
+
*/
|
|
1350
|
+
Stop = "stop",
|
|
1351
|
+
/**
|
|
1352
|
+
* The current playback time has changed.
|
|
1353
|
+
* Parameters: {@link TimePosition}
|
|
1354
|
+
*/
|
|
1355
|
+
TimeUpdate = "timeupdate",
|
|
1356
|
+
/**
|
|
1357
|
+
* The volume has changed.
|
|
1358
|
+
* Parameters: `number` volume in the range 0..1
|
|
1359
|
+
*/
|
|
1360
|
+
VolumeUpdate = "volumeupdate"
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* Type of a listener callback function for a player event.
|
|
1365
|
+
* See the description of the event parameters in {@link PlayerEvent}.
|
|
1366
|
+
* @beta
|
|
1367
|
+
*/
|
|
1368
|
+
export declare type PlayerEventHandler<E extends PlayerEvent> = (...args: PlayerEventParams<E>) => void;
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* @beta
|
|
1372
|
+
*/
|
|
1373
|
+
export declare type PlayerEventParams<E extends PlayerEvent> = E extends PlayerEvent.Seek ? [number] : E extends PlayerEvent.VolumeUpdate ? [number] : E extends PlayerEvent.TimeUpdate ? [TimePosition] : E extends PlayerEvent.Resize ? [{
|
|
1374
|
+
width: number;
|
|
1375
|
+
height: number;
|
|
1376
|
+
}] : E extends PlayerEvent.Fullscreen ? [boolean] : E extends PlayerEvent.Error ? [PlaybackError] : [];
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* A media source to fetch the media data from
|
|
1380
|
+
* @beta
|
|
1381
|
+
*/
|
|
1382
|
+
export declare type PlayerMediaSource = string | PlayerMediaSourceDesc;
|
|
1383
|
+
|
|
1384
|
+
/**
|
|
1385
|
+
* Describes a media source with its MIME type and URL.
|
|
1386
|
+
*
|
|
1387
|
+
* @remarks
|
|
1388
|
+
* When the MIME type is provided, it helps the player determine the appropriate playback engine.
|
|
1389
|
+
* If omitted, the player will attempt to detect the type from the source URL extension.
|
|
1390
|
+
* @beta
|
|
1391
|
+
*/
|
|
1392
|
+
export declare interface PlayerMediaSourceDesc {
|
|
1393
|
+
/**
|
|
1394
|
+
* The MIME type of the media source (e.g. `"video/mp4"`, `"application/x-mpegURL"`).
|
|
1395
|
+
* Necessary if the type cannot be detected from file extension of the source URL.
|
|
1396
|
+
*/
|
|
1397
|
+
mimeType?: string;
|
|
1398
|
+
/**
|
|
1399
|
+
* URL of the media source
|
|
1400
|
+
*/
|
|
1401
|
+
source: string;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* @beta
|
|
1406
|
+
* @see {@link https://clappr.github.io/classes/UIContainerPlugin.html}, {@link https://clappr.github.io/classes/ContainerPlugin.html}
|
|
1407
|
+
*/
|
|
1408
|
+
export declare type PlayerPlugin = {
|
|
1409
|
+
new (...args: any[]): unknown;
|
|
1410
|
+
name: string;
|
|
1411
|
+
};
|
|
1412
|
+
|
|
1413
|
+
export declare type PluginSettings = {
|
|
1414
|
+
/**
|
|
1415
|
+
* Sends the statistics record to the storage.
|
|
1416
|
+
* The actual delivery is presumably async and batched.
|
|
1417
|
+
* @param data - The statistics record to send.
|
|
1418
|
+
*/
|
|
1419
|
+
send: (data: StatisticsRecord) => void;
|
|
1420
|
+
};
|
|
1421
|
+
|
|
1422
|
+
export declare class Poster extends UIContainerPlugin {
|
|
1423
|
+
private hasFatalError;
|
|
1424
|
+
private hasStartedPlaying;
|
|
1425
|
+
private playRequested;
|
|
1426
|
+
private $playButton;
|
|
1427
|
+
private $playWrapper;
|
|
1428
|
+
get name(): string;
|
|
1429
|
+
get supportedVersion(): {
|
|
1430
|
+
min: string;
|
|
1431
|
+
};
|
|
1432
|
+
get template(): any;
|
|
1433
|
+
get shouldRender(): boolean;
|
|
1434
|
+
get attributes(): {
|
|
1435
|
+
class: string;
|
|
1436
|
+
'data-poster': string;
|
|
1437
|
+
};
|
|
1438
|
+
get events(): {
|
|
1439
|
+
click: string;
|
|
1440
|
+
};
|
|
1441
|
+
get showOnVideoEnd(): boolean;
|
|
1442
|
+
bindEvents(): void;
|
|
1443
|
+
enable(): void;
|
|
1444
|
+
disable(): void;
|
|
1445
|
+
private onError;
|
|
1446
|
+
private onPlay;
|
|
1447
|
+
private onPlayIntent;
|
|
1448
|
+
private onStop;
|
|
1449
|
+
private updatePlayButton;
|
|
1450
|
+
private showPlayButton;
|
|
1451
|
+
private hidePlayButton;
|
|
1452
|
+
private clicked;
|
|
1453
|
+
private shouldHideOnPlay;
|
|
1454
|
+
private update;
|
|
1455
|
+
private updatePoster;
|
|
1456
|
+
private showPoster;
|
|
1457
|
+
private hidePoster;
|
|
1458
|
+
render(): this;
|
|
1459
|
+
destroy(): this;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
declare type PresentationalError = {
|
|
1463
|
+
title: string;
|
|
1464
|
+
message: string;
|
|
1465
|
+
code: string;
|
|
1466
|
+
icon: string;
|
|
1467
|
+
reloadIcon: string;
|
|
1468
|
+
};
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* A level of quality within a media source.
|
|
1472
|
+
* @beta
|
|
1473
|
+
*/
|
|
1474
|
+
export declare interface QualityLevel {
|
|
1475
|
+
/**
|
|
1476
|
+
* Zero-based index of the quality level.
|
|
1477
|
+
*/
|
|
1478
|
+
level: number;
|
|
1479
|
+
/**
|
|
1480
|
+
* Width of the video, pixels.
|
|
1481
|
+
*/
|
|
1482
|
+
width: number;
|
|
1483
|
+
/**
|
|
1484
|
+
* Height of the video, pixels.
|
|
1485
|
+
*/
|
|
1486
|
+
height: number;
|
|
1487
|
+
/**
|
|
1488
|
+
* Bitrate of the video, bps.
|
|
1489
|
+
*/
|
|
1490
|
+
bitrate: number;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
export { reportError_2 as reportError }
|
|
1494
|
+
|
|
1495
|
+
export declare class SeekTime extends UICorePlugin {
|
|
1496
|
+
get name(): string;
|
|
1497
|
+
get supportedVersion(): {
|
|
1498
|
+
min: string;
|
|
1499
|
+
};
|
|
1500
|
+
get template(): any;
|
|
1501
|
+
get attributes(): {
|
|
1502
|
+
class: string;
|
|
1503
|
+
'data-seek-time': string;
|
|
1504
|
+
};
|
|
1505
|
+
get mediaControl(): any;
|
|
1506
|
+
get mediaControlContainer(): any;
|
|
1507
|
+
get isLiveStreamWithDvr(): any;
|
|
1508
|
+
get durationShown(): boolean;
|
|
1509
|
+
private hoveringOverSeekBar;
|
|
1510
|
+
private hoverPosition;
|
|
1511
|
+
private displayedDuration;
|
|
1512
|
+
private displayedSeekTime;
|
|
1513
|
+
private duration;
|
|
1514
|
+
private rendered;
|
|
1515
|
+
private $durationEl;
|
|
1516
|
+
private $seekTimeEl;
|
|
1517
|
+
bindEvents(): void;
|
|
1518
|
+
private onContainerChanged;
|
|
1519
|
+
private updateDuration;
|
|
1520
|
+
private showTime;
|
|
1521
|
+
private hideTime;
|
|
1522
|
+
private calculateHoverPosition;
|
|
1523
|
+
getSeekTime(): {
|
|
1524
|
+
seekTime: number;
|
|
1525
|
+
};
|
|
1526
|
+
update(): void;
|
|
1527
|
+
shouldBeVisible(): any;
|
|
1528
|
+
render(): this;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
export { SentryTracer }
|
|
1532
|
+
|
|
1533
|
+
export { setTracer }
|
|
1534
|
+
|
|
1535
|
+
export declare class Share extends UICorePlugin {
|
|
1536
|
+
private hide;
|
|
1537
|
+
private container;
|
|
1538
|
+
get name(): string;
|
|
1539
|
+
get supportedVersion(): {
|
|
1540
|
+
min: string;
|
|
1541
|
+
};
|
|
1542
|
+
get template(): any;
|
|
1543
|
+
get attributes(): {
|
|
1544
|
+
class: string;
|
|
1545
|
+
'data-share': string;
|
|
1546
|
+
};
|
|
1547
|
+
get events(): {
|
|
1548
|
+
'click [data-share-button]': string;
|
|
1549
|
+
'click [data-share-close]': string;
|
|
1550
|
+
'click [data-share-fb]': string;
|
|
1551
|
+
'click [data-share-tw]': string;
|
|
1552
|
+
'click [data-share-link]': string;
|
|
1553
|
+
'click [data-share-embed]': string;
|
|
1554
|
+
};
|
|
1555
|
+
bindEvents(): void;
|
|
1556
|
+
unBindEvents(): void;
|
|
1557
|
+
canShowShare(): void;
|
|
1558
|
+
private onReady;
|
|
1559
|
+
render(): this;
|
|
1560
|
+
hideShare(): void;
|
|
1561
|
+
showShare(): void;
|
|
1562
|
+
initializeIcons(): void;
|
|
1563
|
+
onShareShow(): void;
|
|
1564
|
+
onShareHide(): void;
|
|
1565
|
+
onShareFB(): void;
|
|
1566
|
+
onShareTW(): void;
|
|
1567
|
+
onShareLinkClick(): void;
|
|
1568
|
+
onShareEmbedClick(): void;
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
export declare class SkipTime extends UICorePlugin {
|
|
1572
|
+
get name(): string;
|
|
1573
|
+
get supportedVersion(): {
|
|
1574
|
+
min: string;
|
|
1575
|
+
};
|
|
1576
|
+
get container(): any;
|
|
1577
|
+
get template(): any;
|
|
1578
|
+
get attributes(): {
|
|
1579
|
+
class: string;
|
|
1580
|
+
'data-skip-time': string;
|
|
1581
|
+
};
|
|
1582
|
+
private position;
|
|
1583
|
+
get events(): {
|
|
1584
|
+
'click [data-skip-left]': string;
|
|
1585
|
+
'click [data-skip-mid]': string;
|
|
1586
|
+
'click [data-skip-right]': string;
|
|
1587
|
+
};
|
|
1588
|
+
bindEvents(): void;
|
|
1589
|
+
setBack(): void;
|
|
1590
|
+
handleRewindClicks(): void;
|
|
1591
|
+
setMidClick(): void;
|
|
1592
|
+
setForward(): void;
|
|
1593
|
+
toggleFullscreen(): void;
|
|
1594
|
+
render(): this;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
* This plugin is responsible for managing the automatic failover between sources.
|
|
1599
|
+
* @beta
|
|
1600
|
+
* @remarks
|
|
1601
|
+
* Have a look at the {@link https://miro.com/app/board/uXjVLiN15tY=/?share_link_id=390327585787 | source failover diagram} for the details
|
|
1602
|
+
* on how sources ordering and selection works.
|
|
1603
|
+
*
|
|
1604
|
+
* This plugin does not expose any public methods apart from required by the Clappr plugin interface.
|
|
1605
|
+
* It is supposed to work autonomously.
|
|
1606
|
+
*
|
|
1607
|
+
* @example
|
|
1608
|
+
* ```ts
|
|
1609
|
+
* import { SourceController } from '@gcorevideo/player'
|
|
1610
|
+
*
|
|
1611
|
+
* Player.registerPlugin(SourceController)
|
|
1612
|
+
* ```
|
|
1613
|
+
*/
|
|
1614
|
+
export declare class SourceController extends CorePlugin {
|
|
1615
|
+
private sourcesList;
|
|
1616
|
+
private currentSourceIndex;
|
|
1617
|
+
private sourcesDelay;
|
|
1618
|
+
private active;
|
|
1619
|
+
private sync;
|
|
1620
|
+
get name(): string;
|
|
1621
|
+
get supportedVersion(): {
|
|
1622
|
+
min: string;
|
|
1623
|
+
};
|
|
1624
|
+
constructor(core: Core);
|
|
1625
|
+
/**
|
|
1626
|
+
* @internal
|
|
1627
|
+
*/
|
|
1628
|
+
bindEvents(): void;
|
|
1629
|
+
private onReady;
|
|
1630
|
+
private bindContainerEventListeners;
|
|
1631
|
+
private reset;
|
|
1632
|
+
private retryPlayback;
|
|
1633
|
+
private getNextMediaSource;
|
|
1634
|
+
static get version(): string;
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
export declare class SpinnerThreeBounce extends UIContainerPlugin {
|
|
1638
|
+
get name(): string;
|
|
1639
|
+
get supportedVersion(): {
|
|
1640
|
+
min: string;
|
|
1641
|
+
};
|
|
1642
|
+
get attributes(): {
|
|
1643
|
+
'data-spinner': string;
|
|
1644
|
+
class: string;
|
|
1645
|
+
};
|
|
1646
|
+
private showTimeout;
|
|
1647
|
+
private template;
|
|
1648
|
+
private hasFatalError;
|
|
1649
|
+
private hasBuffering;
|
|
1650
|
+
constructor(container: Container);
|
|
1651
|
+
private onBuffering;
|
|
1652
|
+
private onBufferFull;
|
|
1653
|
+
private onPlay;
|
|
1654
|
+
private onStop;
|
|
1655
|
+
private onError;
|
|
1656
|
+
show(immediate?: boolean): void;
|
|
1657
|
+
hide(): void;
|
|
1658
|
+
render(): this;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
export declare class Statistics extends ContainerPlugin {
|
|
1662
|
+
get name(): string;
|
|
1663
|
+
get supportedVersion(): {
|
|
1664
|
+
min: string;
|
|
1665
|
+
};
|
|
1666
|
+
private started;
|
|
1667
|
+
private timeStart;
|
|
1668
|
+
private heatmapSent;
|
|
1669
|
+
private heatmapLastTime;
|
|
1670
|
+
private watchSent;
|
|
1671
|
+
private bufTracking;
|
|
1672
|
+
private lags;
|
|
1673
|
+
/**
|
|
1674
|
+
* The time when buffering last started.
|
|
1675
|
+
*/
|
|
1676
|
+
private bufLastStarted;
|
|
1677
|
+
/**
|
|
1678
|
+
* The accumulated buffering duration.
|
|
1679
|
+
*/
|
|
1680
|
+
private bufAccDuration;
|
|
1681
|
+
constructor(container: Container);
|
|
1682
|
+
bindEvents(): void;
|
|
1683
|
+
private startLevelSwitch;
|
|
1684
|
+
private stopLevelSwitch;
|
|
1685
|
+
private onBuffering;
|
|
1686
|
+
private onBufferFull;
|
|
1687
|
+
private onReady;
|
|
1688
|
+
private initEvent;
|
|
1689
|
+
private sendMessage;
|
|
1690
|
+
private send;
|
|
1691
|
+
private sendHeatmap;
|
|
1692
|
+
private onTimeUpdateLive;
|
|
1693
|
+
private onStart;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
declare type StatisticsEvent = 'init' | 'start' | 'watch' | 'heatmap';
|
|
1697
|
+
|
|
1698
|
+
declare type StatisticsEventData = Record<string, string | number | boolean>;
|
|
1699
|
+
|
|
1700
|
+
declare type StatisticsRecord = {
|
|
1701
|
+
event: StatisticsEvent;
|
|
1702
|
+
type: PlaybackType;
|
|
1703
|
+
} & StatisticsEventData;
|
|
1704
|
+
|
|
1705
|
+
export declare class Subtitles extends UICorePlugin {
|
|
1706
|
+
private currentContainer;
|
|
1707
|
+
private currentLevel;
|
|
1708
|
+
private currentPlayback;
|
|
1709
|
+
private isShowing;
|
|
1710
|
+
private tracks;
|
|
1711
|
+
private $string;
|
|
1712
|
+
get name(): string;
|
|
1713
|
+
get supportedVersion(): {
|
|
1714
|
+
min: string;
|
|
1715
|
+
};
|
|
1716
|
+
static get version(): string;
|
|
1717
|
+
get template(): any;
|
|
1718
|
+
get templateString(): any;
|
|
1719
|
+
get attributes(): {
|
|
1720
|
+
class: string;
|
|
1721
|
+
'data-subtitles': string;
|
|
1722
|
+
};
|
|
1723
|
+
get events(): {
|
|
1724
|
+
'click [data-subtitles-select]': string;
|
|
1725
|
+
'click [data-subtitles-button]': string;
|
|
1726
|
+
};
|
|
1727
|
+
private isPreselectedApplied;
|
|
1728
|
+
private track;
|
|
1729
|
+
get preselectedLanguage(): string;
|
|
1730
|
+
bindEvents(): void;
|
|
1731
|
+
unBindEvents(): void;
|
|
1732
|
+
private bindPlaybackEvents;
|
|
1733
|
+
private getTracks;
|
|
1734
|
+
private onStartAd;
|
|
1735
|
+
private onFinishAd;
|
|
1736
|
+
reload(): void;
|
|
1737
|
+
private playerResize;
|
|
1738
|
+
hide(): void;
|
|
1739
|
+
show(): void;
|
|
1740
|
+
private shouldRender;
|
|
1741
|
+
private resizeFont;
|
|
1742
|
+
render(): this;
|
|
1743
|
+
private fillLevels;
|
|
1744
|
+
private findLevelBy;
|
|
1745
|
+
private selectLevel;
|
|
1746
|
+
private onLevelSelect;
|
|
1747
|
+
private applyPreselectedSubtitles;
|
|
1748
|
+
private onShowLevelSelectMenu;
|
|
1749
|
+
private hideSelectLevelMenu;
|
|
1750
|
+
private toggleContextMenu;
|
|
1751
|
+
buttonElement(): ZeptoResult;
|
|
1752
|
+
levelElement(id?: string): ZeptoResult;
|
|
1753
|
+
startLevelSwitch(): void;
|
|
1754
|
+
stopLevelSwitch(): void;
|
|
1755
|
+
selectSubtitles(): void;
|
|
1756
|
+
private setSubtitleText;
|
|
1757
|
+
private clearSubtitleText;
|
|
1758
|
+
private updateCurrentLevel;
|
|
1759
|
+
private highlightCurrentSubtitles;
|
|
1760
|
+
private renderIcon;
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
export declare class Thumbnails extends UICorePlugin {
|
|
1764
|
+
private _$spotlight;
|
|
1765
|
+
private _$backdrop;
|
|
1766
|
+
private $container;
|
|
1767
|
+
private $img;
|
|
1768
|
+
private _$carousel;
|
|
1769
|
+
private $textThumbnail;
|
|
1770
|
+
private _$backdropCarouselImgs;
|
|
1771
|
+
private spriteSheetHeight;
|
|
1772
|
+
private _hoverPosition;
|
|
1773
|
+
private _show;
|
|
1774
|
+
private _thumbsLoaded;
|
|
1775
|
+
private _oldContainer;
|
|
1776
|
+
private _thumbs;
|
|
1777
|
+
get name(): string;
|
|
1778
|
+
get supportedVersion(): {
|
|
1779
|
+
min: string;
|
|
1780
|
+
};
|
|
1781
|
+
get attributes(): {
|
|
1782
|
+
class: string;
|
|
1783
|
+
};
|
|
1784
|
+
get template(): any;
|
|
1785
|
+
private buildSpriteConfig;
|
|
1786
|
+
bindEvents(): void;
|
|
1787
|
+
private _bindContainerEvents;
|
|
1788
|
+
private _onCoreReady;
|
|
1789
|
+
private loadSpriteSheet;
|
|
1790
|
+
private _onMediaControlContainerChanged;
|
|
1791
|
+
private _init;
|
|
1792
|
+
private _getOptions;
|
|
1793
|
+
private _appendElToMediaControl;
|
|
1794
|
+
private _onMouseMove;
|
|
1795
|
+
private _onMouseLeave;
|
|
1796
|
+
private _calculateHoverPosition;
|
|
1797
|
+
private _buildImg;
|
|
1798
|
+
private _loadBackdrop;
|
|
1799
|
+
setText(time: TimeValue): void;
|
|
1800
|
+
private _updateCarousel;
|
|
1801
|
+
private _updateSpotlightThumb;
|
|
1802
|
+
private _getThumbIndexForTime;
|
|
1803
|
+
private _renderPlugin;
|
|
1804
|
+
private _createElements;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* Current playback time and total duration of the media.
|
|
1809
|
+
* @beta
|
|
1810
|
+
*/
|
|
1811
|
+
export declare interface TimePosition {
|
|
1812
|
+
/**
|
|
1813
|
+
* Current playback time, 0..duration, seconds.
|
|
1814
|
+
*/
|
|
1815
|
+
current: TimeValue;
|
|
1816
|
+
/**
|
|
1817
|
+
* Total duration of the media, seconds.
|
|
1818
|
+
*/
|
|
1819
|
+
total: TimeValue;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
/**
|
|
1823
|
+
* For the plugin development
|
|
1824
|
+
* @beta
|
|
1825
|
+
*/
|
|
1826
|
+
export declare type TimeProgress = TimePosition & {
|
|
1827
|
+
start: number;
|
|
1828
|
+
};
|
|
1829
|
+
|
|
1830
|
+
/**
|
|
1831
|
+
* For the plugin development
|
|
1832
|
+
* @beta
|
|
1833
|
+
*/
|
|
1834
|
+
export declare type TimeUpdate = TimePosition & {
|
|
1835
|
+
firstFragDateTime: number;
|
|
1836
|
+
};
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Playback time in seconds since the beginning of the stream (or a segment for the live streams)
|
|
1840
|
+
* @beta
|
|
1841
|
+
*/
|
|
1842
|
+
export declare type TimeValue = number;
|
|
1843
|
+
|
|
1844
|
+
export { trace }
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* @beta
|
|
1848
|
+
*/
|
|
1849
|
+
export declare type TranslationKey = string;
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* Localization strings for the player UI.
|
|
1853
|
+
* @remarks
|
|
1854
|
+
* The keys are language codes, and the values are objects with keys being the translation keys and values being the translations.
|
|
1855
|
+
*
|
|
1856
|
+
* This dictionary is used to localize the player UI, including the error messages and is shared across all the player components (including the plugins).
|
|
1857
|
+
*
|
|
1858
|
+
* @example
|
|
1859
|
+
* ```
|
|
1860
|
+
* {
|
|
1861
|
+
* en: {
|
|
1862
|
+
* play: 'Play',
|
|
1863
|
+
* ...
|
|
1864
|
+
* },
|
|
1865
|
+
* es: {
|
|
1866
|
+
* play: 'Reproducir',
|
|
1867
|
+
* ...
|
|
1868
|
+
* },
|
|
1869
|
+
* ...
|
|
1870
|
+
* }
|
|
1871
|
+
* ```
|
|
1872
|
+
*
|
|
1873
|
+
* @beta
|
|
1874
|
+
*/
|
|
1875
|
+
export declare type TranslationSettings = Partial<Record<LangTag, Record<TranslationKey, string>>>;
|
|
1876
|
+
|
|
1877
|
+
/**
|
|
1878
|
+
* Preferred media delivery protocol
|
|
1879
|
+
* @beta
|
|
1880
|
+
*/
|
|
1881
|
+
export declare type TransportPreference = MediaTransport;
|
|
1882
|
+
|
|
1883
|
+
declare type UpDown = 'up' | 'down';
|
|
1884
|
+
|
|
1885
|
+
/**
|
|
1886
|
+
* Version information about the gplayer and its main dependencies
|
|
1887
|
+
* @returns Version information about the gplayer and its main dependencies
|
|
1888
|
+
* @beta
|
|
1889
|
+
*/
|
|
1890
|
+
export declare function version(): {
|
|
1891
|
+
gplayer: string;
|
|
1892
|
+
clappr: string;
|
|
1893
|
+
dashjs: string;
|
|
1894
|
+
hlsjs: string;
|
|
1895
|
+
};
|
|
1896
|
+
|
|
1897
|
+
/**
|
|
1898
|
+
* @beta
|
|
1899
|
+
*/
|
|
1900
|
+
export declare class VolumeFade extends UICorePlugin {
|
|
1901
|
+
private _aboveBorderVolume;
|
|
1902
|
+
private container;
|
|
1903
|
+
private delay;
|
|
1904
|
+
private interval;
|
|
1905
|
+
get name(): string;
|
|
1906
|
+
bindEvents(): void;
|
|
1907
|
+
unBindEvents(): void;
|
|
1908
|
+
private _onUserChangeVolume;
|
|
1909
|
+
private _onVolumeConfig;
|
|
1910
|
+
private onCoreReady;
|
|
1911
|
+
private onEnter;
|
|
1912
|
+
private numberTo;
|
|
1913
|
+
private clearCurrentInterval;
|
|
1914
|
+
private onLeave;
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
export declare enum VolumeFadeEvents {
|
|
1918
|
+
FADE = "core:volume:fade"
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
declare type ZeptoResult = ReturnType<typeof $>;
|
|
1922
|
+
|
|
1923
|
+
export { }
|