@stremio/stremio-video 0.0.61 → 0.0.62

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.61",
3
+ "version": "0.0.62",
4
4
  "description": "Abstraction layer on top of different media players",
5
5
  "author": "Smart Code OOD",
6
6
  "main": "src/index.js",
@@ -356,7 +356,7 @@ function ShellVideo(options) {
356
356
  stream = commandArgs.stream;
357
357
  onPropChanged('stream');
358
358
 
359
- ipc.send('mpv-set-prop', ['no-sub-ass']);
359
+ ipc.send('mpv-set-prop', ['sub-ass-override', 'strip']);
360
360
 
361
361
  // Hardware decoding
362
362
  var hwdecValue = commandArgs.hardwareDecoding ? 'auto-copy' : 'no';
@@ -49,7 +49,7 @@ var AUDIO_CODEC_CONFIGS = [
49
49
  ];
50
50
 
51
51
  function canPlay(config, options) {
52
- return config.force || options.mediaElement.canPlayType(config.mime)
52
+ return config.force || typeof options.mediaElement.canPlayType === 'function' && options.mediaElement.canPlayType(config.mime)
53
53
  ? [config.codec].concat(config.aliases || [])
54
54
  : [];
55
55
  }