@latest-thinking/lt-player 1.0.5-g → 1.0.5-h
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/package.json
CHANGED
|
@@ -25,7 +25,6 @@ export class LTPlayerDesktop extends LTPlayerCommon implements EventsInterfaces
|
|
|
25
25
|
this.plyrOnPlay();
|
|
26
26
|
this.plyrOnPause();
|
|
27
27
|
this.plyrOnSeek();
|
|
28
|
-
this.plyrOnPlaying();
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
plyrOnSeek():void {
|
|
@@ -35,25 +34,15 @@ export class LTPlayerDesktop extends LTPlayerCommon implements EventsInterfaces
|
|
|
35
34
|
|
|
36
35
|
plyr.on('seeked', function LTPlayerSeek(){
|
|
37
36
|
if (plyr.isEmbed) {
|
|
37
|
+
if (plyr.paused) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
38
40
|
let playerContainer = instance.plyr.elements.container;
|
|
39
41
|
playerContainer.querySelector(`.lt-player__poster`).insertAdjacentHTML('afterend', LoaderService.getSpinner());
|
|
40
42
|
}
|
|
41
43
|
})
|
|
42
44
|
}
|
|
43
45
|
|
|
44
|
-
plyrOnPlaying(): void {
|
|
45
|
-
let eventManager = this;
|
|
46
|
-
let instance: LTPlayer.PortraitType | LTPlayer.LandscapeType = this.player;
|
|
47
|
-
let plyr: Plyr = this.plyr;
|
|
48
|
-
|
|
49
|
-
plyr.on('playing', function LTPlayerSeek(){
|
|
50
|
-
plyr.embed.play().then (function LTPlayerEmbedPlay() {
|
|
51
|
-
LoaderService.removeSpinner(plyr.elements.container)
|
|
52
|
-
})
|
|
53
|
-
})
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
46
|
plyrOnReady(): void {
|
|
58
47
|
let eventManager = this;
|
|
59
48
|
let instance: LTPlayer.PortraitType | LTPlayer.LandscapeType = this.player;
|
|
@@ -185,6 +174,7 @@ export class LTPlayerDesktop extends LTPlayerCommon implements EventsInterfaces
|
|
|
185
174
|
let instance: LTPlayer.PortraitType | LTPlayer.LandscapeType = this.player;
|
|
186
175
|
let plyr: Plyr = this.plyr;
|
|
187
176
|
plyr.on('play', function LTPlayerDesktopTimeUpdate(event) {
|
|
177
|
+
LoaderService.removeSpinner(plyr.elements.container)
|
|
188
178
|
instance.playerControl.desktopEvents.playPauseIcon(instance, 'timeupdate');
|
|
189
179
|
})
|
|
190
180
|
}
|
|
@@ -194,6 +184,7 @@ export class LTPlayerDesktop extends LTPlayerCommon implements EventsInterfaces
|
|
|
194
184
|
let plyr: Plyr = this.plyr;
|
|
195
185
|
|
|
196
186
|
plyr.on('pause', function LTPlayerDesktopTimeUpdate(event) {
|
|
187
|
+
LoaderService.removeSpinner(plyr.elements.container)
|
|
197
188
|
instance.playerControl.desktopEvents.playPauseIcon(instance, 'timeupdate');
|
|
198
189
|
})
|
|
199
190
|
}
|
|
@@ -25,7 +25,6 @@ export class LTPlayerMobile extends LTPlayerCommon implements EventsInterfaces {
|
|
|
25
25
|
this.plyrOnPlay();
|
|
26
26
|
this.plyrOnPause();
|
|
27
27
|
this.plyrOnSeek();
|
|
28
|
-
this.plyrOnPlaying();
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
plyrOnSeek():void {
|
|
@@ -35,24 +34,14 @@ export class LTPlayerMobile extends LTPlayerCommon implements EventsInterfaces {
|
|
|
35
34
|
|
|
36
35
|
plyr.on('seeked', function LTPlayerSeek(){
|
|
37
36
|
if (plyr.isEmbed) {
|
|
37
|
+
if (plyr.paused) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
38
40
|
let playerContainer = instance.plyr.elements.container;
|
|
39
41
|
playerContainer.querySelector(`.lt-player__poster`).insertAdjacentHTML('afterend', LoaderService.getSpinner());
|
|
40
42
|
}
|
|
41
43
|
})
|
|
42
44
|
}
|
|
43
|
-
|
|
44
|
-
plyrOnPlaying(): void {
|
|
45
|
-
let eventManager = this;
|
|
46
|
-
let instance: LTPlayer.PortraitType | LTPlayer.LandscapeType = this.player;
|
|
47
|
-
let plyr: Plyr = this.plyr;
|
|
48
|
-
|
|
49
|
-
plyr.on('playing', function LTPlayerSeek(){
|
|
50
|
-
plyr.embed.play().then (function LTPlayerEmbedPlay() {
|
|
51
|
-
LoaderService.removeSpinner(plyr.elements.container)
|
|
52
|
-
})
|
|
53
|
-
})
|
|
54
|
-
}
|
|
55
|
-
|
|
56
45
|
plyrOnReady(): void {
|
|
57
46
|
let eventManager = this;
|
|
58
47
|
let instance: LTPlayer.PortraitType | LTPlayer.LandscapeType = this.player;
|
|
@@ -169,6 +158,7 @@ export class LTPlayerMobile extends LTPlayerCommon implements EventsInterfaces {
|
|
|
169
158
|
let plyr: Plyr = this.plyr;
|
|
170
159
|
|
|
171
160
|
plyr.on('play', function LTPlayerDesktopTimeUpdate(event) {
|
|
161
|
+
LoaderService.removeSpinner(plyr.elements.container)
|
|
172
162
|
instance.playerControl.desktopEvents.playPauseIcon(instance, 'timeupdate');
|
|
173
163
|
})
|
|
174
164
|
}
|
|
@@ -178,6 +168,7 @@ export class LTPlayerMobile extends LTPlayerCommon implements EventsInterfaces {
|
|
|
178
168
|
let plyr: Plyr = this.plyr;
|
|
179
169
|
|
|
180
170
|
plyr.on('pause', function LTPlayerDesktopTimeUpdate(event) {
|
|
171
|
+
LoaderService.removeSpinner(plyr.elements.container)
|
|
181
172
|
instance.playerControl.desktopEvents.playPauseIcon(instance, 'timeupdate');
|
|
182
173
|
})
|
|
183
174
|
}
|