strataplayer 1.2.22 → 1.2.23

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.
@@ -260,6 +260,11 @@ export declare class StrataCore {
260
260
  attach(container: HTMLElement): void;
261
261
  use(plugin: IPlugin): void;
262
262
  setSources(sources: PlayerSource[], tracks?: TextTrackConfig[]): void;
263
+ /**
264
+ * Updates text tracks at runtime without reloading the video source.
265
+ * Useful for changing subtitles dynamically.
266
+ */
267
+ setTextTracks(tracks: TextTrackConfig[]): void;
263
268
  switchSource(index: number): void;
264
269
  load(source: PlayerSource | string, tracks?: TextTrackConfig[], isRetry?: boolean): void;
265
270
  loadSubtitle(url: string, label?: string): void;