@flowplayer/player 3.35.0-rc → 3.35.0
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/core.js +1 -1
- package/default.js +1 -1
- package/embed.js +2 -2
- package/package.json +1 -2364
- package/plugins/ads.js +1 -1
- package/plugins/analytics.js +1 -1
- package/plugins/rts.js +1 -1
- package/plugins/ssai.js +1 -1
- package/package/core/events.d.ts +0 -710
- package/package/core/events.js +0 -403
- package/package/core.js +0 -1
- package/package/default.js +0 -1
- package/package/embed.js +0 -7
- package/package/flowplayer.css +0 -1
- package/package/index.d.ts +0 -2238
- package/package/plugins/ads.d.ts +0 -4468
- package/package/plugins/ads.js +0 -7
- package/package/plugins/airplay.d.ts +0 -2152
- package/package/plugins/airplay.js +0 -1
- package/package/plugins/analytics.d.ts +0 -2146
- package/package/plugins/analytics.js +0 -1
- package/package/plugins/asel.d.ts +0 -2293
- package/package/plugins/asel.js +0 -1
- package/package/plugins/audio.d.ts +0 -2146
- package/package/plugins/audio.js +0 -1
- package/package/plugins/chapters.d.ts +0 -2155
- package/package/plugins/chapters.js +0 -1
- package/package/plugins/chromecast.d.ts +0 -2221
- package/package/plugins/chromecast.js +0 -1
- package/package/plugins/comscore.d.ts +0 -2146
- package/package/plugins/comscore.js +0 -1
- package/package/plugins/consent.d.ts +0 -2194
- package/package/plugins/consent.js +0 -1
- package/package/plugins/context-menu.d.ts +0 -2160
- package/package/plugins/context-menu.js +0 -1
- package/package/plugins/cuepoints.d.ts +0 -2270
- package/package/plugins/cuepoints.js +0 -1
- package/package/plugins/dash.d.ts +0 -2302
- package/package/plugins/dash.js +0 -2
- package/package/plugins/drm.d.ts +0 -2271
- package/package/plugins/drm.js +0 -1
- package/package/plugins/endscreen.d.ts +0 -2165
- package/package/plugins/endscreen.js +0 -1
- package/package/plugins/fas.d.ts +0 -2200
- package/package/plugins/fas.js +0 -1
- package/package/plugins/float-on-scroll.d.ts +0 -2234
- package/package/plugins/float-on-scroll.js +0 -1
- package/package/plugins/ga4.d.ts +0 -2146
- package/package/plugins/ga4.js +0 -1
- package/package/plugins/gemius.d.ts +0 -2171
- package/package/plugins/gemius.js +0 -1
- package/package/plugins/google-analytics.d.ts +0 -2146
- package/package/plugins/google-analytics.js +0 -1
- package/package/plugins/hls.d.ts +0 -2271
- package/package/plugins/hls.js +0 -1
- package/package/plugins/id3.d.ts +0 -2212
- package/package/plugins/id3.js +0 -1
- package/package/plugins/iframe.d.ts +0 -2147
- package/package/plugins/iframe.js +0 -1
- package/package/plugins/keyboard.d.ts +0 -2146
- package/package/plugins/keyboard.js +0 -1
- package/package/plugins/media-session.d.ts +0 -2146
- package/package/plugins/media-session.js +0 -1
- package/package/plugins/message.d.ts +0 -2205
- package/package/plugins/message.js +0 -1
- package/package/plugins/ovp.d.ts +0 -2208
- package/package/plugins/ovp.js +0 -1
- package/package/plugins/playlist.d.ts +0 -2465
- package/package/plugins/playlist.js +0 -1
- package/package/plugins/preview.d.ts +0 -2236
- package/package/plugins/preview.js +0 -1
- package/package/plugins/qsel.d.ts +0 -2236
- package/package/plugins/qsel.js +0 -1
- package/package/plugins/qul.d.ts +0 -2161
- package/package/plugins/qul.js +0 -1
- package/package/plugins/rts.d.ts +0 -2551
- package/package/plugins/rts.js +0 -25
- package/package/plugins/share.d.ts +0 -2181
- package/package/plugins/share.js +0 -1
- package/package/plugins/speed.d.ts +0 -2173
- package/package/plugins/speed.js +0 -1
- package/package/plugins/ssai.d.ts +0 -2502
- package/package/plugins/ssai.js +0 -7
- package/package/plugins/subtitles.d.ts +0 -2287
- package/package/plugins/subtitles.js +0 -1
- package/package/plugins/thumbnails.d.ts +0 -2164
- package/package/plugins/thumbnails.js +0 -1
- package/package/plugins/tizen.d.ts +0 -2152
- package/package/plugins/tizen.js +0 -1
- package/package/plugins/vtsel.d.ts +0 -2250
- package/package/plugins/vtsel.js +0 -1
- package/package/plugins/webos.d.ts +0 -2152
- package/package/plugins/webos.js +0 -1
- package/package/util/loader.d.ts +0 -2163
- package/package/util/loader.js +0 -63
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).flowplayer=e.flowplayer||{},e.flowplayer.cuepoints=t())}(this,function(){"use strict";const e="cuepoints",t="cuepointstart",n="cuepointend";var o=Object.freeze({__proto__:null,CUEPOINTS:e,CUEPOINT_START:t,CUEPOINT_END:n});const r="flowplayer-cue",i=(e,t)=>new(((e,t)=>{const n=e.get(t);if(!n)throw new Error(`no flowplayer component with the name ${t} exists`);const o=window.customElements.get(t);if(!o)throw new Error(`no default flowplayer component with the name ${t} exists`);const r=window.customElements.get(n);return"function"!=typeof r?o:r})(e._customElements,t))(e);function s(e,t,n){const o=function(e,t){const n=new CustomEvent(e,{detail:t,cancelable:!0});return t&&Object.defineProperty(n,"data",{get:()=>t}),n}(t,n);return e.dispatchEvent(o),e}function c(e){const t=e._customElements.get(r);t&&Array.from(e.root.querySelectorAll(t)).forEach(e=>{e.remove()})}function u(e,t){var n;const o=function(e,t){const n=e._customElements.get(t);return n&&e.root.querySelector(n)||void 0}(e,"flowplayer-timeline-bar"),c=e.duration,u=null===(n=null==e?void 0:e.opts)||void 0===n?void 0:n.draw_cuepoints;o&&!e.hasState("is-live")&&isFinite(c)&&Array.isArray(t)&&u&&t.forEach(t=>{if(void 0===t.startTime||t.startTime<0||!t.endTime||t.startTime===t.endTime)return;const n=Math.round(t.startTime/c*1e3)/10;if(n>100||n<0)return;const u=t.endTime-t.startTime,a=i(e,r);s(a,"cue:attributes",{left:n+"%",width:u/c*100+"%"}),o.append(a)})}!function(){let e=!1;try{const t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(e){}}();class FlowplayerComponent extends HTMLElement{constructor(e){super(),this.player=e}}class CueComponent extends FlowplayerComponent{constructor(e){super(e),this.className="fp-cuepoint",this.addEventListener("cue:attributes",e=>{this.style.setProperty("left",e.detail.left),this.style.setProperty("width",e.detail.width)})}}var a;const l=((a=class Cuepoints{constructor(e){((e,t,n)=>{window.customElements.get(t)||window.customElements.define(t,n),e.customElements.get(t)||e.customElements.set(t,t)})(e,r,CueComponent)}init(o,r,i){if(!i.reaper)return;const s=i.addTextTrack("metadata","fp-cuepoints");s.removeCue=function(e){this===a&&TextTrack.prototype.removeCue.call(s,e)},i.reaper.set("cuepoints",[]),i.on("config",function(t){var n;if(!i.reaper)return;(null===(n=t.data)||void 0===n?void 0:n.cuepoints)!==i.reaper.get("cuepoints")&&i.emit(e,{cuepoints:o.cuepoints})}),i.on("durationchange",()=>{i.reaper&&(c(i),u(i,i.reaper.get("cuepoints")))}),i.on(e,e=>{var o;if(!i.reaper)return;const r=(null===(o=e.data)||void 0===o?void 0:o.cuepoints)||[];i.reaper.set("cuepoints",r),Array.from(s.cues||{length:0}).forEach(e=>s.removeCue.call(this.constructor,e)),c(i),r.map(function(e){return function(e,o){try{const r=new VTTCue(o.startTime,o.endTime,o.text||"");return r.id=o.id||"",r.onenter=e.emit.bind(e,t,{cuepoint:o}),r.onexit=e.emit.bind(e,n,{cuepoint:o}),r}catch(e){if(o.startTime===o.endTime)return console.warn("Cue(:error)> startTime cannot equal endTime on this platform");throw e}}(i,e)}).forEach(function(e){e&&s.addCue(e)}),u(i,r)})}}).pluginName="cuepoints",a.events=o,a);return function(e,t){if("object"==typeof exports&&"undefined"!=typeof module)return t;if(null===document.currentScript)return t;"flowplayer"in e||(e.flowplayer={extensions:[]});const n=e.flowplayer;return"function"==typeof n?(n(t),t):(Array.isArray(n.extensions)||(n.extensions=[]),~n.extensions.indexOf(t)||n.extensions.push(t),t)}(window,l)});
|