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.
- package/dist/core/StrataCore.d.ts +5 -0
- package/dist/strataplayer.cjs.js +12 -12
- package/dist/strataplayer.cjs.js.map +1 -1
- package/dist/strataplayer.es.js +337 -307
- package/dist/strataplayer.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -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;
|