@theoplayer/extended 4.1.1 → 4.2.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/THEOplayer.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * THEOplayer
3
3
  * https://www.theoplayer.com
4
4
  *
5
- * Version: 2022.3.3 (4.1.1)
5
+ * Version: 2022.4.0 (4.2.0)
6
6
  */
7
7
 
8
8
  /**
@@ -1944,7 +1944,7 @@ export declare class ChromelessPlayer implements EventDispatcher<PlayerEventMap>
1944
1944
  /**
1945
1945
  * The adaptive bitrate configuration.
1946
1946
  */
1947
- abr: ABRConfiguration;
1947
+ readonly abr: ABRConfiguration;
1948
1948
  /**
1949
1949
  * List of audio tracks of the current source.
1950
1950
  */
@@ -3004,6 +3004,22 @@ export declare interface DashPlaybackConfiguration {
3004
3004
  * @defaultValue `'auto'`
3005
3005
  */
3006
3006
  useSeamlessPeriodSwitch?: SeamlessPeriodSwitchStrategy;
3007
+ /**
3008
+ * (Experimental) Whether the timescales of the media data need to be shifted,
3009
+ * in order to work around platform-specific issues on certain smart TV platforms.
3010
+ *
3011
+ * @remarks
3012
+ * <br/> - Available since v4.1.0.
3013
+ * <br/> - On certain smart TV platforms (such as Tizen 2), playback issues may arise when
3014
+ * the timescale of the media data changes across periods or discontinuities.
3015
+ * In that case, the player may need to shift all the timescales first,
3016
+ * however this strategy may not work for all streams.
3017
+ * <br/> - When not specified, the player will decide whether or not to shift timescales
3018
+ * based on the platform.
3019
+ * <br/> - This is an experimental option. It should only be used after consulting with
3020
+ * THEOplayer support or engineering.
3021
+ */
3022
+ needsTimescaleShifting?: boolean | null;
3007
3023
  }
3008
3024
 
3009
3025
  /**
@@ -8462,6 +8478,42 @@ export declare interface TextTrackStyle extends EventDispatcher<TextTrackStyleEv
8462
8478
  * <br/> - `'uniform`
8463
8479
  */
8464
8480
  edgeStyle: EdgeStyle | undefined;
8481
+ /**
8482
+ * The top margin of the area where subtitles are being rendered.
8483
+ *
8484
+ * @remarks
8485
+ * <br/> - Available since v4.2.0
8486
+ * <br/> - The margin is in number of pixels.
8487
+ * <br/> - Useful for pushing the subtitles down, so they don't overlap with the UI.
8488
+ */
8489
+ marginTop: number | undefined;
8490
+ /**
8491
+ * The bottom margin of the area where subtitles are being rendered.
8492
+ *
8493
+ * @remarks
8494
+ * <br/> - Available since v4.2.0
8495
+ * <br/> - The margin is in number of pixels.
8496
+ * <br/> - Useful for pushing the subtitles up, so they don't overlap with the UI.
8497
+ */
8498
+ marginBottom: number | undefined;
8499
+ /**
8500
+ * The left margin of the area where subtitles are being rendered.
8501
+ *
8502
+ * @remarks
8503
+ * <br/> - Available since v4.2.0
8504
+ * <br/> - The margin is in number of pixels.
8505
+ * <br/> - Useful for pushing the subtitles right, so they don't overlap with the UI.
8506
+ */
8507
+ marginLeft: number | undefined;
8508
+ /**
8509
+ * The right margin of the area where subtitles are being rendered.
8510
+ *
8511
+ * @remarks
8512
+ * <br/> - Available since v4.2.0
8513
+ * <br/> - The margin is in number of pixels.
8514
+ * <br/> - Useful for pushing the subtitles left, so they don't overlap with the UI.
8515
+ */
8516
+ marginRight: number | undefined;
8465
8517
  }
8466
8518
 
8467
8519
  /**