@glomex/integration-web-component 1.1524.4 → 1.1525.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/dist/index.d.ts CHANGED
@@ -2451,62 +2451,20 @@ export declare interface SourceMediaItemBase {
2451
2451
  export declare interface SourceMediaItemDrm extends SourceMediaItemBase {
2452
2452
  /**
2453
2453
  * The DRM system this source requires.
2454
- *
2455
- * When set together with the generic fields (`licenseUrl`,
2456
- * `certificateUrl`), identifies the single DRM system those fields
2457
- * apply to. When using legacy per-system fields, can be omitted and
2458
- * will be inferred during normalization.
2459
2454
  */
2460
- drmSystem?: DrmSystem;
2455
+ drmSystem: DrmSystem;
2461
2456
  /**
2462
2457
  * DRM token to include in license requests for the selected DRM system.
2463
2458
  */
2464
2459
  token?: string;
2465
2460
  /**
2466
2461
  * License server URL for the selected DRM system.
2467
- * Preferred over the system-specific `fairplayLicenseUri` / `widevineLicenseUri` / `playreadyLicenseUri`.
2468
2462
  */
2469
- licenseUrl?: string;
2463
+ licenseUrl: string;
2470
2464
  /**
2471
2465
  * Certificate URL (relevant for FairPlay).
2472
- * Preferred over `fairplayCertificateUri`.
2473
2466
  */
2474
2467
  certificateUrl?: string;
2475
- /**
2476
- * Fairplay license URI.
2477
- * @deprecated Use {@link licenseUrl} with `drmSystem: DrmSystem.FAIRPLAY` instead.
2478
- */
2479
- fairplayLicenseUri?: string;
2480
- /**
2481
- * FairPlay certificate URI.
2482
- * @deprecated Use {@link certificateUrl} with `drmSystem: DrmSystem.FAIRPLAY` instead.
2483
- */
2484
- fairplayCertificateUri?: string;
2485
- /**
2486
- * FairPlay token.
2487
- * @deprecated Use `token` with `drmSystem: DrmSystem.FAIRPLAY` instead.
2488
- */
2489
- fairplayToken?: string;
2490
- /**
2491
- * Widevine license URI.
2492
- * @deprecated Use {@link licenseUrl} with `drmSystem: DrmSystem.WIDEVINE` instead.
2493
- */
2494
- widevineLicenseUri?: string;
2495
- /**
2496
- * Widevine token.
2497
- * @deprecated Use `token` with `drmSystem: DrmSystem.WIDEVINE` instead.
2498
- */
2499
- widevineToken?: string;
2500
- /**
2501
- * PlayReady license URI.
2502
- * @deprecated Use {@link licenseUrl} with `drmSystem: DrmSystem.PLAYREADY` instead.
2503
- */
2504
- playreadyLicenseUri?: string;
2505
- /**
2506
- * PlayReady token.
2507
- * @deprecated Use `token` with `drmSystem: DrmSystem.PLAYREADY` instead.
2508
- */
2509
- playreadyToken?: string;
2510
2468
  }
2511
2469
 
2512
2470
  export declare interface SourceMediaItemJoyn {
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- function e(e){return"provider"in e?e:{id:e.id||"",provider:function(e){for(let t of e??[])if(t.mimetype===Y.JOYN||(t.widevineLicenseUri||t.fairplayLicenseUri||t.playreadyLicenseUri||t.licenseUrl||"").includes("joyn.de"))return k.JOYN;for(let t of e??[])if("src"in t&&t.src?.includes("glomex"))return k.GLOMEX;return k.EXTERNAL}(e.sources),item:e}}(I=M||(M={})).DEFAULT="turbo-integration",I.SCRIPT="turbo-script",I.IFRAME="turbo-iframe",I.FULLPAGE="turbo-fullpage",I.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",I.AMP_IFRAME="turbo-amp-iframe",(T=g||(g={})).INTEGRATION="glomex-integration",T.EXTERNAL_MEDIA_ITEM="external-media-item",T.GLOMEX_MEDIA_ITEM="glomex-media-item",T.JOYN_MEDIA_ITEM="joyn-media-item",(d=U||(U={})).INTEGRATION_CONFIGS="application/integration-configs+json",d.INTEGRATION_CONFIGS_LEGACY="application/glomex-integration-configs+json",d.EXTERNAL_MEDIA_ITEM="application/external-media-item+json",d.EXTERNAL_MEDIA_ITEM_LEGACY="application/glomex-external-media-item+json";let t="turbo-player";(s=y||(y={})).NET_ID="netId",s.PPID="ppid",s.UTIQ_ID="utiqId",s.LIVERAMP_ID="liverampId",s.PAIR_ID="pairId",s.ATS_DIRECT="atsDirect",(N=G||(G={})).AAID="aaid",N.AFAI="afai",N.ASIA="asia",N.ASID="asid",N.TIFA="tifa",N.VAID="vaid",N.IDFA="idfa",N.IDFV="idfv",N.LGUDID="lgudid",N.MSAI="msai",N.OAID="oaid",N.PSNAI="psnai",N.RIDA="rida",N.VIDA="vida",N.WAID="waid",(_=f||(f={})).HIDDEN="hidden",_.INLINE="inline",_.DOCK="dock",_.LIGHTBOX="lightbox",_.LIGHTBOX_EXTERNAL="lightbox-external",_.FULLSCREEN="fullscreen",_.AMP_DOCK="amp-dock",(A=v||(v={})).READY="ready",A.INTEGRATION_ABORT="integrationabort",A.INTEGRATION_AD_AVAILABLE="integrationadavailable",A.INTEGRATION_PASSBACK="integrationpassback",A.USER_UPDATE_CONSENT="userupdateconsent",A.PLAYLIST_UPDATE="playlistupdate",A.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",A.CONTENT_SELECT="contentselect",A.CONTENT_START="contentstart",A.CONTENT_IMPRESSION="contentimpression",A.CONTENT_BUFFERING_START="contentbufferingstart",A.CONTENT_BUFFERING_END="contentbufferingend",A.CONTENT_STOP="contentstop",A.CONTENT_SUSPEND="contentsuspend",A.CONTENT_ERROR="contenterror",A.CONTENT_MARKER_REACHED="contentmarkerreached",A.CONTENT_TIME_UPDATE="timeupdate",A.CONTENT_SEEKING="seeking",A.CONTENT_SEEKED="seeked",A.CONTENT_PLAY="play",A.CONTENT_PAUSE="pause",A.CONTENT_VOLUME_CHANGE="volumechange",A.CONTENT_RATECHANGE="ratechange",A.CONTENT_ENDED="ended",A.AD_BREAK_REQUEST="adbreakrequest",A.AD_BREAK_REQUEST_ERROR="adbreakrequesterror",A.AD_LOADED="adloaded",A.AD_IMPRESSION="adimpression",A.AD_BUFFERING_START="adbufferingstart",A.AD_BUFFERING_END="adbufferingend",A.AD_TIME_UPDATE="adtimeupdate",A.AD_VOLUME_CHANGE="advolumechange",A.AD_PAUSED="adpaused",A.AD_RESUMED="adresumed",A.AD_CLICK="adclick",A.AD_SKIPPED="adskipped",A.AD_COMPLETE="adcomplete",A.AD_ERROR="aderror",A.UI_INTERACTION="uiinteraction",(l=F||(F={})).TIME_IN_SECONDS="time",l.PERCENT="percent",l.TIME_IN_SECONDS_RECURRING="timeRecurring",(c=b||(b={})).PREROLL="preroll",c.MIDROLL="midroll",c.POSTROLL="postroll",c.FIRST_QUARTILE="contentFirstQuartile",c.MIDPOINT="contentMidpoint",c.THIRD_QUARTILE="contentThirdQuartile",c.COMPLETE="contentComplete",c.STILL_INTERESTING="stillInteresting",c.REQUEST_RECOMMENDATIONS="requestRecommendations",(R=x||(x={})).NOT_FOUND="NotFound",R.FORBIDDEN="Forbidden",R.HIDDEN="Hidden",R.NO_CONTENT="NoContent",R.GENERIC="Generic",(p=h||(h={})).NOT_FOUND="NotFound",p.NOT_AVAILABLE="NotAvailable",p.GEOBLOCKED="Geoblocked",p.YOUTH_PROTECTED="YouthProtected",p.TERMINATED="Terminated",p.EXPIRED="Expired",p.LOGIN_REQUIRED="LoginRequired",p.HIGHER_TIER_ACCOUNT_REQUIRED="HigherTierAccountRequired",p.VPN_DETECTED="VpnDetected",p.AGE_VERIFICATION_REQUIRED="AgeVerificationRequired",p.PIN_REQUIRED="PinRequired",p.INVALID_PIN="InvalidPin",p.GENERIC="Generic",(m=k||(k={})).GLOMEX="glomex",m.JOYN="joyn",m.EXTERNAL="external",(O=Y||(Y={})).HLS="application/vnd.apple.mpegurl",O.HLS_LEGACY="application/x-mpegURL",O.DASH="application/dash+xml",O.MP4="video/mp4",O.OGG="video/ogg",O.WEBM="video/webm",O.MP3="audio/mp3",O.AAC="audio/aac",O.WAV="audio/wav",O.OGG_AUDIO="audio/ogg",O.MPEG_AUDIO="audio/mpeg",O.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",O.JOYN="application/x-joyn-source",(D=V||(V={})).LIVE="live",D.VOD="vod",D.INTERACTIVE="interactive",D.EMBED="embed",(L=B||(B={})).FAIRPLAY="com.apple.fps",L.WIDEVINE="com.widevine.alpha",L.PLAYREADY="com.microsoft.playready",(C=H||(H={})).PREROLL="preroll",C.MIDROLL="midroll",C.POSTROLL="postroll",C.OVERLAY="overlay",(u=X||(X={})).LINEAR="linear",u.OVERLAY="overlay",u.CUTIN="cutin",u.PAUSE="pause",(P=K||(K={})).PRE_CLICK="pre-click-to-play",P.CLICK="click-to-play",P.AUTOPLAY_SCROLL="autoplay-scroll",P.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",P.CLICK_NEXT="click-to-play-next",P.CLICK_REPLAY="click-to-play-replay",P.AUTOPLAY_NEXT="autoplay-next",(S=w||(w={})).CLEAR_PLAYLIST="clearPlaylist",S.SELECT_PLAYLIST_ITEM="selectPlaylistItem",S.ENDED="ended",S.CONTENT_ERROR="contentError",S.API_STOP="apiStop",S.LIVESTREAM_STOP="livestreamStop",S.LIVESTREAM_NOT_STARTED="livestreamNotStarted",S.PAGE_HIDE="pageHide",S.BEFORE_UNLOAD="beforeUnload";let a="player.glomex.com",n=`https://${a}/integration/1/integration.js`;function o(e){return`https://${a}/variant/${e}/variant.css`}function E(){if(window.customElements.get(g.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${n}');`,e.type="module",(document.head||document.body).appendChild(e)}function i(e){if(document.querySelector(`link[href="${o(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=o(e),(document.head||document.body).appendChild(t)}async function r(){await customElements.whenDefined(g.INTEGRATION);let e=customElements.get(g.INTEGRATION);if(!e?.sharedContext)throw Error("sharedContext not available on glomex-integration element");return e.sharedContext}var I,T,d,s,N,_,A,l,c,R,p,m,O,D,L,C,u,P,S,M,g,U,y,G,f,v,F,b,x,h,k,Y,V,B,H,X,K,w,Q="turbo",j="glomex";export{H as AdBreakName,X as AdFormat,g as ComponentName,w as ContentStopReason,G as DeviceIdName,B as DrmSystem,t as EXTERNAL_PLAYER_NAME,v as IntegrationEvent,b as KnownMarkerName,F as MarkerType,h as MediaItemErrorCode,k as MediaItemProvider,x as MediaProviderErrorCode,Y as Mimetype,M as Origin,V as PlaybackMode,f as PresentationMode,U as ScriptType,K as StartMethod,y as UserIdName,o as getIntegrationCssUrl,r as getSharedContext,E as loadIntegrationComponent,i as loadIntegrationStyles,e as normalizeMediaItem,Q as INTERNAL_PREFIX,j as PUBLIC_PREFIX};
1
+ function e(e){if("provider"in e)return e;let t=e.sources?.some(e=>e.mimetype===Y.JOYN);return{id:e.id||"",provider:t?k.JOYN:k.EXTERNAL,item:e}}(I=M||(M={})).DEFAULT="turbo-integration",I.SCRIPT="turbo-script",I.IFRAME="turbo-iframe",I.FULLPAGE="turbo-fullpage",I.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",I.AMP_IFRAME="turbo-amp-iframe",(T=g||(g={})).INTEGRATION="glomex-integration",T.EXTERNAL_MEDIA_ITEM="external-media-item",T.GLOMEX_MEDIA_ITEM="glomex-media-item",T.JOYN_MEDIA_ITEM="joyn-media-item",(d=U||(U={})).INTEGRATION_CONFIGS="application/integration-configs+json",d.INTEGRATION_CONFIGS_LEGACY="application/glomex-integration-configs+json",d.EXTERNAL_MEDIA_ITEM="application/external-media-item+json",d.EXTERNAL_MEDIA_ITEM_LEGACY="application/glomex-external-media-item+json";let t="turbo-player";(N=G||(G={})).NET_ID="netId",N.PPID="ppid",N.UTIQ_ID="utiqId",N.LIVERAMP_ID="liverampId",N.PAIR_ID="pairId",N.ATS_DIRECT="atsDirect",(_=y||(y={})).AAID="aaid",_.AFAI="afai",_.ASIA="asia",_.ASID="asid",_.TIFA="tifa",_.VAID="vaid",_.IDFA="idfa",_.IDFV="idfv",_.LGUDID="lgudid",_.MSAI="msai",_.OAID="oaid",_.PSNAI="psnai",_.RIDA="rida",_.VIDA="vida",_.WAID="waid",(s=v||(v={})).HIDDEN="hidden",s.INLINE="inline",s.DOCK="dock",s.LIGHTBOX="lightbox",s.LIGHTBOX_EXTERNAL="lightbox-external",s.FULLSCREEN="fullscreen",s.AMP_DOCK="amp-dock",(A=F||(F={})).READY="ready",A.INTEGRATION_ABORT="integrationabort",A.INTEGRATION_AD_AVAILABLE="integrationadavailable",A.INTEGRATION_PASSBACK="integrationpassback",A.USER_UPDATE_CONSENT="userupdateconsent",A.PLAYLIST_UPDATE="playlistupdate",A.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",A.CONTENT_SELECT="contentselect",A.CONTENT_START="contentstart",A.CONTENT_IMPRESSION="contentimpression",A.CONTENT_BUFFERING_START="contentbufferingstart",A.CONTENT_BUFFERING_END="contentbufferingend",A.CONTENT_STOP="contentstop",A.CONTENT_SUSPEND="contentsuspend",A.CONTENT_ERROR="contenterror",A.CONTENT_MARKER_REACHED="contentmarkerreached",A.CONTENT_TIME_UPDATE="timeupdate",A.CONTENT_SEEKING="seeking",A.CONTENT_SEEKED="seeked",A.CONTENT_PLAY="play",A.CONTENT_PAUSE="pause",A.CONTENT_VOLUME_CHANGE="volumechange",A.CONTENT_RATECHANGE="ratechange",A.CONTENT_ENDED="ended",A.AD_BREAK_REQUEST="adbreakrequest",A.AD_BREAK_REQUEST_ERROR="adbreakrequesterror",A.AD_LOADED="adloaded",A.AD_IMPRESSION="adimpression",A.AD_BUFFERING_START="adbufferingstart",A.AD_BUFFERING_END="adbufferingend",A.AD_TIME_UPDATE="adtimeupdate",A.AD_VOLUME_CHANGE="advolumechange",A.AD_PAUSED="adpaused",A.AD_RESUMED="adresumed",A.AD_CLICK="adclick",A.AD_SKIPPED="adskipped",A.AD_COMPLETE="adcomplete",A.AD_ERROR="aderror",A.UI_INTERACTION="uiinteraction",(l=f||(f={})).TIME_IN_SECONDS="time",l.PERCENT="percent",l.TIME_IN_SECONDS_RECURRING="timeRecurring",(R=b||(b={})).PREROLL="preroll",R.MIDROLL="midroll",R.POSTROLL="postroll",R.FIRST_QUARTILE="contentFirstQuartile",R.MIDPOINT="contentMidpoint",R.THIRD_QUARTILE="contentThirdQuartile",R.COMPLETE="contentComplete",R.STILL_INTERESTING="stillInteresting",R.REQUEST_RECOMMENDATIONS="requestRecommendations",(c=x||(x={})).NOT_FOUND="NotFound",c.FORBIDDEN="Forbidden",c.HIDDEN="Hidden",c.NO_CONTENT="NoContent",c.GENERIC="Generic",(p=h||(h={})).NOT_FOUND="NotFound",p.NOT_AVAILABLE="NotAvailable",p.GEOBLOCKED="Geoblocked",p.YOUTH_PROTECTED="YouthProtected",p.TERMINATED="Terminated",p.EXPIRED="Expired",p.LOGIN_REQUIRED="LoginRequired",p.HIGHER_TIER_ACCOUNT_REQUIRED="HigherTierAccountRequired",p.VPN_DETECTED="VpnDetected",p.AGE_VERIFICATION_REQUIRED="AgeVerificationRequired",p.PIN_REQUIRED="PinRequired",p.INVALID_PIN="InvalidPin",p.GENERIC="Generic",(m=k||(k={})).GLOMEX="glomex",m.JOYN="joyn",m.EXTERNAL="external",(O=Y||(Y={})).HLS="application/vnd.apple.mpegurl",O.HLS_LEGACY="application/x-mpegURL",O.DASH="application/dash+xml",O.MP4="video/mp4",O.OGG="video/ogg",O.WEBM="video/webm",O.MP3="audio/mp3",O.AAC="audio/aac",O.WAV="audio/wav",O.OGG_AUDIO="audio/ogg",O.MPEG_AUDIO="audio/mpeg",O.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",O.JOYN="application/x-joyn-source",(D=V||(V={})).LIVE="live",D.VOD="vod",D.INTERACTIVE="interactive",D.EMBED="embed",(L=B||(B={})).FAIRPLAY="com.apple.fps",L.WIDEVINE="com.widevine.alpha",L.PLAYREADY="com.microsoft.playready",(C=H||(H={})).PREROLL="preroll",C.MIDROLL="midroll",C.POSTROLL="postroll",C.OVERLAY="overlay",(u=X||(X={})).LINEAR="linear",u.OVERLAY="overlay",u.CUTIN="cutin",u.PAUSE="pause",(P=K||(K={})).PRE_CLICK="pre-click-to-play",P.CLICK="click-to-play",P.AUTOPLAY_SCROLL="autoplay-scroll",P.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",P.CLICK_NEXT="click-to-play-next",P.CLICK_REPLAY="click-to-play-replay",P.AUTOPLAY_NEXT="autoplay-next",(S=w||(w={})).CLEAR_PLAYLIST="clearPlaylist",S.SELECT_PLAYLIST_ITEM="selectPlaylistItem",S.ENDED="ended",S.CONTENT_ERROR="contentError",S.API_STOP="apiStop",S.LIVESTREAM_STOP="livestreamStop",S.LIVESTREAM_NOT_STARTED="livestreamNotStarted",S.PAGE_HIDE="pageHide",S.BEFORE_UNLOAD="beforeUnload";let a="player.glomex.com",n=`https://${a}/integration/1/integration.js`;function o(e){return`https://${a}/variant/${e}/variant.css`}function E(){if(window.customElements.get(g.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${n}');`,e.type="module",(document.head||document.body).appendChild(e)}function i(e){if(document.querySelector(`link[href="${o(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=o(e),(document.head||document.body).appendChild(t)}async function r(){await customElements.whenDefined(g.INTEGRATION);let e=customElements.get(g.INTEGRATION);if(!e?.sharedContext)throw Error("sharedContext not available on glomex-integration element");return e.sharedContext}var I,T,d,N,_,s,A,l,R,c,p,m,O,D,L,C,u,P,S,M,g,U,G,y,v,F,f,b,x,h,k,Y,V,B,H,X,K,w,Q="turbo",q="glomex";export{H as AdBreakName,X as AdFormat,g as ComponentName,w as ContentStopReason,y as DeviceIdName,B as DrmSystem,t as EXTERNAL_PLAYER_NAME,F as IntegrationEvent,b as KnownMarkerName,f as MarkerType,h as MediaItemErrorCode,k as MediaItemProvider,x as MediaProviderErrorCode,Y as Mimetype,M as Origin,V as PlaybackMode,v as PresentationMode,U as ScriptType,K as StartMethod,G as UserIdName,o as getIntegrationCssUrl,r as getSharedContext,E as loadIntegrationComponent,i as loadIntegrationStyles,e as normalizeMediaItem,Q as INTERNAL_PREFIX,q as PUBLIC_PREFIX};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glomex/integration-web-component",
3
- "version": "1.1524.4",
3
+ "version": "1.1525.0",
4
4
  "description": "Web component and types to integrate the glomex player",
5
5
  "documentation": "https://docs.glomex.com",
6
6
  "homepage": "https://glomex.com",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@biomejs/biome": "catalog:",
35
- "@glomex/integration": "1.1524.4",
35
+ "@glomex/integration": "1.1525.0",
36
36
  "@microsoft/api-extractor": "catalog:",
37
37
  "@rslib/core": "catalog:",
38
38
  "npm-run-all": "catalog:",
@@ -42,5 +42,5 @@
42
42
  "access": "public"
43
43
  },
44
44
  "license": "MIT",
45
- "gitHead": "e023a1933239cadf6870f5b492af68d86048e671"
45
+ "gitHead": "cbcc543d2add8f4e558082291e7c17bd4cb134cd"
46
46
  }