@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
package/dist/plugins/index.js
CHANGED
|
@@ -31432,6 +31432,9 @@ const audioArrow = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg width=\"9px
|
|
|
31432
31432
|
const VERSION$6 = '0.0.1';
|
|
31433
31433
|
// const T = 'plugins.audio_selector';
|
|
31434
31434
|
const AUTO = 0;
|
|
31435
|
+
/**
|
|
31436
|
+
* @beta
|
|
31437
|
+
*/
|
|
31435
31438
|
class AudioSelector extends UICorePlugin {
|
|
31436
31439
|
selectedTrackId;
|
|
31437
31440
|
currentTrack = null;
|
|
@@ -31713,6 +31716,9 @@ const volumeOffIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fil
|
|
|
31713
31716
|
const pluginHtml$7 = "<div class=\"big-mute-icon-wrapper\" data-big-mute>\n <div class=\"big-mute-icon gcore-skin-border-color\" data-big-mute-icon></div>\n</div>\n";
|
|
31714
31717
|
|
|
31715
31718
|
const T$7 = "plugins.big_mute_button";
|
|
31719
|
+
/**
|
|
31720
|
+
* @beta
|
|
31721
|
+
*/
|
|
31716
31722
|
class BigMuteButton extends UICorePlugin {
|
|
31717
31723
|
isBigMuteButtonHidden = false;
|
|
31718
31724
|
_adIsPlaying = false;
|
|
@@ -31848,6 +31854,9 @@ const gearIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"n
|
|
|
31848
31854
|
const gearHdIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clip-path=\"url(#clip0_28_1567)\">\n <path\n d=\"M19.14 12.94C19.18 12.64 19.2 12.33 19.2 12C19.2 11.68 19.18 11.36 19.13 11.06L21.16 9.47999C21.34 9.33999 21.39 9.06999 21.28 8.86999L19.36 5.54999C19.24 5.32999 18.99 5.25999 18.77 5.32999L16.38 6.28999C15.88 5.90999 15.35 5.58999 14.76 5.34999L14.4 2.80999C14.36 2.56999 14.16 2.39999 13.92 2.39999H10.08C9.83999 2.39999 9.64999 2.56999 9.60999 2.80999L9.24999 5.34999C8.65999 5.58999 8.11999 5.91999 7.62999 6.28999L5.23999 5.32999C5.01999 5.24999 4.76999 5.32999 4.64999 5.54999L2.73999 8.86999C2.61999 9.07999 2.65999 9.33999 2.85999 9.47999L4.88999 11.06C4.83999 11.36 4.79999 11.69 4.79999 12C4.79999 12.31 4.81999 12.64 4.86999 12.94L2.83999 14.52C2.65999 14.66 2.60999 14.93 2.71999 15.13L4.63999 18.45C4.75999 18.67 5.00999 18.74 5.22999 18.67L7.61999 17.71C8.11999 18.09 8.64999 18.41 9.23999 18.65L9.59999 21.19C9.64999 21.43 9.83999 21.6 10.08 21.6H13.92C14.16 21.6 14.36 21.43 14.39 21.19L14.75 18.65C15.34 18.41 15.88 18.09 16.37 17.71L18.76 18.67C18.98 18.75 19.23 18.67 19.35 18.45L21.27 15.13C21.39 14.91 21.34 14.66 21.15 14.52L19.14 12.94ZM12 15.6C10.02 15.6 8.39999 13.98 8.39999 12C8.39999 10.02 10.02 8.39999 12 8.39999C13.98 8.39999 15.6 10.02 15.6 12C15.6 13.98 13.98 15.6 12 15.6Z\"\n fill=\"#C9C9C9\"/>\n <rect x=\"13\" width=\"11\" height=\"7\" rx=\"1\" fill=\"#F6413B\"/>\n <path\n d=\"M14.6962 6V1.63636H15.3546V3.53267H17.53V1.63636H18.1905V6H17.53V4.0973H15.3546V6H14.6962ZM20.562 6H19.1493V1.63636H20.6067C21.0343 1.63636 21.4015 1.72372 21.7083 1.89844C22.0151 2.07173 22.2502 2.32102 22.4135 2.64631C22.5783 2.97017 22.6607 3.35866 22.6607 3.81179C22.6607 4.26634 22.5776 4.65696 22.4114 4.98366C22.2466 5.31037 22.008 5.56179 21.6955 5.73793C21.383 5.91264 21.0051 6 20.562 6ZM19.8077 5.42472H20.5257C20.8581 5.42472 21.1344 5.36222 21.3546 5.23722C21.5748 5.1108 21.7395 4.92827 21.8489 4.68963C21.9583 4.44957 22.013 4.15696 22.013 3.81179C22.013 3.46946 21.9583 3.17898 21.8489 2.94034C21.7409 2.7017 21.5797 2.5206 21.3652 2.39702C21.1507 2.27344 20.8844 2.21165 20.5662 2.21165H19.8077V5.42472Z\"\n fill=\"#C9C9C9\"/>\n </g>\n <defs>\n <clipPath id=\"clip0_28_1567\">\n <rect width=\"24\" height=\"24\" fill=\"white\"/>\n </clipPath>\n </defs>\n</svg>\n";
|
|
31849
31855
|
|
|
31850
31856
|
const VERSION$5 = '0.0.1';
|
|
31857
|
+
/**
|
|
31858
|
+
* @beta
|
|
31859
|
+
*/
|
|
31851
31860
|
class BottomGear extends UICorePlugin {
|
|
31852
31861
|
isHd = false;
|
|
31853
31862
|
get name() {
|
|
@@ -34071,6 +34080,9 @@ const drawSummary = (customMetrics, vodContainer, liveContainer) => {
|
|
|
34071
34080
|
liveContainer.html(liveHtml);
|
|
34072
34081
|
};
|
|
34073
34082
|
// const T = 'plugins.clappr_nerd_stats';
|
|
34083
|
+
/**
|
|
34084
|
+
* @beta
|
|
34085
|
+
*/
|
|
34074
34086
|
class ClapprNerdStats extends UICorePlugin {
|
|
34075
34087
|
container = null;
|
|
34076
34088
|
customMetrics = {
|
|
@@ -35189,6 +35201,9 @@ function ifError(err) {
|
|
|
35189
35201
|
|
|
35190
35202
|
// TODO: fix
|
|
35191
35203
|
const updateMetrics = () => { };
|
|
35204
|
+
/**
|
|
35205
|
+
* @beta
|
|
35206
|
+
*/
|
|
35192
35207
|
class ClapprStats extends ContainerPlugin {
|
|
35193
35208
|
bwMeasureCount = 0;
|
|
35194
35209
|
intervalId = null;
|
|
@@ -35641,6 +35656,7 @@ class ClipsPlugin extends UICorePlugin {
|
|
|
35641
35656
|
duration = 0;
|
|
35642
35657
|
durationGetting = false;
|
|
35643
35658
|
_oldContainer;
|
|
35659
|
+
svgMask = null;
|
|
35644
35660
|
get name() {
|
|
35645
35661
|
return 'clips';
|
|
35646
35662
|
}
|
|
@@ -35692,7 +35708,7 @@ class ClipsPlugin extends UICorePlugin {
|
|
|
35692
35708
|
}
|
|
35693
35709
|
for (const value of this.clips.values()) {
|
|
35694
35710
|
if (event.current >= value.start && event.current < value.end) {
|
|
35695
|
-
this.
|
|
35711
|
+
this.setClipText(value.text);
|
|
35696
35712
|
break;
|
|
35697
35713
|
}
|
|
35698
35714
|
}
|
|
@@ -35739,7 +35755,26 @@ class ClipsPlugin extends UICorePlugin {
|
|
|
35739
35755
|
});
|
|
35740
35756
|
svg += `<rect x="${finishValue}" y="0" width="${widthOfSeek - finishValue}" height="30"/>\n`;
|
|
35741
35757
|
svg += '</clipPath>' + '</defs>' + '</svg>';
|
|
35758
|
+
this.setSVGMask(svg);
|
|
35759
|
+
}
|
|
35760
|
+
setSVGMask(svg) {
|
|
35742
35761
|
this.core.mediaControl.setSVGMask(svg);
|
|
35762
|
+
if (this.svgMask) {
|
|
35763
|
+
this.svgMask.remove();
|
|
35764
|
+
}
|
|
35765
|
+
const $seekBarContainer = this.core.mediaControl.getElement('seekBarContainer');
|
|
35766
|
+
if ($seekBarContainer?.get(0)) {
|
|
35767
|
+
$seekBarContainer.addClass('clips');
|
|
35768
|
+
}
|
|
35769
|
+
this.svgMask = $(svg);
|
|
35770
|
+
$seekBarContainer?.append(this.svgMask);
|
|
35771
|
+
}
|
|
35772
|
+
setClipText(text) {
|
|
35773
|
+
const $clipText = this.core.mediaControl.getElement('clipText');
|
|
35774
|
+
if ($clipText && text) {
|
|
35775
|
+
$clipText.show();
|
|
35776
|
+
$clipText.text(`${text}`);
|
|
35777
|
+
}
|
|
35743
35778
|
}
|
|
35744
35779
|
}
|
|
35745
35780
|
|
|
@@ -36417,6 +36452,9 @@ class GoogleAnalytics extends ContainerPlugin {
|
|
|
36417
36452
|
/* eslint-disable */
|
|
36418
36453
|
// Kibo is released under the MIT License. Copyright (c) 2013 marquete.
|
|
36419
36454
|
// see https://github.com/marquete/kibo
|
|
36455
|
+
/**
|
|
36456
|
+
* @internal
|
|
36457
|
+
*/
|
|
36420
36458
|
class Kibo {
|
|
36421
36459
|
element;
|
|
36422
36460
|
lastKeyCode = -1;
|
|
@@ -36635,7 +36673,6 @@ const VERSION$4 = '2.19.4';
|
|
|
36635
36673
|
*
|
|
36636
36674
|
* - `labels`: The labels to show in the level selector. [vertical resolution]: string
|
|
36637
36675
|
* - `restrictResolution`: The maximum resolution to allow in the level selector.
|
|
36638
|
-
* - `title`: The title to show in the level selector.
|
|
36639
36676
|
*
|
|
36640
36677
|
* @example
|
|
36641
36678
|
* ```ts
|
|
@@ -36768,7 +36805,7 @@ class LevelSelector extends UICorePlugin {
|
|
|
36768
36805
|
get maxLevel() {
|
|
36769
36806
|
const maxRes = this.core.options.levelSelector?.restrictResolution;
|
|
36770
36807
|
return maxRes
|
|
36771
|
-
? this.levels.findIndex((level) => level.height === maxRes)
|
|
36808
|
+
? this.levels.findIndex((level) => (level.height > level.width ? level.width : level.height) === maxRes)
|
|
36772
36809
|
: -1;
|
|
36773
36810
|
}
|
|
36774
36811
|
fillLevels(levels) {
|
|
@@ -36777,9 +36814,8 @@ class LevelSelector extends UICorePlugin {
|
|
|
36777
36814
|
this.makeLevelsLabels();
|
|
36778
36815
|
if (maxResolution) {
|
|
36779
36816
|
this.removeAuto = true;
|
|
36780
|
-
// TODO account for vertical resolutions, i.e, normalize the resolution to the width
|
|
36781
36817
|
const initialLevel = levels
|
|
36782
|
-
.filter((level) => level.height <= maxResolution)
|
|
36818
|
+
.filter((level) => (level.width > level.height ? level.height : level.width) <= maxResolution)
|
|
36783
36819
|
.pop();
|
|
36784
36820
|
this.setLevel(initialLevel?.level ?? 0);
|
|
36785
36821
|
}
|
|
@@ -36795,9 +36831,6 @@ class LevelSelector extends UICorePlugin {
|
|
|
36795
36831
|
this.levelLabels.push(label);
|
|
36796
36832
|
}
|
|
36797
36833
|
}
|
|
36798
|
-
findLevelBy(id) {
|
|
36799
|
-
return this.levels.find((level) => level.level === id);
|
|
36800
|
-
}
|
|
36801
36834
|
onLevelSelect(event) {
|
|
36802
36835
|
const selectedLevel = parseInt(event.currentTarget?.dataset?.id ?? '-1', 10);
|
|
36803
36836
|
this.setLevel(selectedLevel);
|
|
@@ -36836,9 +36869,6 @@ class LevelSelector extends UICorePlugin {
|
|
|
36836
36869
|
levelElement(id = -1) {
|
|
36837
36870
|
return this.$(`ul.gear-sub-menu a[data-id="${id}"]`).parent();
|
|
36838
36871
|
}
|
|
36839
|
-
getTitle() {
|
|
36840
|
-
return (this.core.options.levelSelector || {}).title;
|
|
36841
|
-
}
|
|
36842
36872
|
onLevelSwitchStart() {
|
|
36843
36873
|
this.core.activePlayback.trigger('playback:level:select:start');
|
|
36844
36874
|
this.levelElement(this.selectedLevelId).addClass('changing');
|
|
@@ -37115,9 +37145,14 @@ const fullscreenOnIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"
|
|
|
37115
37145
|
// Copyright 2014 Globo.com Player authors. All rights reserved.
|
|
37116
37146
|
// Use of this source code is governed by a BSD-style
|
|
37117
37147
|
// license that can be found in the LICENSE file.
|
|
37118
|
-
|
|
37119
|
-
|
|
37120
|
-
|
|
37148
|
+
const LEFT_ORDER = [
|
|
37149
|
+
'playpause',
|
|
37150
|
+
'playstop',
|
|
37151
|
+
'live',
|
|
37152
|
+
'volume',
|
|
37153
|
+
'position',
|
|
37154
|
+
'duration',
|
|
37155
|
+
];
|
|
37121
37156
|
const { Config, Fullscreen, formatTime: formatTime$1, extend, removeArrayItem } = Utils;
|
|
37122
37157
|
function orderByOrderPattern(arr, order) {
|
|
37123
37158
|
const arrWithoutDuplicates = [...new Set(arr)];
|
|
@@ -37125,6 +37160,13 @@ function orderByOrderPattern(arr, order) {
|
|
|
37125
37160
|
const rest = arrWithoutDuplicates.filter((item) => !order.includes(item));
|
|
37126
37161
|
return [...ordered, ...rest];
|
|
37127
37162
|
}
|
|
37163
|
+
/**
|
|
37164
|
+
* The MediaControl is responsible for displaying the Player controls.
|
|
37165
|
+
* @beta
|
|
37166
|
+
* @remarks
|
|
37167
|
+
* This plugin provides a foundation for developing a media controls UI via additional plugins.
|
|
37168
|
+
* The methods exposed are to be used by the other plugins that extend the media control UI.
|
|
37169
|
+
*/
|
|
37128
37170
|
class MediaControl extends UICorePlugin {
|
|
37129
37171
|
advertisementPlaying = false;
|
|
37130
37172
|
buttonsColor = null;
|
|
@@ -37177,6 +37219,7 @@ class MediaControl extends UICorePlugin {
|
|
|
37177
37219
|
$volumeBarScrubber = null;
|
|
37178
37220
|
$volumeContainer = null;
|
|
37179
37221
|
$volumeIcon = null;
|
|
37222
|
+
template = tmpl(mediaControlHTML);
|
|
37180
37223
|
get name() {
|
|
37181
37224
|
return 'media_control';
|
|
37182
37225
|
}
|
|
@@ -37228,14 +37271,17 @@ class MediaControl extends UICorePlugin {
|
|
|
37228
37271
|
'mouseleave .media-control-layer[data-controls]': 'resetUserKeepVisible',
|
|
37229
37272
|
};
|
|
37230
37273
|
}
|
|
37231
|
-
|
|
37232
|
-
|
|
37233
|
-
|
|
37274
|
+
/**
|
|
37275
|
+
* Current volume
|
|
37276
|
+
*/
|
|
37234
37277
|
get volume() {
|
|
37235
37278
|
return this.container && this.container.isReady
|
|
37236
37279
|
? this.container.volume
|
|
37237
37280
|
: this.intendedVolume;
|
|
37238
37281
|
}
|
|
37282
|
+
/**
|
|
37283
|
+
* Muted state
|
|
37284
|
+
*/
|
|
37239
37285
|
get muted() {
|
|
37240
37286
|
return this.volume === 0;
|
|
37241
37287
|
}
|
|
@@ -37330,15 +37376,27 @@ class MediaControl extends UICorePlugin {
|
|
|
37330
37376
|
this.bindKeyEvents();
|
|
37331
37377
|
this.show();
|
|
37332
37378
|
}
|
|
37379
|
+
/**
|
|
37380
|
+
* Start the playback
|
|
37381
|
+
*/
|
|
37333
37382
|
play() {
|
|
37334
37383
|
this.container && this.container.play();
|
|
37335
37384
|
}
|
|
37385
|
+
/**
|
|
37386
|
+
* Pause the playback
|
|
37387
|
+
*/
|
|
37336
37388
|
pause() {
|
|
37337
37389
|
this.container && this.container.pause();
|
|
37338
37390
|
}
|
|
37391
|
+
/**
|
|
37392
|
+
* Stop the playback
|
|
37393
|
+
*/
|
|
37339
37394
|
stop() {
|
|
37340
37395
|
this.container && this.container.stop();
|
|
37341
37396
|
}
|
|
37397
|
+
/**
|
|
37398
|
+
* Set the initial volume, which is preserved when playback is interrupted by an advertisement
|
|
37399
|
+
*/
|
|
37342
37400
|
setInitialVolume() {
|
|
37343
37401
|
const initialVolume = this.persistConfig ? Config.restore('volume') : 100;
|
|
37344
37402
|
const options = (this.container && this.container.options) || this.options;
|
|
@@ -37537,6 +37595,13 @@ class MediaControl extends UICorePlugin {
|
|
|
37537
37595
|
toggleMute() {
|
|
37538
37596
|
this.setVolume(this.muted ? 100 : 0);
|
|
37539
37597
|
}
|
|
37598
|
+
/**
|
|
37599
|
+
* Set the volume
|
|
37600
|
+
* @param value - The volume value
|
|
37601
|
+
* @param isInitialVolume - save as the initial volume
|
|
37602
|
+
* @remarks
|
|
37603
|
+
* Initial volume can be restored later
|
|
37604
|
+
*/
|
|
37540
37605
|
setVolume(value, isInitialVolume = false) {
|
|
37541
37606
|
value = Math.min(100, Math.max(value, 0));
|
|
37542
37607
|
// this will hold the intended volume
|
|
@@ -37757,14 +37822,6 @@ class MediaControl extends UICorePlugin {
|
|
|
37757
37822
|
default: [],
|
|
37758
37823
|
right: [],
|
|
37759
37824
|
});
|
|
37760
|
-
const LEFT_ORDER = [
|
|
37761
|
-
'playpause',
|
|
37762
|
-
'playstop',
|
|
37763
|
-
'live',
|
|
37764
|
-
'volume',
|
|
37765
|
-
'position',
|
|
37766
|
-
'duration',
|
|
37767
|
-
];
|
|
37768
37825
|
newSettings.left = orderByOrderPattern([...newSettings.left, 'clipsText', 'volume'], LEFT_ORDER);
|
|
37769
37826
|
newSettings.right = [
|
|
37770
37827
|
'fullscreen',
|
|
@@ -37831,12 +37888,20 @@ class MediaControl extends UICorePlugin {
|
|
|
37831
37888
|
this.resetIndicators();
|
|
37832
37889
|
this.initializeIcons();
|
|
37833
37890
|
}
|
|
37891
|
+
/**
|
|
37892
|
+
* Get a media control element DOM node
|
|
37893
|
+
* @param name - The name of the media control element
|
|
37894
|
+
* @returns The DOM node to render the media control element
|
|
37895
|
+
*/
|
|
37834
37896
|
getElement(name) {
|
|
37835
37897
|
switch (name) {
|
|
37898
|
+
case 'clipText':
|
|
37899
|
+
return this.$clipText;
|
|
37836
37900
|
case 'pip':
|
|
37837
37901
|
return this.$pip;
|
|
37902
|
+
case 'seekBarContainer':
|
|
37903
|
+
return this.$seekBarContainer;
|
|
37838
37904
|
}
|
|
37839
|
-
return null;
|
|
37840
37905
|
}
|
|
37841
37906
|
resetIndicators() {
|
|
37842
37907
|
assert.ok(this.$duration && this.$position, 'duration and position elements must be present');
|
|
@@ -38035,9 +38100,6 @@ class MediaControl extends UICorePlugin {
|
|
|
38035
38100
|
this.trigger(Events$1.MEDIACONTROL_RENDERED);
|
|
38036
38101
|
return this;
|
|
38037
38102
|
}
|
|
38038
|
-
get bigPlayButton() {
|
|
38039
|
-
return playIcon;
|
|
38040
|
-
}
|
|
38041
38103
|
handleFullScreenOnBtn() {
|
|
38042
38104
|
this.trigger(Events$1.MEDIACONTROL_FULLSCREEN, this.name);
|
|
38043
38105
|
this.container.fullscreen();
|
|
@@ -38055,37 +38117,24 @@ class MediaControl extends UICorePlugin {
|
|
|
38055
38117
|
}
|
|
38056
38118
|
this.resetUserKeepVisible();
|
|
38057
38119
|
}
|
|
38120
|
+
// TODO manage by the ads plugin
|
|
38058
38121
|
onStartAd() {
|
|
38059
38122
|
this.advertisementPlaying = true;
|
|
38060
38123
|
this.disable();
|
|
38061
38124
|
}
|
|
38125
|
+
// TODO manage by the ads plugin
|
|
38062
38126
|
onFinishAd() {
|
|
38063
38127
|
this.advertisementPlaying = false;
|
|
38064
38128
|
this.enable();
|
|
38065
38129
|
}
|
|
38066
|
-
|
|
38067
|
-
if (this.$clipText && txt) {
|
|
38068
|
-
this.$clipTextContainer?.show();
|
|
38069
|
-
this.$clipText.text(`${txt}`);
|
|
38070
|
-
}
|
|
38071
|
-
}
|
|
38130
|
+
// TODO remove
|
|
38072
38131
|
hideControllAds() {
|
|
38073
38132
|
if (this.container.advertisement &&
|
|
38074
38133
|
this.container.advertisement.type !== 'idle') {
|
|
38075
38134
|
this.hide();
|
|
38076
38135
|
}
|
|
38077
38136
|
}
|
|
38078
|
-
|
|
38079
|
-
if (this.svgMask) {
|
|
38080
|
-
this.svgMask.remove();
|
|
38081
|
-
}
|
|
38082
|
-
if (this.$seekBarContainer?.get(0)) {
|
|
38083
|
-
this.$seekBarContainer.addClass('clips');
|
|
38084
|
-
}
|
|
38085
|
-
this.svgMask = $(svg);
|
|
38086
|
-
this.$seekBarContainer?.append(this.svgMask);
|
|
38087
|
-
}
|
|
38088
|
-
// https://bugs.chromium.org/p/chromium/issues/detail?id=109212
|
|
38137
|
+
// TODO
|
|
38089
38138
|
setMuted(value) {
|
|
38090
38139
|
this.container.options.mute = value;
|
|
38091
38140
|
}
|
|
@@ -38101,13 +38150,17 @@ class MediaControl extends UICorePlugin {
|
|
|
38101
38150
|
}
|
|
38102
38151
|
return 0;
|
|
38103
38152
|
}
|
|
38104
|
-
|
|
38105
|
-
|
|
38153
|
+
/**
|
|
38154
|
+
* Enable the control button
|
|
38155
|
+
*/
|
|
38106
38156
|
enableControlButton() {
|
|
38107
38157
|
this.disabledClickableList.forEach((element) => {
|
|
38108
38158
|
element.el.css({ 'pointer-events': element.pointerEventValue });
|
|
38109
38159
|
});
|
|
38110
38160
|
}
|
|
38161
|
+
/**
|
|
38162
|
+
* Disable the control button
|
|
38163
|
+
*/
|
|
38111
38164
|
disabledControlButton() {
|
|
38112
38165
|
this.disabledClickableList.forEach((element) => {
|
|
38113
38166
|
element.el.css({ 'pointer-events': 'none' });
|
|
@@ -40631,6 +40684,9 @@ var VolumeFadeEvents;
|
|
|
40631
40684
|
(function (VolumeFadeEvents) {
|
|
40632
40685
|
VolumeFadeEvents["FADE"] = "core:volume:fade";
|
|
40633
40686
|
})(VolumeFadeEvents || (VolumeFadeEvents = {}));
|
|
40687
|
+
/**
|
|
40688
|
+
* @beta
|
|
40689
|
+
*/
|
|
40634
40690
|
class VolumeFade extends UICorePlugin {
|
|
40635
40691
|
_aboveBorderVolume = 0;
|
|
40636
40692
|
container = null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [AudioSelector](./player.audioselector.md) > [attributes](./player.audioselector.attributes.md)
|
|
4
|
+
|
|
5
|
+
## AudioSelector.attributes property
|
|
6
|
+
|
|
7
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
|
+
>
|
|
9
|
+
|
|
10
|
+
**Signature:**
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
get attributes(): {
|
|
14
|
+
class: string;
|
|
15
|
+
'data-track-selector': string;
|
|
16
|
+
};
|
|
17
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [AudioSelector](./player.audioselector.md) > [bindEvents](./player.audioselector.bindevents.md)
|
|
4
|
+
|
|
5
|
+
## AudioSelector.bindEvents() method
|
|
6
|
+
|
|
7
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
|
+
>
|
|
9
|
+
|
|
10
|
+
**Signature:**
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
bindEvents(): void;
|
|
14
|
+
```
|
|
15
|
+
**Returns:**
|
|
16
|
+
|
|
17
|
+
void
|
|
18
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [AudioSelector](./player.audioselector.md) > [events](./player.audioselector.events.md)
|
|
4
|
+
|
|
5
|
+
## AudioSelector.events property
|
|
6
|
+
|
|
7
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
|
+
>
|
|
9
|
+
|
|
10
|
+
**Signature:**
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
get events(): {
|
|
14
|
+
'click [data-track-selector-select]': string;
|
|
15
|
+
'click [data-track-selector-button]': string;
|
|
16
|
+
};
|
|
17
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [AudioSelector](./player.audioselector.md) > [hideSelectTrackMenu](./player.audioselector.hideselecttrackmenu.md)
|
|
4
|
+
|
|
5
|
+
## AudioSelector.hideSelectTrackMenu() method
|
|
6
|
+
|
|
7
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
|
+
>
|
|
9
|
+
|
|
10
|
+
**Signature:**
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
hideSelectTrackMenu(): void;
|
|
14
|
+
```
|
|
15
|
+
**Returns:**
|
|
16
|
+
|
|
17
|
+
void
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [AudioSelector](./player.audioselector.md) > [highlightCurrentTrack](./player.audioselector.highlightcurrenttrack.md)
|
|
4
|
+
|
|
5
|
+
## AudioSelector.highlightCurrentTrack() method
|
|
6
|
+
|
|
7
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
|
+
>
|
|
9
|
+
|
|
10
|
+
**Signature:**
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
highlightCurrentTrack(): void;
|
|
14
|
+
```
|
|
15
|
+
**Returns:**
|
|
16
|
+
|
|
17
|
+
void
|
|
18
|
+
|