@latest-thinking/lt-player 1.0.4-k → 1.0.4-l
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
|
@@ -136,19 +136,20 @@ export class ResizeService {
|
|
|
136
136
|
protected setAddInfoByDimensions(containerWidth: number, buttonsTemplate:string, deskEvent: LTPlayerAdditionalInfo.Desktop, controller: LTPLayerAddInfo.Controller) {
|
|
137
137
|
|
|
138
138
|
const createAddInfoButtonsOutSide = () => {
|
|
139
|
-
|
|
139
|
+
|
|
140
|
+
let addInfoContainer = this.playerInstance.playerConfig.getPlayerElementContainer().querySelector('.lt-player__additional-info');
|
|
140
141
|
if (addInfoContainer) {
|
|
141
142
|
addInfoContainer.remove();
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
this.playerInstance.plyr.elements.container.insertAdjacentHTML("afterend", buttonsTemplate);
|
|
145
|
-
let inserted =
|
|
146
|
+
let inserted = this.playerInstance.playerConfig.getPlayerElementContainer().querySelector('.lt-player__additional-info');
|
|
146
147
|
inserted.classList.add('lt-player__additional-info__is_set_out-side');
|
|
147
148
|
deskEvent.set(controller);
|
|
148
149
|
}
|
|
149
150
|
|
|
150
151
|
const createAddInfoButtonsInSide = () => {
|
|
151
|
-
let addInfoContainer =
|
|
152
|
+
let addInfoContainer = this.playerInstance.playerConfig.getPlayerElementContainer().querySelector('.lt-player__additional-info');
|
|
152
153
|
if (addInfoContainer) {
|
|
153
154
|
addInfoContainer.remove();
|
|
154
155
|
}
|
|
@@ -156,7 +157,7 @@ export class ResizeService {
|
|
|
156
157
|
let controlsInfoBody = this.playerInstance.plyr.elements.controls.querySelector('.content__body');
|
|
157
158
|
|
|
158
159
|
controlsInfoBody.insertAdjacentHTML("afterend", buttonsTemplate);
|
|
159
|
-
let inserted =
|
|
160
|
+
let inserted = this.playerInstance.playerConfig.getPlayerElementContainer().querySelector('.lt-player__additional-info');
|
|
160
161
|
inserted.classList.add('lt-player__additional-info__is_set_in-side');
|
|
161
162
|
deskEvent.set(controller);
|
|
162
163
|
}
|