@gcorevideo/player 2.22.20 → 2.22.21

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/player.d.ts CHANGED
@@ -101,7 +101,7 @@ declare class AudioTracks extends UICorePlugin {
101
101
  private buttonElementText;
102
102
  private trackElement;
103
103
  private getTitle;
104
- private startTrackSwitch;
104
+ private startTrackSwitching;
105
105
  private updateText;
106
106
  private highlightCurrentTrack;
107
107
  }
@@ -158,16 +158,6 @@ export declare class BigMuteButton extends UICorePlugin {
158
158
  private handleBigMuteBtnClick;
159
159
  }
160
160
 
161
- /**
162
- * @beta
163
- */
164
- export declare type BitrateTrackRecord = {
165
- start: number;
166
- end?: number;
167
- time?: number;
168
- bitrate: number;
169
- };
170
-
171
161
  /**
172
162
  * `PLUGIN` that adds a button to extend the media controls UI with extra options.
173
163
  * @beta
@@ -380,6 +370,16 @@ export declare class ClapprStats extends ContainerPlugin {
380
370
  private html5FetchFPS;
381
371
  }
382
372
 
373
+ /**
374
+ * @beta
375
+ */
376
+ export declare type ClapprStatsBitrateTrack = {
377
+ start: number;
378
+ end?: number;
379
+ time?: number;
380
+ bitrate: number;
381
+ };
382
+
383
383
  /**
384
384
  * @beta
385
385
  */
@@ -463,7 +463,7 @@ export declare type ClapprStatsMetrics = {
463
463
  extra: {
464
464
  playbackName: string;
465
465
  playbackType: string;
466
- bitratesHistory: BitrateTrackRecord[];
466
+ bitratesHistory: ClapprStatsBitrateTrack[];
467
467
  bitrateWeightedMean: number;
468
468
  bitrateMostUsed: number;
469
469
  buffersize: number;
@@ -830,13 +830,17 @@ export declare class DvrControls extends UICorePlugin {
830
830
  */
831
831
  bindEvents(): void;
832
832
  private onCoreReady;
833
- private bindContainerEvents;
833
+ private onActiveContainerChanged;
834
834
  private click;
835
- private shouldRender;
836
835
  /**
837
836
  * @internal
838
837
  */
839
838
  render(): this;
839
+ private onMediacontrolRendered;
840
+ private onMetadataLoaded;
841
+ private mount;
842
+ private onDvrStateChanged;
843
+ private toggleState;
840
844
  }
841
845
 
842
846
  /**
@@ -988,7 +992,7 @@ export declare interface FaviconPluginSettings {
988
992
  */
989
993
  export declare enum GearEvents {
990
994
  /**
991
- * Use this event to accurately attach an item to the gear menu
995
+ * Subscribe to this event to accurately attach an item to the gear menu
992
996
  */
993
997
  RENDERED = "rendered"
994
998
  }
@@ -1276,7 +1280,6 @@ export declare class MediaControl extends UICorePlugin {
1276
1280
  * Get a media control element DOM node
1277
1281
  * @param name - The name of the media control element
1278
1282
  * @returns The DOM node to render to or extend
1279
- * @deprecated Use {@link MediaControl.putElement} instead
1280
1283
  * @remarks
1281
1284
  * Use this method to render custom media control UI in a plugin
1282
1285
  * @example
@@ -1291,11 +1294,16 @@ export declare class MediaControl extends UICorePlugin {
1291
1294
  * ```
1292
1295
  */
1293
1296
  mount(name: MediaControlElement, element: ZeptoResult): void;
1297
+ /**
1298
+ * @deprecated Use {@link MediaControl.mount} instead
1299
+ * @param name
1300
+ * @param element
1301
+ */
1294
1302
  putElement(name: MediaControlElement, element: ZeptoResult): void;
1295
1303
  /**
1296
1304
  * Toggle the visibility of a media control element
1297
1305
  * @param name - The name of the media control element
1298
- * @param show - Whether to show or hide the element
1306
+ * @param show - Visibility state
1299
1307
  */
1300
1308
  toggleElement(area: MediaControlElement, show: boolean): void;
1301
1309
  private getRightPanel;