@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -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') {