@gcorevideo/player 2.19.6 → 2.19.8
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 +826 -826
- package/dist/index.js +105 -49
- package/dist/player.d.ts +1977 -0
- package/dist/plugins/index.css +1388 -1388
- package/dist/plugins/index.js +104 -48
- 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 +173 -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.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.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 +319 -0
- package/docs/api/player.mediacontrol._constructor_.md +50 -0
- package/docs/api/player.mediacontrol.attributes.md +17 -0
- package/docs/api/player.mediacontrol.bindcontainerevents.md +18 -0
- package/docs/api/player.mediacontrol.bindevents.md +18 -0
- package/docs/api/player.mediacontrol.container.md +14 -0
- package/docs/api/player.mediacontrol.destroy.md +18 -0
- package/docs/api/player.mediacontrol.disable.md +18 -0
- package/docs/api/player.mediacontrol.disabled.md +14 -0
- package/docs/api/player.mediacontrol.disabledcontrolbutton.md +20 -0
- package/docs/api/player.mediacontrol.enable.md +18 -0
- package/docs/api/player.mediacontrol.enablecontrolbutton.md +20 -0
- package/docs/api/player.mediacontrol.events.md +40 -0
- package/docs/api/player.mediacontrol.getelement.md +58 -0
- package/docs/api/player.mediacontrol.getexternalinterface.md +21 -0
- package/docs/api/player.mediacontrol.md +513 -0
- package/docs/api/player.mediacontrol.muted.md +16 -0
- package/docs/api/player.mediacontrol.name.md +14 -0
- package/docs/api/player.mediacontrol.pause.md +20 -0
- package/docs/api/player.mediacontrol.play.md +20 -0
- package/docs/api/player.mediacontrol.playback.md +14 -0
- package/docs/api/player.mediacontrol.render.md +18 -0
- package/docs/api/player.mediacontrol.setinitialvolume.md +20 -0
- package/docs/api/player.mediacontrol.setmuted.md +52 -0
- package/docs/api/player.mediacontrol.setvolume.md +76 -0
- package/docs/api/player.mediacontrol.stop.md +20 -0
- package/docs/api/player.mediacontrol.supportedversion.md +16 -0
- package/docs/api/player.mediacontrol.volume.md +16 -0
- package/docs/api/player.mediacontrolelement.md +15 -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/docs/api/player.zeptoresult.md +15 -0
- package/lib/index.core.d.ts +1 -9
- package/lib/index.core.d.ts.map +1 -1
- package/lib/index.core.js +1 -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 +4 -1
- 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/clips/Clips.d.ts +3 -0
- package/lib/plugins/clips/Clips.d.ts.map +1 -1
- package/lib/plugins/clips/Clips.js +22 -2
- package/lib/plugins/kibo/index.d.ts +3 -0
- package/lib/plugins/kibo/index.d.ts.map +1 -1
- package/lib/plugins/kibo/index.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 +95 -54
- package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
- package/lib/plugins/media-control/MediaControl.js +60 -37
- package/lib/plugins/source-controller/SourceController.js +1 -1
- package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.js +1 -1
- package/lib/plugins/subtitles/Subtitles.d.ts +1 -1
- package/lib/plugins/subtitles/Subtitles.d.ts.map +1 -1
- package/lib/plugins/thumbnails/Thumbnails.d.ts +1 -1
- package/lib/plugins/thumbnails/Thumbnails.d.ts.map +1 -1
- package/lib/plugins/vast-ads/roll.d.ts +1 -1
- package/lib/plugins/vast-ads/roll.d.ts.map +1 -1
- package/lib/plugins/vast-ads/rollmanager.d.ts +1 -1
- package/lib/plugins/vast-ads/rollmanager.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/lib/types.d.ts.map +1 -1
- package/lib/utils/types.d.ts +6 -0
- package/lib/utils/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.core.ts +1 -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 +4 -1
- package/src/plugins/big-mute-button/BigMuteButton.ts +5 -2
- package/src/plugins/bottom-gear/BottomGear.ts +3 -0
- package/src/plugins/clappr-nerd-stats/ClapprNerdStats.ts +4 -1
- package/src/plugins/clappr-nerd-stats/speedtest/Speedtest.ts +1 -1
- package/src/plugins/clappr-stats/ClapprStats.ts +5 -2
- package/src/plugins/clips/Clips.ts +29 -3
- package/src/plugins/error-screen/ErrorScreen.ts +1 -1
- package/src/plugins/favicon/Favicon.ts +1 -1
- package/src/plugins/kibo/index.ts +3 -0
- package/src/plugins/level-selector/LevelSelector.ts +5 -15
- package/src/plugins/level-selector/__tests__/LevelSelector.test.ts +185 -37
- package/src/plugins/level-selector/__tests__/__snapshots__/LevelSelector.test.ts.snap +187 -1
- package/src/plugins/logo/Logo.ts +1 -1
- package/src/plugins/media-control/MediaControl.ts +114 -94
- package/src/plugins/multi-camera/MultiCamera.ts +1 -1
- package/src/plugins/playback-rate/PlaybackRate.ts +1 -1
- package/src/plugins/poster/Poster.ts +2 -2
- package/src/plugins/seek-time/SeekTime.ts +2 -2
- 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 +2 -2
- package/src/plugins/statistics/Statistics.ts +1 -1
- package/src/plugins/subtitles/Subtitles.ts +2 -2
- package/src/plugins/thumbnails/Thumbnails.ts +2 -2
- package/src/plugins/vast-ads/VastAds.ts +2 -2
- package/src/plugins/vast-ads/roll.ts +1 -1
- package/src/plugins/vast-ads/rollmanager.ts +1 -1
- package/src/plugins/volume-fade/VolumeFade.ts +4 -1
- package/src/types.ts +0 -2
- package/src/typings/vitest.d.ts +11 -0
- package/src/utils/types.ts +6 -0
- package/temp/player.api.json +12689 -1324
- package/tsconfig.tsbuildinfo +1 -1
- package/vitest.config.ts +9 -0
- package/src/plugins/types.ts +0 -7
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
// Copyright 2014 Globo.com Player authors. All rights reserved.
|
|
2
2
|
// Use of this source code is governed by a BSD-style
|
|
3
3
|
// license that can be found in the LICENSE file.
|
|
4
|
-
/**
|
|
5
|
-
* The MediaControl is responsible for displaying the Player controls.
|
|
6
|
-
*/
|
|
7
4
|
import assert from 'assert';
|
|
8
5
|
import { Events, UICorePlugin, Browser, Playback, Utils, template, $, } from '@clappr/core';
|
|
9
6
|
import { reportError } from '@gcorevideo/utils';
|
|
@@ -21,6 +18,14 @@ import volumeOffIcon from '../../../assets/icons/new/volume-off.svg';
|
|
|
21
18
|
import fullscreenOffIcon from '../../../assets/icons/new/fullscreen-off.svg';
|
|
22
19
|
import fullscreenOnIcon from '../../../assets/icons/new/fullscreen-on.svg';
|
|
23
20
|
const T = 'plugins.media_control';
|
|
21
|
+
const LEFT_ORDER = [
|
|
22
|
+
'playpause',
|
|
23
|
+
'playstop',
|
|
24
|
+
'live',
|
|
25
|
+
'volume',
|
|
26
|
+
'position',
|
|
27
|
+
'duration',
|
|
28
|
+
];
|
|
24
29
|
const { Config, Fullscreen, formatTime, extend, removeArrayItem } = Utils;
|
|
25
30
|
function orderByOrderPattern(arr, order) {
|
|
26
31
|
const arrWithoutDuplicates = [...new Set(arr)];
|
|
@@ -28,6 +33,13 @@ function orderByOrderPattern(arr, order) {
|
|
|
28
33
|
const rest = arrWithoutDuplicates.filter((item) => !order.includes(item));
|
|
29
34
|
return [...ordered, ...rest];
|
|
30
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* The MediaControl is responsible for displaying the Player controls.
|
|
38
|
+
* @beta
|
|
39
|
+
* @remarks
|
|
40
|
+
* This plugin provides a foundation for developing a media controls UI via additional plugins.
|
|
41
|
+
* The methods exposed are to be used by the other plugins that extend the media control UI.
|
|
42
|
+
*/
|
|
31
43
|
export class MediaControl extends UICorePlugin {
|
|
32
44
|
advertisementPlaying = false;
|
|
33
45
|
buttonsColor = null;
|
|
@@ -80,6 +92,7 @@ export class MediaControl extends UICorePlugin {
|
|
|
80
92
|
$volumeBarScrubber = null;
|
|
81
93
|
$volumeContainer = null;
|
|
82
94
|
$volumeIcon = null;
|
|
95
|
+
template = template(mediaControlHTML);
|
|
83
96
|
get name() {
|
|
84
97
|
return 'media_control';
|
|
85
98
|
}
|
|
@@ -131,14 +144,17 @@ export class MediaControl extends UICorePlugin {
|
|
|
131
144
|
'mouseleave .media-control-layer[data-controls]': 'resetUserKeepVisible',
|
|
132
145
|
};
|
|
133
146
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
147
|
+
/**
|
|
148
|
+
* Current volume
|
|
149
|
+
*/
|
|
137
150
|
get volume() {
|
|
138
151
|
return this.container && this.container.isReady
|
|
139
152
|
? this.container.volume
|
|
140
153
|
: this.intendedVolume;
|
|
141
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* Muted state
|
|
157
|
+
*/
|
|
142
158
|
get muted() {
|
|
143
159
|
return this.volume === 0;
|
|
144
160
|
}
|
|
@@ -233,15 +249,27 @@ export class MediaControl extends UICorePlugin {
|
|
|
233
249
|
this.bindKeyEvents();
|
|
234
250
|
this.show();
|
|
235
251
|
}
|
|
252
|
+
/**
|
|
253
|
+
* Start the playback
|
|
254
|
+
*/
|
|
236
255
|
play() {
|
|
237
256
|
this.container && this.container.play();
|
|
238
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* Pause the playback
|
|
260
|
+
*/
|
|
239
261
|
pause() {
|
|
240
262
|
this.container && this.container.pause();
|
|
241
263
|
}
|
|
264
|
+
/**
|
|
265
|
+
* Stop the playback
|
|
266
|
+
*/
|
|
242
267
|
stop() {
|
|
243
268
|
this.container && this.container.stop();
|
|
244
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* Set the initial volume, which is preserved when playback is interrupted by an advertisement
|
|
272
|
+
*/
|
|
245
273
|
setInitialVolume() {
|
|
246
274
|
const initialVolume = this.persistConfig ? Config.restore('volume') : 100;
|
|
247
275
|
const options = (this.container && this.container.options) || this.options;
|
|
@@ -441,6 +469,13 @@ export class MediaControl extends UICorePlugin {
|
|
|
441
469
|
toggleMute() {
|
|
442
470
|
this.setVolume(this.muted ? 100 : 0);
|
|
443
471
|
}
|
|
472
|
+
/**
|
|
473
|
+
* Set the volume
|
|
474
|
+
* @param value - The volume value
|
|
475
|
+
* @param isInitialVolume - save as the initial volume
|
|
476
|
+
* @remarks
|
|
477
|
+
* Initial volume can be restored later
|
|
478
|
+
*/
|
|
444
479
|
setVolume(value, isInitialVolume = false) {
|
|
445
480
|
value = Math.min(100, Math.max(value, 0));
|
|
446
481
|
// this will hold the intended volume
|
|
@@ -661,14 +696,6 @@ export class MediaControl extends UICorePlugin {
|
|
|
661
696
|
default: [],
|
|
662
697
|
right: [],
|
|
663
698
|
});
|
|
664
|
-
const LEFT_ORDER = [
|
|
665
|
-
'playpause',
|
|
666
|
-
'playstop',
|
|
667
|
-
'live',
|
|
668
|
-
'volume',
|
|
669
|
-
'position',
|
|
670
|
-
'duration',
|
|
671
|
-
];
|
|
672
699
|
newSettings.left = orderByOrderPattern([...newSettings.left, 'clipsText', 'volume'], LEFT_ORDER);
|
|
673
700
|
newSettings.right = [
|
|
674
701
|
'fullscreen',
|
|
@@ -735,12 +762,20 @@ export class MediaControl extends UICorePlugin {
|
|
|
735
762
|
this.resetIndicators();
|
|
736
763
|
this.initializeIcons();
|
|
737
764
|
}
|
|
765
|
+
/**
|
|
766
|
+
* Get a media control element DOM node
|
|
767
|
+
* @param name - The name of the media control element
|
|
768
|
+
* @returns The DOM node to render the media control element
|
|
769
|
+
*/
|
|
738
770
|
getElement(name) {
|
|
739
771
|
switch (name) {
|
|
772
|
+
case 'clipText':
|
|
773
|
+
return this.$clipText;
|
|
740
774
|
case 'pip':
|
|
741
775
|
return this.$pip;
|
|
776
|
+
case 'seekBarContainer':
|
|
777
|
+
return this.$seekBarContainer;
|
|
742
778
|
}
|
|
743
|
-
return null;
|
|
744
779
|
}
|
|
745
780
|
resetIndicators() {
|
|
746
781
|
assert.ok(this.$duration && this.$position, 'duration and position elements must be present');
|
|
@@ -939,9 +974,6 @@ export class MediaControl extends UICorePlugin {
|
|
|
939
974
|
this.trigger(Events.MEDIACONTROL_RENDERED);
|
|
940
975
|
return this;
|
|
941
976
|
}
|
|
942
|
-
get bigPlayButton() {
|
|
943
|
-
return playIcon;
|
|
944
|
-
}
|
|
945
977
|
handleFullScreenOnBtn() {
|
|
946
978
|
this.trigger(Events.MEDIACONTROL_FULLSCREEN, this.name);
|
|
947
979
|
this.container.fullscreen();
|
|
@@ -959,37 +991,24 @@ export class MediaControl extends UICorePlugin {
|
|
|
959
991
|
}
|
|
960
992
|
this.resetUserKeepVisible();
|
|
961
993
|
}
|
|
994
|
+
// TODO manage by the ads plugin
|
|
962
995
|
onStartAd() {
|
|
963
996
|
this.advertisementPlaying = true;
|
|
964
997
|
this.disable();
|
|
965
998
|
}
|
|
999
|
+
// TODO manage by the ads plugin
|
|
966
1000
|
onFinishAd() {
|
|
967
1001
|
this.advertisementPlaying = false;
|
|
968
1002
|
this.enable();
|
|
969
1003
|
}
|
|
970
|
-
|
|
971
|
-
if (this.$clipText && txt) {
|
|
972
|
-
this.$clipTextContainer?.show();
|
|
973
|
-
this.$clipText.text(`${txt}`);
|
|
974
|
-
}
|
|
975
|
-
}
|
|
1004
|
+
// TODO remove
|
|
976
1005
|
hideControllAds() {
|
|
977
1006
|
if (this.container.advertisement &&
|
|
978
1007
|
this.container.advertisement.type !== 'idle') {
|
|
979
1008
|
this.hide();
|
|
980
1009
|
}
|
|
981
1010
|
}
|
|
982
|
-
|
|
983
|
-
if (this.svgMask) {
|
|
984
|
-
this.svgMask.remove();
|
|
985
|
-
}
|
|
986
|
-
if (this.$seekBarContainer?.get(0)) {
|
|
987
|
-
this.$seekBarContainer.addClass('clips');
|
|
988
|
-
}
|
|
989
|
-
this.svgMask = $(svg);
|
|
990
|
-
this.$seekBarContainer?.append(this.svgMask);
|
|
991
|
-
}
|
|
992
|
-
// https://bugs.chromium.org/p/chromium/issues/detail?id=109212
|
|
1011
|
+
// TODO
|
|
993
1012
|
setMuted(value) {
|
|
994
1013
|
this.container.options.mute = value;
|
|
995
1014
|
}
|
|
@@ -1005,13 +1024,17 @@ export class MediaControl extends UICorePlugin {
|
|
|
1005
1024
|
}
|
|
1006
1025
|
return 0;
|
|
1007
1026
|
}
|
|
1008
|
-
|
|
1009
|
-
|
|
1027
|
+
/**
|
|
1028
|
+
* Enable the control button
|
|
1029
|
+
*/
|
|
1010
1030
|
enableControlButton() {
|
|
1011
1031
|
this.disabledClickableList.forEach((element) => {
|
|
1012
1032
|
element.el.css({ 'pointer-events': element.pointerEventValue });
|
|
1013
1033
|
});
|
|
1014
1034
|
}
|
|
1035
|
+
/**
|
|
1036
|
+
* Disable the control button
|
|
1037
|
+
*/
|
|
1015
1038
|
disabledControlButton() {
|
|
1016
1039
|
this.disabledClickableList.forEach((element) => {
|
|
1017
1040
|
element.el.css({ 'pointer-events': 'none' });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Events as ClapprEvents, CorePlugin, } from '@clappr/core';
|
|
2
|
-
import { PlaybackErrorCode, } from '
|
|
2
|
+
import { PlaybackErrorCode, } from '../../playback.types.js';
|
|
3
3
|
import { trace } from '@gcorevideo/utils';
|
|
4
4
|
import { CLAPPR_VERSION } from '../build';
|
|
5
5
|
const T = 'plugins.source_controller';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style
|
|
3
3
|
// license that can be found in the LICENSE file.
|
|
4
4
|
import { Events, UIContainerPlugin, template } from '@clappr/core';
|
|
5
|
-
import { PlaybackErrorCode } from '../../playback.types';
|
|
5
|
+
import { PlaybackErrorCode } from '../../playback.types.js';
|
|
6
6
|
import { trace } from '@gcorevideo/utils';
|
|
7
7
|
import spinnerHTML from '../../../assets/spinner-three-bounce/spinner.ejs';
|
|
8
8
|
import '../../../assets/spinner-three-bounce/spinner.scss';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UICorePlugin } from '@clappr/core';
|
|
2
2
|
import '../../../assets/subtitles/style.scss';
|
|
3
|
-
import type { ZeptoResult } from '
|
|
3
|
+
import type { ZeptoResult } from '../../utils/types.js';
|
|
4
4
|
export declare class Subtitles extends UICorePlugin {
|
|
5
5
|
private currentContainer;
|
|
6
6
|
private currentLevel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subtitles.d.ts","sourceRoot":"","sources":["../../../src/plugins/subtitles/Subtitles.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EAIb,MAAM,cAAc,CAAA;AAOrB,OAAO,sCAAsC,CAAA;AAO7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Subtitles.d.ts","sourceRoot":"","sources":["../../../src/plugins/subtitles/Subtitles.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EAIb,MAAM,cAAc,CAAA;AAOrB,OAAO,sCAAsC,CAAA;AAO7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAmBvD,qBAAa,SAAU,SAAQ,YAAY;IACzC,OAAO,CAAC,gBAAgB,CAAuB;IAE/C,OAAO,CAAC,YAAY,CAA2B;IAE/C,OAAO,CAAC,eAAe,CAA4B;IAEnD,OAAO,CAAC,SAAS,CAAQ;IAEzB,OAAO,CAAC,MAAM,CAA2B;IAEzC,OAAO,CAAC,OAAO,CAAyB;IAExC,IAAI,IAAI,WAEP;IAED,IAAI,gBAAgB;;MAEnB;IAED,MAAM,KAAK,OAAO,WAEjB;IAED,IAAI,QAAQ,QAEX;IAED,IAAI,cAAc,QAEjB;IAED,IAAa,UAAU;;;MAKtB;IAED,IAAa,MAAM;;;MAKlB;IAED,OAAO,CAAC,oBAAoB,CAAQ;IAEpC,OAAO,CAAC,KAAK,CAAiC;IAE9C,IAAI,mBAAmB,IAAI,MAAM,CAEhC;IAEQ,UAAU;IAoBnB,YAAY;IAgCZ,OAAO,CAAC,kBAAkB;IA4C1B,OAAO,CAAC,SAAS;IAYjB,OAAO,CAAC,SAAS;IAWjB,OAAO,CAAC,UAAU;IASlB,MAAM;IAMN,OAAO,CAAC,YAAY;IAoBpB,IAAI;IAWJ,IAAI;IAiBJ,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,UAAU;IAcT,MAAM;IAgCf,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,WAAW;IAYnB,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,yBAAyB;IASjC,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,iBAAiB;IAIzB,aAAa,IAAI,WAAW;IAI5B,YAAY,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,WAAW;IAQtC,gBAAgB;IAIhB,eAAe;IAIf,eAAe;IAgDf,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,yBAAyB;IAYjC,OAAO,CAAC,UAAU;CAOnB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UICorePlugin } from '@clappr/core';
|
|
2
|
-
import { TimeValue } from '
|
|
2
|
+
import { TimeValue } from '../../playback.types.js';
|
|
3
3
|
import '../../../assets/thumbnails/style.scss';
|
|
4
4
|
export declare class Thumbnails extends UICorePlugin {
|
|
5
5
|
private _$spotlight;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thumbnails.d.ts","sourceRoot":"","sources":["../../../src/plugins/thumbnails/Thumbnails.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAkC,MAAM,cAAc,CAAC;AAI5E,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Thumbnails.d.ts","sourceRoot":"","sources":["../../../src/plugins/thumbnails/Thumbnails.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAkC,MAAM,cAAc,CAAC;AAI5E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAKpD,OAAO,uCAAuC,CAAC;AA0B/C,qBAAa,UAAW,SAAQ,YAAY;IAC1C,OAAO,CAAC,WAAW,CAA4B;IAE/C,OAAO,CAAC,UAAU,CAA4B;IAE9C,OAAO,CAAC,UAAU,CAA4B;IAE9C,OAAO,CAAC,IAAI,CAA4B;IAExC,OAAO,CAAC,UAAU,CAA4B;IAE9C,OAAO,CAAC,cAAc,CAA4B;IAElD,OAAO,CAAC,sBAAsB,CAAqB;IAEnD,OAAO,CAAC,iBAAiB,CAAa;IAEtC,OAAO,CAAC,cAAc,CAAK;IAE3B,OAAO,CAAC,KAAK,CAAS;IAEtB,OAAO,CAAC,aAAa,CAAS;IAE9B,OAAO,CAAC,aAAa,CAA0B;IAE/C,OAAO,CAAC,OAAO,CAAe;IAE9B,IAAI,IAAI,WAEP;IAED,IAAI,gBAAgB;;MAEnB;IAED,IAAa,UAAU;;MAItB;IAED,IAAI,QAAQ,QAEX;IAcD,OAAO,CAAC,iBAAiB;IAmChB,UAAU;IAQnB,OAAO,CAAC,oBAAoB;IAQ5B,OAAO,CAAC,YAAY;YA0BN,eAAe;IAY7B,OAAO,CAAC,+BAA+B;IAIvC,OAAO,CAAC,KAAK;IAcb,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,uBAAuB;IAM/B,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,uBAAuB;IA4E/B,OAAO,CAAC,SAAS;IA2BjB,OAAO,CAAC,aAAa;IAmBrB,OAAO,CAAC,IAAI,EAAE,SAAS;IAUvB,OAAO,CAAC,eAAe;IAwEvB,OAAO,CAAC,qBAAqB;IA6C7B,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,aAAa;IAkBrB,OAAO,CAAC,eAAe;CAkBxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roll.d.ts","sourceRoot":"","sources":["../../../src/plugins/vast-ads/roll.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,IAAI,EAAE,MAAM,EAAiB,MAAM,cAAc,CAAC;AAIzE,OAAO,KAAK,EAAW,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"roll.d.ts","sourceRoot":"","sources":["../../../src/plugins/vast-ads/roll.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,IAAI,EAAE,MAAM,EAAiB,MAAM,cAAc,CAAC;AAIzE,OAAO,KAAK,EAAW,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEjE,KAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,SAAS,EAAE,WAAW,CAAC;IACvB,UAAU,EAAE,WAAW,CAAC;IACxB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,MAAM;IACtC,OAAO,CAAC,IAAI,CAAU;IACtB,OAAO,CAAC,IAAI,CAAO;IACnB,OAAO,CAAC,SAAS,CAAY;IAC7B,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,SAAS,CAAc;IAC/B,OAAO,CAAC,UAAU,CAAc;IAChC,OAAO,CAAC,SAAS,CAAW;IAC5B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,gBAAgB,CAAS;IAEjC,OAAO,CAAC,iBAAiB,CAAS;IAElC,OAAO,CAAC,iBAAiB,CAAK;IAE9B,OAAO,CAAC,aAAa,CAAwB;IAE7C,OAAO,CAAC,qBAAqB,CAAU;IAEvC,OAAO,CAAC,SAAS,CAAM;IAEvB,OAAO,CAAC,WAAW,CAAM;IAEzB,OAAO,CAAC,GAAG,CAAc;gBAIb,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,sBAAsB;IAetG,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC;IAEzB,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAM;IAExC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAM;IAElC,MAAM,CAAC,eAAe,EAAE,gBAAgB,GAAG,IAAI,CAAQ;IAEvD,MAAM,CAAC,wBAAwB;IAM/B,MAAM,CAAC,kBAAkB;IAUzB,MAAM,CAAC,mBAAmB;IAO1B,OAAO,CAAC,UAAU;IAgBZ,QAAQ;IAkBd,OAAO,CAAC,UAAU;IA+BlB,iBAAiB;IAKjB,aAAa;IAUb,UAAU,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE;QAAE,GAAG,EAAE,GAAG,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,GAAG,CAAA;KAAE;IAwC7E,YAAY;IASZ,mBAAmB,CAAC,qBAAqB,EAAE,GAAG;IA+H9C,eAAe,CAAC,GAAG,EAAE,MAAM;IAS3B,cAAc,CAAC,EAAE,EAAE,GAAG;IAgCtB,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,SAAS;IAIjB,gBAAgB;IAkBhB,aAAa;IA+Cb,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE;IAMzB,SAAS,CAAC,GAAG,EAAE,MAAM;IAQrB,OAAO;CAWR"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Core, Events } from '@clappr/core';
|
|
2
|
-
import { ZeptoResult } from '
|
|
2
|
+
import { ZeptoResult } from '../../utils/types.js';
|
|
3
3
|
import { AdRollDesc, AdRollType } from './types.js';
|
|
4
4
|
type CoreOptions = Record<string, unknown>;
|
|
5
5
|
export default class RollManager extends Events {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollmanager.d.ts","sourceRoot":"","sources":["../../../src/plugins/vast-ads/rollmanager.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,IAAI,EAAE,MAAM,EAAuD,MAAM,cAAc,CAAC;AAMzI,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"rollmanager.d.ts","sourceRoot":"","sources":["../../../src/plugins/vast-ads/rollmanager.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,IAAI,EAAE,MAAM,EAAuD,MAAM,cAAc,CAAC;AAMzI,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAc,UAAU,EAAkB,MAAM,YAAY,CAAC;AAEhF,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAI3C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,MAAM;IAqC3C,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,UAAU;IA7CpB,OAAO,CAAC,cAAc,CAAS;IAE/B,OAAO,CAAC,UAAU,CAAY;IAC9B,OAAO,CAAC,SAAS,CAAY;IAE7B,OAAO,CAAC,QAAQ,CAAc;IAE9B,OAAO,CAAC,cAAc,CAAiB;IAEvC,OAAO,CAAC,SAAS,CAAW;IAE5B,OAAO,CAAC,eAAe,CAAmB;IAE1C,OAAO,CAAC,aAAa,CAAoB;IAEzC,OAAO,CAAC,mBAAmB,CAAkB;IAE7C,OAAO,CAAC,WAAW,CAA6B;IAIhD,OAAO,CAAC,SAAS,CAA8B;IAE/C,OAAO,CAAC,iBAAiB,CAAK;IAE9B,OAAO,CAAC,aAAa,CAA4B;IAEjD,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,OAAO,CAA0B;IAEzC,OAAO,CAAC,GAAG,CAAS;IAEpB,OAAO,CAAC,IAAI,CAAqB;gBAGvB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,WAAW,EACtB,UAAU,EAAE,WAAW,EACvB,YAAY,EAAE,WAAW,EACzB,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM;IAqB5B,OAAO,CAAC,cAAc;IA6BtB,YAAY,CAAC,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;IAMjD,OAAO,CAAC,WAAW;IAInB,UAAU;IAIV,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,YAAY;IAUpB,mBAAmB;IAUnB,oBAAoB;IAOd,SAAS;IA+BT,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU;IAmDhD,gBAAgB;IAOhB,OAAO,CAAC,UAAU;IAQlB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAgCxB,MAAM,CAAC,GAAG,EAAE,MAAM;IAwDxB,UAAU,CAAC,YAAY,EAAE,GAAG;IAiB5B,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG;IAInC;;;OAGG;IACG,iBAAiB,CAAC,IAAI,EAAE,GAAG;IAcjC,iBAAiB;IAejB,WAAW;CASZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VolumeFade.d.ts","sourceRoot":"","sources":["../../../src/plugins/volume-fade/VolumeFade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAiC,MAAM,cAAc,CAAC;AAK3E,oBAAY,gBAAgB;IAC1B,IAAI,qBAAqB;CAC1B;AAED,qBAAa,UAAW,SAAQ,YAAY;IAC1C,OAAO,CAAC,kBAAkB,CAAK;IAE/B,OAAO,CAAC,SAAS,CAA0B;IAE3C,OAAO,CAAC,KAAK,CAAK;IAElB,OAAO,CAAC,QAAQ,CAAwB;IAExC,IAAI,IAAI,WAEP;IAEQ,UAAU;IAQnB,YAAY;IAKZ,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,WAAW;IAwBnB,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,QAAQ;IA0BhB,OAAO,CAAC,oBAAoB;IAO5B,OAAO,CAAC,OAAO;CAGhB"}
|
|
1
|
+
{"version":3,"file":"VolumeFade.d.ts","sourceRoot":"","sources":["../../../src/plugins/volume-fade/VolumeFade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAiC,MAAM,cAAc,CAAC;AAK3E,oBAAY,gBAAgB;IAC1B,IAAI,qBAAqB;CAC1B;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,YAAY;IAC1C,OAAO,CAAC,kBAAkB,CAAK;IAE/B,OAAO,CAAC,SAAS,CAA0B;IAE3C,OAAO,CAAC,KAAK,CAAK;IAElB,OAAO,CAAC,QAAQ,CAAwB;IAExC,IAAI,IAAI,WAEP;IAEQ,UAAU;IAQnB,YAAY;IAKZ,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,WAAW;IAwBnB,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,QAAQ;IA0BhB,OAAO,CAAC,oBAAoB;IAO5B,OAAO,CAAC,OAAO;CAGhB"}
|
|
@@ -4,6 +4,9 @@ export var VolumeFadeEvents;
|
|
|
4
4
|
(function (VolumeFadeEvents) {
|
|
5
5
|
VolumeFadeEvents["FADE"] = "core:volume:fade";
|
|
6
6
|
})(VolumeFadeEvents || (VolumeFadeEvents = {}));
|
|
7
|
+
/**
|
|
8
|
+
* @beta
|
|
9
|
+
*/
|
|
7
10
|
export class VolumeFade extends UICorePlugin {
|
|
8
11
|
_aboveBorderVolume = 0;
|
|
9
12
|
container = null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.49.2"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
package/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,qBAAqB,CAAA;AAE9D;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAA;AAEvE;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG,OAAO,CAAA;AAE1D;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,KAAK,CAAA;AAEzC;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,KAAK,CAAA;AAE3C;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAA;AAEhD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAA;IAC7B,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,WAAW,YAAa,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC3D;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,IAAI,CAAC,EAAE,YAAY,CAAA;IAEnB;;;OAGG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAA;IAE3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAA;IAE3B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,mBAAmB,CAAA;IAEvC;;OAEG;IACH,OAAO,EAAE,iBAAiB,EAAE,CAAA;IAE5B;;OAEG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAA;CAC9B;AAED;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAA;AAE5B;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAA;AAEnC;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAElD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,CACvC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAChD,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED;;;GAGG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,KAAK,UAAU;IACf;;;OAGG;IACH,KAAK,UAAU;IACf;;;OAGG;IACH,UAAU,eAAe;IACzB;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,KAAK,UAAU;IACf;;;OAGG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,IAAI,SAAS;IACb;;;OAGG;IACH,UAAU,eAAe;IACzB;;;OAGG;IACH,YAAY,iBAAiB;CAC9B"}
|
package/lib/utils/types.d.ts
CHANGED
package/lib/utils/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEjC,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;AAE/C,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/index.core.ts
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
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
1
|
export { LogTracer, Logger, SentryTracer, reportError, setTracer, trace } from '@gcorevideo/utils'
|
|
12
2
|
export * from './Player.js'
|
|
13
3
|
export * from './playback.types.js'
|
|
14
4
|
export * from './types.js'
|
|
5
|
+
export * from './utils/types.js'
|
|
15
6
|
export * from './version.js'
|
package/src/index.plugins.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
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
|
+
*/
|
|
1
10
|
export * from './index.core.js'
|
|
2
11
|
export * from './index.plugins.js'
|
package/src/internal.types.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
} from "@clappr/core";
|
|
6
6
|
|
|
7
7
|
import { ContainerSize, PlaybackType, PlayerDebugTag, PlayerMediaSource } from "./types";
|
|
8
|
-
import { PlaybackError } from "./playback.types";
|
|
8
|
+
import { PlaybackError } from "./playback.types.js";
|
|
9
9
|
|
|
10
10
|
type ExternalTrack = {
|
|
11
11
|
kind?: "subtitles" | "captions";
|
|
@@ -11,7 +11,7 @@ import { CLAPPR_VERSION } from '../build.js';
|
|
|
11
11
|
import pluginHtml from '../../../assets/audio-selector/track-selector.ejs';
|
|
12
12
|
import '../../../assets/audio-selector/style.scss';
|
|
13
13
|
import audioArrow from '../../../assets/icons/old/quality-arrow.svg';
|
|
14
|
-
import { ZeptoResult } from '
|
|
14
|
+
import { ZeptoResult } from '../../utils/types.js';
|
|
15
15
|
|
|
16
16
|
const VERSION: string = '0.0.1';
|
|
17
17
|
|
|
@@ -38,6 +38,9 @@ type AudioTrackList = {
|
|
|
38
38
|
[Symbol.iterator](): IterableIterator<AudioTrackW3C>;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* @beta
|
|
43
|
+
*/
|
|
41
44
|
export class AudioSelector extends UICorePlugin {
|
|
42
45
|
private selectedTrackId: number | undefined;
|
|
43
46
|
|
|
@@ -2,7 +2,7 @@ import { Events, template, UICorePlugin, Utils } from '@clappr/core';
|
|
|
2
2
|
import { trace } from '@gcorevideo/utils';
|
|
3
3
|
|
|
4
4
|
import { CLAPPR_VERSION } from '../build.js';
|
|
5
|
-
import { ZeptoResult } from "
|
|
5
|
+
import { ZeptoResult } from "../../utils/types.js";
|
|
6
6
|
|
|
7
7
|
import volumeMuteIcon from '../../../assets/icons/new/volume-off.svg';
|
|
8
8
|
import pluginHtml from '../../../assets/big-mute-button/big-mute-button.ejs';
|
|
@@ -10,6 +10,9 @@ import '../../../assets/big-mute-button/big-mute-button.scss';
|
|
|
10
10
|
|
|
11
11
|
const T = "plugins.big_mute_button";
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* @beta
|
|
15
|
+
*/
|
|
13
16
|
export class BigMuteButton extends UICorePlugin {
|
|
14
17
|
private isBigMuteButtonHidden = false;
|
|
15
18
|
|
|
@@ -49,7 +52,7 @@ export class BigMuteButton extends UICorePlugin {
|
|
|
49
52
|
this.listenTo(this.core.mediaControl, Events.MEDIACONTROL_RENDERED, this.mediaControlRendered);
|
|
50
53
|
}
|
|
51
54
|
|
|
52
|
-
unBindEvents() {
|
|
55
|
+
private unBindEvents() {
|
|
53
56
|
// @ts-ignore
|
|
54
57
|
this.stopListening(this.core, Events.CORE_READY);
|
|
55
58
|
this.stopListening(this.core, 'core:advertisement:start', this.onStartAd);
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
stopSpeedtest,
|
|
16
16
|
} from './speedtest/index.js';
|
|
17
17
|
import { CustomMetrics } from './speedtest/types.js';
|
|
18
|
-
import { ZeptoResult } from '
|
|
18
|
+
import { ZeptoResult } from '../../utils/types.js';
|
|
19
19
|
|
|
20
20
|
import '../../../assets/clappr-nerd-stats/clappr-nerd-stats.scss';
|
|
21
21
|
import pluginHtml from '../../../assets/clappr-nerd-stats/clappr-nerd-stats.ejs';
|
|
@@ -104,6 +104,9 @@ type Metrics = BaseMetrics & {
|
|
|
104
104
|
|
|
105
105
|
// const T = 'plugins.clappr_nerd_stats';
|
|
106
106
|
|
|
107
|
+
/**
|
|
108
|
+
* @beta
|
|
109
|
+
*/
|
|
107
110
|
export class ClapprNerdStats extends UICorePlugin {
|
|
108
111
|
private container: Container | null = null;
|
|
109
112
|
|
|
@@ -2,7 +2,7 @@ import { reportError } from '@gcorevideo/utils';
|
|
|
2
2
|
|
|
3
3
|
import SpeedtestWorkerModule from '../../../../assets/clappr-nerd-stats/speedtest/speedtest.worker.js';
|
|
4
4
|
|
|
5
|
-
import { TimerId } from '
|
|
5
|
+
import { TimerId } from '../../../utils/types.js';
|
|
6
6
|
|
|
7
7
|
export type Server = {
|
|
8
8
|
id: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Container, ContainerPlugin, Events as CoreEvents, Log } from '@clappr/core';
|
|
2
|
-
import type { QualityLevel, TimePosition, TimeProgress } from '
|
|
2
|
+
import type { QualityLevel, TimePosition, TimeProgress } from '../../playback.types.js';
|
|
3
3
|
import assert from 'assert';
|
|
4
4
|
|
|
5
5
|
import { CLAPPR_VERSION } from '../build.js';
|
|
6
|
-
import { TimerId } from '
|
|
6
|
+
import { TimerId } from '../../utils/types.js';
|
|
7
7
|
import type { Metrics, MetricsUpdateFn } from './types.js';
|
|
8
8
|
import { ClapprStatsEvents } from './types.js';
|
|
9
9
|
import { newMetrics } from './utils.js';
|
|
@@ -22,6 +22,9 @@ type UriToMeasureBandwidth = {
|
|
|
22
22
|
// TODO: fix
|
|
23
23
|
const updateMetrics = () => {};
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* @beta
|
|
27
|
+
*/
|
|
25
28
|
export class ClapprStats extends ContainerPlugin {
|
|
26
29
|
private bwMeasureCount = 0;
|
|
27
30
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Container, Events, UICorePlugin } from '@clappr/core';
|
|
2
|
-
import { TimeProgress } from '../../playback.types';
|
|
1
|
+
import { Container, Events, UICorePlugin, $ } from '@clappr/core';
|
|
3
2
|
|
|
3
|
+
import { TimeProgress } from '../../playback.types.js';
|
|
4
|
+
import type { ZeptoResult } from '../../utils/types.js';
|
|
4
5
|
import { strtimeToMiliseconds } from '../utils.js';
|
|
5
6
|
import '../../../assets/clips/clips.scss';
|
|
6
7
|
|
|
@@ -25,6 +26,8 @@ export class ClipsPlugin extends UICorePlugin {
|
|
|
25
26
|
|
|
26
27
|
private _oldContainer: Container | undefined;
|
|
27
28
|
|
|
29
|
+
private svgMask: ZeptoResult | null = null;
|
|
30
|
+
|
|
28
31
|
get name() {
|
|
29
32
|
return 'clips';
|
|
30
33
|
}
|
|
@@ -88,7 +91,7 @@ export class ClipsPlugin extends UICorePlugin {
|
|
|
88
91
|
|
|
89
92
|
for (const value of this.clips.values()) {
|
|
90
93
|
if (event.current >= value.start && event.current < value.end) {
|
|
91
|
-
this.
|
|
94
|
+
this.setClipText(value.text);
|
|
92
95
|
break;
|
|
93
96
|
}
|
|
94
97
|
}
|
|
@@ -147,6 +150,29 @@ export class ClipsPlugin extends UICorePlugin {
|
|
|
147
150
|
|
|
148
151
|
svg += `<rect x="${finishValue}" y="0" width="${widthOfSeek - finishValue}" height="30"/>\n`;
|
|
149
152
|
svg += '</clipPath>' + '</defs>' + '</svg>';
|
|
153
|
+
this.setSVGMask(svg)
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
private setSVGMask(svg: string) {
|
|
150
157
|
this.core.mediaControl.setSVGMask(svg);
|
|
158
|
+
if (this.svgMask) {
|
|
159
|
+
this.svgMask.remove()
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
const $seekBarContainer = this.core.mediaControl.getElement('seekBarContainer')
|
|
163
|
+
if ($seekBarContainer?.get(0)) {
|
|
164
|
+
$seekBarContainer.addClass('clips')
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
this.svgMask = $(svg)
|
|
168
|
+
$seekBarContainer?.append(this.svgMask)
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
private setClipText(text: string) {
|
|
172
|
+
const $clipText = this.core.mediaControl.getElement('clipText')
|
|
173
|
+
if ($clipText && text) {
|
|
174
|
+
$clipText.show()
|
|
175
|
+
$clipText.text(`${text}`)
|
|
176
|
+
}
|
|
151
177
|
}
|
|
152
178
|
}
|
|
@@ -2,7 +2,7 @@ import { UICorePlugin, Events, template, PlayerError } from '@clappr/core';
|
|
|
2
2
|
import { trace } from '@gcorevideo/utils';
|
|
3
3
|
|
|
4
4
|
import { CLAPPR_VERSION } from '../build.js';
|
|
5
|
-
import type { TimerId, ZeptoResult } from '
|
|
5
|
+
import type { TimerId, ZeptoResult } from '../../utils/types.js';
|
|
6
6
|
|
|
7
7
|
import reloadIcon from '../../../assets/icons/old/reload.svg';
|
|
8
8
|
import templateHtml from '../../../assets/error-screen/error_screen.ejs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CorePlugin, Events, $, Core, Container } from '@clappr/core';
|
|
2
2
|
|
|
3
3
|
import { CLAPPR_VERSION } from '../build.js';
|
|
4
|
-
import { ZeptoResult } from '
|
|
4
|
+
import { ZeptoResult } from '../../utils/types.js';
|
|
5
5
|
|
|
6
6
|
import playIcon from '../../../assets/icons/new/play.svg';
|
|
7
7
|
import pauseIcon from '../../../assets/icons/new/pause.svg';
|