@stremio/stremio-video 0.0.29-beta.2 → 0.0.30

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.29-beta.2",
3
+ "version": "0.0.30",
4
4
  "description": "Abstraction layer on top of different media players",
5
5
  "author": "Smart Code OOD",
6
6
  "main": "src/index.js",
@@ -18,7 +18,7 @@
18
18
  "deep-freeze": "0.0.1",
19
19
  "eventemitter3": "4.0.7",
20
20
  "hat": "0.0.3",
21
- "hls.js": "https://github.com/Stremio/hls.js/releases/download/v1.5.1-patch1/hls.js-1.5.1-patch1.tgz",
21
+ "hls.js": "https://github.com/Stremio/hls.js/releases/download/v1.2.3-patch1/hls.js-1.2.3-patch1.tgz",
22
22
  "lodash.clonedeep": "4.5.0",
23
23
  "magnet-uri": "6.2.0",
24
24
  "url": "0.11.0",
@@ -6,7 +6,8 @@ var VIDEO_CODEC_CONFIGS = [
6
6
  },
7
7
  {
8
8
  codec: 'h265',
9
- force: window.chrome || window.cast,
9
+ // Disabled because chrome only has partial support for h265/hvec,
10
+ // force: window.chrome || window.cast,
10
11
  mime: 'video/mp4; codecs="hev1.1.6.L150.B0"',
11
12
  aliases: ['hevc']
12
13
  },
@@ -77,6 +77,7 @@ function withHTMLSubtitles(Video) {
77
77
  subtitlesRenderer.render(cuesByTime, videoState.time + delay).forEach(function(cueNode) {
78
78
  cueNode.style.display = 'inline-block';
79
79
  cueNode.style.padding = '0.2em';
80
+ cueNode.style.whiteSpace = 'pre-wrap';
80
81
  cueNode.style.fontSize = Math.floor(size / 25) + 'vmin';
81
82
  cueNode.style.color = textColor;
82
83
  cueNode.style.backgroundColor = backgroundColor;