@latest-thinking/lt-player 1.1.0-q → 1.1.0-s
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/js/lt-player-main.js +1 -1
- package/dist/js/lt-player-main.js.map +1 -1
- package/examples/lt-website.html +76 -0
- package/examples/samples/vtt/Sobolev-Anton-Subtitles-20230518_0.vtt +352 -0
- package/package.json +1 -1
- package/src/components/LTPlayerManager.ts +16 -0
- package/src/components/LTPlayerUpdate.ts +3 -9
- package/src/components/captions/LTPlayerCaptions.ts +40 -0
- package/src/components/config/LTPlayerConfig.ts +1 -0
- package/src/components/config/LTPlayerConfigProcessor.ts +2 -1
- package/src/components/controls/LTPlayerChapters.ts +7 -3
- package/src/components/controls/LTPlayerControlsEvents.ts +23 -8
- package/src/components/events/LTPlayerCommon.ts +14 -1
- package/src/components/events/LTPlayerDesktop.ts +4 -0
- package/src/global/controllers/LTPlayerController.ts +3 -0
|
@@ -13,6 +13,7 @@ import {LTPlayerPosterManager} from "../../components/poster/LTPlayerPosterManag
|
|
|
13
13
|
import {LTPlayerShareManager} from "../../components/share/LTPlayerShareManager";
|
|
14
14
|
import {LTPlayerHls} from "../../components/LTPlayerHls";
|
|
15
15
|
import {LTPlayerVideo} from "../../components/video/LTPlayerVideo";
|
|
16
|
+
import {LTPlayerCaptionsManager} from "../../components/captions/LTPlayerCaptions";
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Default Player type Service
|
|
@@ -36,6 +37,7 @@ export class LTPlayerController {
|
|
|
36
37
|
share : LTPlayerShareManager
|
|
37
38
|
hls : LTPlayerHls
|
|
38
39
|
videoService : LTPlayerVideo
|
|
40
|
+
captionsService : LTPlayerCaptionsManager
|
|
39
41
|
/**
|
|
40
42
|
* Base player type service
|
|
41
43
|
*/
|
|
@@ -47,5 +49,6 @@ export class LTPlayerController {
|
|
|
47
49
|
this.posterManager = new LTPlayerPosterManager();
|
|
48
50
|
this.share = new LTPlayerShareManager();
|
|
49
51
|
this.videoService = new LTPlayerVideo();
|
|
52
|
+
this.captionsService = new LTPlayerCaptionsManager(this)
|
|
50
53
|
}
|
|
51
54
|
}
|