@stremio/stremio-video 0.0.55 → 0.0.57
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
|
@@ -38,7 +38,7 @@ function selectVideoImplementation(commandArgs, options) {
|
|
|
38
38
|
if (commandArgs.platform === 'webOS') {
|
|
39
39
|
return withStreamingServer(withHTMLSubtitles(WebOsVideo));
|
|
40
40
|
}
|
|
41
|
-
if (commandArgs.platform === 'Titan' || commandArgs.platform === 'NetTV') {
|
|
41
|
+
if (commandArgs.platform === 'Titan' || commandArgs.platform === 'NetTV' || commandArgs.platform === 'Vidaa') {
|
|
42
42
|
return withStreamingServer(withHTMLSubtitles(TitanVideo));
|
|
43
43
|
}
|
|
44
44
|
return withStreamingServer(withHTMLSubtitles(HTMLVideo));
|
|
@@ -51,7 +51,7 @@ function selectVideoImplementation(commandArgs, options) {
|
|
|
51
51
|
if (commandArgs.platform === 'webOS') {
|
|
52
52
|
return withVideoParams(withHTMLSubtitles(WebOsVideo));
|
|
53
53
|
}
|
|
54
|
-
if (commandArgs.platform === 'Titan' || commandArgs.platform === 'NetTV') {
|
|
54
|
+
if (commandArgs.platform === 'Titan' || commandArgs.platform === 'NetTV' || commandArgs.platform === 'Vidaa') {
|
|
55
55
|
return withVideoParams(withHTMLSubtitles(TitanVideo));
|
|
56
56
|
}
|
|
57
57
|
return withVideoParams(withHTMLSubtitles(HTMLVideo));
|
|
@@ -157,7 +157,8 @@ function TitanVideo(options) {
|
|
|
157
157
|
cueNode.innerHTML = text;
|
|
158
158
|
cueNode.style.display = 'inline-block';
|
|
159
159
|
cueNode.style.padding = '0.2em';
|
|
160
|
-
|
|
160
|
+
var fontSizeMultiplier = window.screen720p ? 1.538 : 1;
|
|
161
|
+
cueNode.style.fontSize = Math.floor((size / 25) * fontSizeMultiplier) + 'vmin';
|
|
161
162
|
cueNode.style.color = textColor;
|
|
162
163
|
cueNode.style.backgroundColor = backgroundColor;
|
|
163
164
|
cueNode.style.textShadow = '1px 1px 0.1em ' + outlineColor;
|