@glomex/integration-web-component 1.1514.5 → 1.1516.1
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 +22 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -204,7 +204,6 @@ export declare interface ContentSource {
|
|
|
204
204
|
playbackMode: PlaybackMode;
|
|
205
205
|
entitlementToken?: string;
|
|
206
206
|
drm: boolean;
|
|
207
|
-
liveEdgeTolerance: number;
|
|
208
207
|
}
|
|
209
208
|
|
|
210
209
|
export declare enum ContentStopReason {
|
|
@@ -214,6 +213,7 @@ export declare enum ContentStopReason {
|
|
|
214
213
|
CONTENT_ERROR = "contentError",
|
|
215
214
|
API_STOP = "apiStop",
|
|
216
215
|
LIVESTREAM_STOP = "livestreamStop",
|
|
216
|
+
LIVESTREAM_NOT_STARTED = "livestreamNotStarted",
|
|
217
217
|
PAGE_HIDE = "pageHide",
|
|
218
218
|
BEFORE_UNLOAD = "beforeUnload"
|
|
219
219
|
}
|
|
@@ -626,6 +626,10 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
|
|
|
626
626
|
get wallClockTime(): number;
|
|
627
627
|
/**
|
|
628
628
|
* Seeks the media to the specified time, updating the current playback time.
|
|
629
|
+
*
|
|
630
|
+
* An initial start time can be assigned after the {@link IntegrationEvent.CONTENT_LOADSTART} event.
|
|
631
|
+
* Alternatively, set {@link MediaItem.resumePosition} on the media item to have it applied automatically on load.
|
|
632
|
+
*
|
|
629
633
|
* @param time - The time (in seconds) to seek to.
|
|
630
634
|
*/
|
|
631
635
|
set currentTime(time: number);
|
|
@@ -887,6 +891,11 @@ export declare interface IntegrationElementEventMap {
|
|
|
887
891
|
sessionId: string;
|
|
888
892
|
source: ContentSource;
|
|
889
893
|
}>;
|
|
894
|
+
/**
|
|
895
|
+
* @inheritdoc IntegrationEvent.CONTENT_LOADSTART
|
|
896
|
+
* @eventProperty
|
|
897
|
+
*/
|
|
898
|
+
[IntegrationEvent.CONTENT_LOADSTART]: CustomEvent<void>;
|
|
890
899
|
/**
|
|
891
900
|
* @inheritdoc IntegrationEvent.CONTENT_START
|
|
892
901
|
* @eventProperty
|
|
@@ -1111,6 +1120,13 @@ export declare enum IntegrationEvent {
|
|
|
1111
1120
|
* @eventProperty
|
|
1112
1121
|
*/
|
|
1113
1122
|
CONTENT_SELECT = "contentselect",
|
|
1123
|
+
/**
|
|
1124
|
+
* When the content source has started loading.
|
|
1125
|
+
* Fired before {@link IntegrationEvent.CONTENT_SELECT} once the media element's `loadstart` event occurs.
|
|
1126
|
+
* An initial {@link IntegrationElement#currentTime} can be assigned after this event.
|
|
1127
|
+
* @eventProperty
|
|
1128
|
+
*/
|
|
1129
|
+
CONTENT_LOADSTART = "loadstart",
|
|
1114
1130
|
/**
|
|
1115
1131
|
* When content started initially (e.g. before ad break).
|
|
1116
1132
|
* @eventProperty
|
|
@@ -1500,6 +1516,11 @@ export declare interface MediaItem {
|
|
|
1500
1516
|
* Duration of the media item in seconds. Not defined when livestream.
|
|
1501
1517
|
*/
|
|
1502
1518
|
duration?: number;
|
|
1519
|
+
/**
|
|
1520
|
+
* Position (in seconds) at which playback should resume.
|
|
1521
|
+
* Applied automatically when the media item is loaded.
|
|
1522
|
+
*/
|
|
1523
|
+
resumePosition?: number;
|
|
1503
1524
|
/**
|
|
1504
1525
|
* Description of the media item.
|
|
1505
1526
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e){if("provider"in e)return e;let t=e.sources?.some(e=>e.mimetype===k.JOYN);return{id:e.id||"",provider:t?h.JOYN:h.EXTERNAL,item:e}}(I=S||(S={})).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=M||(M={})).INTEGRATION="glomex-integration",T.EXTERNAL_MEDIA_ITEM="external-media-item",T.GLOMEX_MEDIA_ITEM="glomex-media-item",T.JOYN_MEDIA_ITEM="joyn-media-item",(
|
|
1
|
+
function e(e){if("provider"in e)return e;let t=e.sources?.some(e=>e.mimetype===k.JOYN);return{id:e.id||"",provider:t?h.JOYN:h.EXTERNAL,item:e}}(I=S||(S={})).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=M||(M={})).INTEGRATION="glomex-integration",T.EXTERNAL_MEDIA_ITEM="external-media-item",T.GLOMEX_MEDIA_ITEM="glomex-media-item",T.JOYN_MEDIA_ITEM="joyn-media-item",(_=g||(g={})).INTEGRATION_CONFIGS="application/integration-configs+json",_.INTEGRATION_CONFIGS_LEGACY="application/glomex-integration-configs+json",_.EXTERNAL_MEDIA_ITEM="application/external-media-item+json",_.EXTERNAL_MEDIA_ITEM_LEGACY="application/glomex-external-media-item+json";let t="turbo-player";(d=U||(U={})).NET_ID="netId",d.SEVEN_PASS_ID="sevenPassId",d.PPID="ppid",d.UTIQ_ID="utiqId",d.LIVERAMP_ID="liverampId",d.PAIR_ID="pairId",(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",(A=y||(y={})).HIDDEN="hidden",A.INLINE="inline",A.DOCK="dock",A.LIGHTBOX="lightbox",A.LIGHTBOX_EXTERNAL="lightbox-external",A.FULLSCREEN="fullscreen",A.AMP_DOCK="amp-dock",(s=v||(v={})).READY="ready",s.INTEGRATION_ABORT="integrationabort",s.INTEGRATION_AD_AVAILABLE="integrationadavailable",s.INTEGRATION_PASSBACK="integrationpassback",s.USER_UPDATE_CONSENT="userupdateconsent",s.PLAYLIST_UPDATE="playlistupdate",s.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",s.CONTENT_SELECT="contentselect",s.CONTENT_LOADSTART="loadstart",s.CONTENT_START="contentstart",s.CONTENT_IMPRESSION="contentimpression",s.CONTENT_BUFFERING_START="contentbufferingstart",s.CONTENT_BUFFERING_END="contentbufferingend",s.CONTENT_STOP="contentstop",s.CONTENT_ERROR="contenterror",s.CONTENT_MARKER_REACHED="contentmarkerreached",s.CONTENT_TIME_UPDATE="timeupdate",s.CONTENT_SEEKING="seeking",s.CONTENT_SEEKED="seeked",s.CONTENT_PLAY="play",s.CONTENT_PAUSE="pause",s.CONTENT_VOLUME_CHANGE="volumechange",s.CONTENT_RATECHANGE="ratechange",s.CONTENT_ENDED="ended",s.AD_BREAK_REQUEST="adbreakrequest",s.AD_BREAK_REQUEST_ERROR="adbreakrequesterror",s.AD_LOADED="adloaded",s.AD_IMPRESSION="adimpression",s.AD_BUFFERING_START="adbufferingstart",s.AD_BUFFERING_END="adbufferingend",s.AD_TIME_UPDATE="adtimeupdate",s.AD_VOLUME_CHANGE="advolumechange",s.AD_PAUSED="adpaused",s.AD_RESUMED="adresumed",s.AD_CLICK="adclick",s.AD_SKIPPED="adskipped",s.AD_COMPLETE="adcomplete",s.AD_ERROR="aderror",s.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=f||(f={})).NOT_FOUND="NotFound",c.FORBIDDEN="Forbidden",c.HIDDEN="Hidden",c.NO_CONTENT="NoContent",c.GENERIC="Generic",(O=x||(x={})).NOT_FOUND="NotFound",O.NOT_AVAILABLE="NotAvailable",O.GEOBLOCKED="Geoblocked",O.YOUTH_PROTECTED="YouthProtected",O.TERMINATED="Terminated",O.EXPIRED="Expired",O.LOGIN_REQUIRED="LoginRequired",O.HIGHER_TIER_ACCOUNT_REQUIRED="HigherTierAccountRequired",O.VPN_DETECTED="VpnDetected",O.AGE_VERIFICATION_REQUIRED="AgeVerificationRequired",O.PIN_REQUIRED="PinRequired",O.INVALID_PIN="InvalidPin",O.GENERIC="Generic",(p=h||(h={})).GLOMEX="glomex",p.JOYN="joyn",p.EXTERNAL="external",(m=k||(k={})).HLS="application/vnd.apple.mpegurl",m.HLS_LEGACY="application/x-mpegURL",m.DASH="application/dash+xml",m.MP4="video/mp4",m.OGG="video/ogg",m.WEBM="video/webm",m.MP3="audio/mp3",m.AAC="audio/aac",m.WAV="audio/wav",m.OGG_AUDIO="audio/ogg",m.MPEG_AUDIO="audio/mpeg",m.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",m.JOYN="application/x-joyn-source",(D=Y||(Y={})).LIVE="live",D.VOD="vod",D.INTERACTIVE="interactive",D.EMBED="embed",(L=V||(V={})).PREROLL="preroll",L.MIDROLL="midroll",L.POSTROLL="postroll",L.OVERLAY="overlay",(C=B||(B={})).LINEAR="linear",C.OVERLAY="overlay",C.CUTIN="cutin",C.PAUSE="pause",(u=H||(H={})).PRE_CLICK="pre-click-to-play",u.CLICK="click-to-play",u.AUTOPLAY_SCROLL="autoplay-scroll",u.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",u.CLICK_NEXT="click-to-play-next",u.CLICK_REPLAY="click-to-play-replay",u.AUTOPLAY_NEXT="autoplay-next",(P=X||(X={})).CLEAR_PLAYLIST="clearPlaylist",P.SELECT_PLAYLIST_ITEM="selectPlaylistItem",P.ENDED="ended",P.CONTENT_ERROR="contentError",P.API_STOP="apiStop",P.LIVESTREAM_STOP="livestreamStop",P.LIVESTREAM_NOT_STARTED="livestreamNotStarted",P.PAGE_HIDE="pageHide",P.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(M.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(M.INTEGRATION);let e=customElements.get(M.INTEGRATION);if(!e?.sharedContext)throw Error("sharedContext not available on glomex-integration element");return e.sharedContext}var I,T,_,d,N,A,s,l,R,c,O,p,m,D,L,C,u,P,S,M,g,U,G,y,v,F,b,f,x,h,k,Y,V,B,H,X,K="turbo",w="glomex";export{V as AdBreakName,B as AdFormat,M as ComponentName,X as ContentStopReason,G as DeviceIdName,t as EXTERNAL_PLAYER_NAME,v as IntegrationEvent,b as KnownMarkerName,F as MarkerType,x as MediaItemErrorCode,h as MediaItemProvider,f as MediaProviderErrorCode,k as Mimetype,S as Origin,Y as PlaybackMode,y as PresentationMode,g as ScriptType,H as StartMethod,U as UserIdName,o as getIntegrationCssUrl,r as getSharedContext,E as loadIntegrationComponent,i as loadIntegrationStyles,e as normalizeMediaItem,K as INTERNAL_PREFIX,w as PUBLIC_PREFIX};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glomex/integration-web-component",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1516.1",
|
|
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.
|
|
35
|
+
"@glomex/integration": "1.1516.1",
|
|
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": "
|
|
45
|
+
"gitHead": "5aca430735366fce0cccaf9ef75545542af04657"
|
|
46
46
|
}
|