@stremio/stremio-video 0.0.59 → 0.0.60

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": "@stremio/stremio-video",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "description": "Abstraction layer on top of different media players",
5
5
  "author": "Smart Code OOD",
6
6
  "main": "src/index.js",
@@ -161,6 +161,13 @@ function ShellVideo(options) {
161
161
  props[args.name] = Math.round(args.data*1000);
162
162
  break;
163
163
  }
164
+ case 'volume': {
165
+ if (typeof args.data === 'number' && isFinite(args.data)) {
166
+ props[args.name] = args.data;
167
+ onPropChanged('volume');
168
+ }
169
+ break;
170
+ }
164
171
  case 'paused-for-cache':
165
172
  case 'seeking':
166
173
  {
@@ -391,7 +398,6 @@ function ShellVideo(options) {
391
398
  onPropChanged('time');
392
399
  onPropChanged('duration');
393
400
  onPropChanged('buffering');
394
- onPropChanged('volume');
395
401
  onPropChanged('muted');
396
402
  onPropChanged('subtitlesTracks');
397
403
  onPropChanged('selectedSubtitlesTrackId');
@@ -424,7 +430,6 @@ function ShellVideo(options) {
424
430
  onPropChanged('time');
425
431
  onPropChanged('duration');
426
432
  onPropChanged('buffering');
427
- onPropChanged('volume');
428
433
  onPropChanged('muted');
429
434
  onPropChanged('subtitlesTracks');
430
435
  onPropChanged('selectedSubtitlesTrackId');