@glomex/integration-web-component 1.1362.1 → 1.1363.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/build/index.d.ts +16 -2
- package/build/index.js +1 -1
- package/package.json +3 -3
package/build/index.d.ts
CHANGED
|
@@ -384,7 +384,9 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
|
|
|
384
384
|
/**
|
|
385
385
|
* Initiates playback of the media content.
|
|
386
386
|
*/
|
|
387
|
-
play(
|
|
387
|
+
play({ startMethod }?: {
|
|
388
|
+
startMethod: Exclude<StartMethod, StartMethod.PRE_CLICK>;
|
|
389
|
+
}): void;
|
|
388
390
|
/**
|
|
389
391
|
* Pauses the current media playback.
|
|
390
392
|
*/
|
|
@@ -592,7 +594,9 @@ export declare interface IntegrationElementEventMap {
|
|
|
592
594
|
* @inheritdoc IntegrationEvent.CONTENT_START
|
|
593
595
|
* @eventProperty
|
|
594
596
|
*/
|
|
595
|
-
[IntegrationEvent.CONTENT_START]: CustomEvent<
|
|
597
|
+
[IntegrationEvent.CONTENT_START]: CustomEvent<{
|
|
598
|
+
startMethod: StartMethod;
|
|
599
|
+
}>;
|
|
596
600
|
/**
|
|
597
601
|
* @inheritdoc IntegrationEvent.CONTENT_IMPRESSION
|
|
598
602
|
* @eventProperty
|
|
@@ -1414,6 +1418,16 @@ export declare enum ScriptType {
|
|
|
1414
1418
|
EXTERNAL_MEDIA_ITEM = "application/glomex-external-media-item+json"
|
|
1415
1419
|
}
|
|
1416
1420
|
|
|
1421
|
+
declare enum StartMethod {
|
|
1422
|
+
PRE_CLICK = "pre-click-to-play",
|
|
1423
|
+
CLICK = "click-to-play",
|
|
1424
|
+
AUTOPLAY_SCROLL = "autoplay-scroll",
|
|
1425
|
+
AUTOPLAY_SCROLL_OUT = "autoplay-scroll-out",
|
|
1426
|
+
CLICK_NEXT = "click-to-play-next",
|
|
1427
|
+
CLICK_REPLAY = "click-to-play-replay",
|
|
1428
|
+
AUTOPLAY_NEXT = "autoplay-next"
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1417
1431
|
declare interface TextTrack_2 {
|
|
1418
1432
|
/**
|
|
1419
1433
|
* Unique identifier for the track.
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,t,n,o,a,E,i,r,
|
|
1
|
+
var e,t,n,o,a,E,i,T,r,N,_,l,s,c,I,p,d,A,O,m,C,R,L,u;(s=e||(e={})).DEFAULT="turbo-integration",s.SCRIPT="turbo-script",s.IFRAME="turbo-iframe",s.FULLPAGE="turbo-fullpage",s.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",s.AMP_IFRAME="turbo-amp-iframe",(c=t||(t={})).INTEGRATION="glomex-integration",c.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",c.GLOMEX_MEDIA_ITEM="glomex-media-item",(I=n||(n={})).INTEGRATION_CONFIGS="application/glomex-integration-configs+json",I.EXTERNAL_MEDIA_ITEM="application/glomex-external-media-item+json",(p=o||(o={})).HIDDEN="hidden",p.INLINE="inline",p.DOCK="dock",p.LIGHTBOX="lightbox",p.FULLSCREEN="fullscreen",p.AMP_DOCK="amp-dock",(d=a||(a={})).READY="ready",d.INTEGRATION_ABORT="integrationabort",d.INTEGRATION_AD_AVAILABLE="integrationadavailable",d.INTEGRATION_PASSBACK="integrationpassback",d.USER_UPDATE_CONSENT="userupdateconsent",d.PLAYLIST_UPDATE="playlistupdate",d.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",d.CONTENT_SELECT="contentselect",d.CONTENT_START="contentstart",d.CONTENT_IMPRESSION="contentimpression",d.CONTENT_BUFFERING_START="contentbufferingstart",d.CONTENT_BUFFERING_END="contentbufferingend",d.CONTENT_STOP="contentstop",d.CONTENT_ERROR="contenterror",d.CONTENT_MARKER_REACHED="contentmarkerreached",d.CONTENT_TIME_UPDATE="timeupdate",d.CONTENT_SEEKING="seeking",d.CONTENT_SEEKED="seeked",d.CONTENT_PLAY="play",d.CONTENT_PAUSE="pause",d.CONTENT_VOLUME_CHANGE="volumechange",d.CONTENT_ENDED="ended",d.AD_IMPRESSION="adimpression",d.AD_BUFFERING_START="adbufferingstart",d.AD_BUFFERING_END="adbufferingend",d.AD_TIME_UPDATE="adtimeupdate",d.AD_VOLUME_CHANGE="advolumechange",d.AD_PAUSED="adpaused",d.AD_RESUMED="adresumed",d.AD_CLICK="adclick",d.AD_SKIPPED="adskipped",d.AD_COMPLETE="adcomplete",(A=E||(E={})).TIME_IN_SECONDS="time",A.PERCENT="percent",A.TIME_IN_SECONDS_RECURRING="timeRecurring",(O=i||(i={})).PREROLL="preroll",O.MIDROLL="midroll",O.POSTROLL="postroll",O.FIRST_QUARTILE="contentFirstQuartile",O.MIDPOINT="contentMidpoint",O.THIRD_QUARTILE="contentThirdQuartile",O.COMPLETE="contentComplete",O.STILL_INTERESTING="stillInteresting",O.REQUEST_RECOMMENDATIONS="requestRecommendations",(m=T||(T={})).NOT_FOUND="NotFound",m.NOT_AVAILABLE="NotAvailable",m.GEOBLOCKED="Geoblocked",m.YOUTH_PROTECTED="YouthProtected",(C=r||(r={})).HLS="application/vnd.apple.mpegurl",C.HLS_LEGACY="application/x-mpegURL",C.DASH="application/dash+xml",C.MP4="video/mp4",C.OGG="video/ogg",C.WEBM="video/webm",C.MP3="audio/mp3",C.AAC="audio/aac",C.WAV="audio/wav",C.OGG_AUDIO="audio/ogg",C.MPEG_AUDIO="audio/mpeg",C.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",C.JOYN="application/x-joyn-source",(R=N||(N={})).LIVE="live",R.VOD="vod",R.INTERACTIVE="interactive",R.EMBED="embed",(L=_||(_={})).PRE_CLICK="pre-click-to-play",L.CLICK="click-to-play",L.AUTOPLAY_SCROLL="autoplay-scroll",L.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",L.CLICK_NEXT="click-to-play-next",L.CLICK_REPLAY="click-to-play-replay",L.AUTOPLAY_NEXT="autoplay-next",(u=l||(l={})).CLEAR_PLAYLIST="clearPlaylist",u.SELECT_PLAYLIST_ITEM="selectPlaylistItem",u.ENDED="ended",u.CONTENT_ERROR="contentError",u.API_STOP="apiStop",u.LIVESTREAM_STOP="livestreamStop",u.PAGE_HIDE="pageHide";let S="player.glomex.com",D=`https://${S}/integration/1/integration.js`;function M(e){return`https://${S}/variant/${e}/variant.css`}function P(){if(window.customElements.get(t.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${D}');`,e.type="module",(document.head||document.body).appendChild(e)}function g(e){if(document.querySelector(`link[href="${M(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=M(e),(document.head||document.body).appendChild(t)}export{t as ComponentName,l as ContentStopReason,a as IntegrationEvent,i as KnownMarkerName,E as MarkerType,T as MediaItemErrorCode,r as Mimetype,N as PlaybackMode,o as PresentationMode,n as ScriptType,M as getIntegrationCssUrl,P as loadIntegrationComponent,g as loadIntegrationStyles};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glomex/integration-web-component",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1363.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",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@biomejs/biome": "^1.9.4",
|
|
33
|
-
"@glomex/integration": "^1.
|
|
33
|
+
"@glomex/integration": "^1.1363.1",
|
|
34
34
|
"@microsoft/api-extractor": "^7.52.8",
|
|
35
35
|
"@rslib/core": "^0.8.0",
|
|
36
36
|
"typescript": "^5.8.3"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"license": "MIT",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "de15b54c089f571776a787c187857838cc02d263"
|
|
43
43
|
}
|