@webitel/ui-sdk 1.0.26 → 1.0.27
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/ui-sdk.common.js +18 -7
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.umd.js +18 -7
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +1 -1
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/organisms/wt-player/wt-player.vue +13 -0
package/package.json
CHANGED
|
@@ -52,6 +52,11 @@ export default {
|
|
|
52
52
|
type: Boolean,
|
|
53
53
|
default: true,
|
|
54
54
|
},
|
|
55
|
+
// plyr is caching volume settings so we should reset them at init
|
|
56
|
+
resetVolume: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: false,
|
|
59
|
+
},
|
|
55
60
|
},
|
|
56
61
|
data: () => ({
|
|
57
62
|
player: null,
|
|
@@ -102,9 +107,17 @@ export default {
|
|
|
102
107
|
active: this.loop,
|
|
103
108
|
},
|
|
104
109
|
});
|
|
110
|
+
|
|
111
|
+
if (this.resetVolume) this.makeVolumeReset();
|
|
112
|
+
if (this.download) this.setupDownload();
|
|
113
|
+
|
|
105
114
|
this.appendCloseIcon();
|
|
106
115
|
this.$emit('initialized', this.player);
|
|
107
116
|
},
|
|
117
|
+
makeVolumeReset() {
|
|
118
|
+
this.player.volume = 1;
|
|
119
|
+
this.player.muted = false;
|
|
120
|
+
},
|
|
108
121
|
setupDownload() {
|
|
109
122
|
if (!this.download) this.setupPlayer();
|
|
110
123
|
else if (typeof this.download === 'string') {
|