@applicaster/zapp-react-native-utils 12.0.0-alpha.5923342081 → 12.0.0-alpha.5933014273
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.
|
@@ -18,7 +18,6 @@ function getDevice(platform) {
|
|
|
18
18
|
case "lg_tv":
|
|
19
19
|
case "samsung_tv":
|
|
20
20
|
case "web":
|
|
21
|
-
case "vizio":
|
|
22
21
|
return "tv";
|
|
23
22
|
}
|
|
24
23
|
}
|
|
@@ -1796,30 +1795,6 @@ function getPlayerConfiguration({ platform }) {
|
|
|
1796
1795
|
key: "menu_header_samsung_letter_spacing",
|
|
1797
1796
|
initial_value: 0,
|
|
1798
1797
|
},
|
|
1799
|
-
{
|
|
1800
|
-
type: "vizio_font_selector",
|
|
1801
|
-
label: "Vizio Font Family",
|
|
1802
|
-
key: "menu_header_vizio_font_family",
|
|
1803
|
-
initial_value: "SmsungOneUI-Bold",
|
|
1804
|
-
},
|
|
1805
|
-
{
|
|
1806
|
-
type: "number_input",
|
|
1807
|
-
label: "Vizio Font Size",
|
|
1808
|
-
key: "menu_header_vizio_font_size",
|
|
1809
|
-
initial_value: 30,
|
|
1810
|
-
},
|
|
1811
|
-
{
|
|
1812
|
-
type: "number_input",
|
|
1813
|
-
label: "Vizio Line Height",
|
|
1814
|
-
key: "menu_header_vizio_line_height",
|
|
1815
|
-
initial_value: 60,
|
|
1816
|
-
},
|
|
1817
|
-
{
|
|
1818
|
-
type: "number_input",
|
|
1819
|
-
label: "Vizio Letter Spacing",
|
|
1820
|
-
key: "menu_header_vizio_letter_spacing",
|
|
1821
|
-
initial_value: 0,
|
|
1822
|
-
},
|
|
1823
1798
|
]
|
|
1824
1799
|
),
|
|
1825
1800
|
// Captions Menu - Item Text Label
|
|
@@ -1899,30 +1874,6 @@ function getPlayerConfiguration({ platform }) {
|
|
|
1899
1874
|
key: "menu_item_samsung_letter_spacing",
|
|
1900
1875
|
initial_value: 0,
|
|
1901
1876
|
},
|
|
1902
|
-
{
|
|
1903
|
-
type: "vizio_font_selector",
|
|
1904
|
-
label: "Vizio Font Family",
|
|
1905
|
-
key: "menu_item_vizio_font_family",
|
|
1906
|
-
initial_value: "SmsungOneUI-Bold",
|
|
1907
|
-
},
|
|
1908
|
-
{
|
|
1909
|
-
type: "number_input",
|
|
1910
|
-
label: "Vizio Font Size",
|
|
1911
|
-
key: "menu_item_vizio_font_size",
|
|
1912
|
-
initial_value: 25,
|
|
1913
|
-
},
|
|
1914
|
-
{
|
|
1915
|
-
type: "number_input",
|
|
1916
|
-
label: "Vizio Line Height",
|
|
1917
|
-
key: "menu_item_vizio_line_height",
|
|
1918
|
-
initial_value: 40,
|
|
1919
|
-
},
|
|
1920
|
-
{
|
|
1921
|
-
type: "number_input",
|
|
1922
|
-
label: "Vizio Letter Spacing",
|
|
1923
|
-
key: "menu_item_vizio_letter_spacing",
|
|
1924
|
-
initial_value: 0,
|
|
1925
|
-
},
|
|
1926
1877
|
]
|
|
1927
1878
|
),
|
|
1928
1879
|
// Captions Menu - Item Border
|
|
@@ -2066,18 +2017,6 @@ function getPlayerConfiguration({ platform }) {
|
|
|
2066
2017
|
key: "samsung_tv_video_player_title_font_size",
|
|
2067
2018
|
initial_value: 64,
|
|
2068
2019
|
},
|
|
2069
|
-
{
|
|
2070
|
-
type: "vizio_font_selector",
|
|
2071
|
-
label: "Vizio Font Family",
|
|
2072
|
-
key: "vizio_video_player_title_font_family",
|
|
2073
|
-
initial_value: "Ubuntu-Bold",
|
|
2074
|
-
},
|
|
2075
|
-
{
|
|
2076
|
-
type: "number_input",
|
|
2077
|
-
label: "Vizio Font Size",
|
|
2078
|
-
key: "vizio_video_player_title_font_size",
|
|
2079
|
-
initial_value: 64,
|
|
2080
|
-
},
|
|
2081
2020
|
{
|
|
2082
2021
|
type: "tvos_font_selector",
|
|
2083
2022
|
label: "tvOS Font Family",
|
|
@@ -2151,18 +2090,6 @@ function getPlayerConfiguration({ platform }) {
|
|
|
2151
2090
|
key: "samsung_tv_video_player_summary_font_size",
|
|
2152
2091
|
initial_value: 30,
|
|
2153
2092
|
},
|
|
2154
|
-
{
|
|
2155
|
-
type: "vizio_font_selector",
|
|
2156
|
-
label: "Vizio Font Family",
|
|
2157
|
-
key: "vizio_video_player_summary_font_family",
|
|
2158
|
-
initial_value: "Ubuntu-Bold",
|
|
2159
|
-
},
|
|
2160
|
-
{
|
|
2161
|
-
type: "number_input",
|
|
2162
|
-
label: "Vizio Font Size",
|
|
2163
|
-
key: "vizio_video_player_summary_font_size",
|
|
2164
|
-
initial_value: 30,
|
|
2165
|
-
},
|
|
2166
2093
|
{
|
|
2167
2094
|
type: "tvos_font_selector",
|
|
2168
2095
|
label: "tvOS Font Family",
|
|
@@ -2230,18 +2157,6 @@ function getPlayerConfiguration({ platform }) {
|
|
|
2230
2157
|
key: "samsung_tv_audio_player_title_font_size",
|
|
2231
2158
|
initial_value: 38,
|
|
2232
2159
|
},
|
|
2233
|
-
{
|
|
2234
|
-
type: "vizio_font_selector",
|
|
2235
|
-
label: "Vizio Font Family",
|
|
2236
|
-
key: "vizio_tv_audio_player_title_font_family",
|
|
2237
|
-
initial_value: "Ubuntu-Bold",
|
|
2238
|
-
},
|
|
2239
|
-
{
|
|
2240
|
-
type: "number_input",
|
|
2241
|
-
label: "Vizio Font Size",
|
|
2242
|
-
key: "vizio_audio_player_title_font_size",
|
|
2243
|
-
initial_value: 38,
|
|
2244
|
-
},
|
|
2245
2160
|
{
|
|
2246
2161
|
type: "tvos_font_selector",
|
|
2247
2162
|
label: "tvOS Font Family",
|
|
@@ -2297,18 +2212,6 @@ function getPlayerConfiguration({ platform }) {
|
|
|
2297
2212
|
key: "samsung_tv_audio_player_summary_font_size",
|
|
2298
2213
|
initial_value: 20,
|
|
2299
2214
|
},
|
|
2300
|
-
{
|
|
2301
|
-
type: "vizio_font_selector",
|
|
2302
|
-
label: "Vizio Font Family",
|
|
2303
|
-
key: "vizio_audio_player_summary_font_family",
|
|
2304
|
-
initial_value: "Ubuntu-Bold",
|
|
2305
|
-
},
|
|
2306
|
-
{
|
|
2307
|
-
type: "number_input",
|
|
2308
|
-
label: "Vizio Font Size",
|
|
2309
|
-
key: "vizio_audio_player_summary_font_size",
|
|
2310
|
-
initial_value: 20,
|
|
2311
|
-
},
|
|
2312
2215
|
{
|
|
2313
2216
|
type: "tvos_font_selector",
|
|
2314
2217
|
label: "tvOS Font Family",
|
|
@@ -2364,18 +2267,6 @@ function getPlayerConfiguration({ platform }) {
|
|
|
2364
2267
|
key: "samsung_tv_player_time_font_size",
|
|
2365
2268
|
initial_value: 20,
|
|
2366
2269
|
},
|
|
2367
|
-
{
|
|
2368
|
-
type: "vizio_font_selector",
|
|
2369
|
-
label: "Vizio Font Family",
|
|
2370
|
-
key: "vizio_player_time_font_family",
|
|
2371
|
-
initial_value: "Ubuntu-Bold",
|
|
2372
|
-
},
|
|
2373
|
-
{
|
|
2374
|
-
type: "number_input",
|
|
2375
|
-
label: "Vizio Font Size",
|
|
2376
|
-
key: "vizio_player_time_font_size",
|
|
2377
|
-
initial_value: 20,
|
|
2378
|
-
},
|
|
2379
2270
|
{
|
|
2380
2271
|
type: "android_font_selector",
|
|
2381
2272
|
label: "Android TV Font Family",
|
|
@@ -2431,18 +2322,6 @@ function getPlayerConfiguration({ platform }) {
|
|
|
2431
2322
|
key: "samsung_tv_audio_player_run_time_font_size",
|
|
2432
2323
|
initial_value: 20,
|
|
2433
2324
|
},
|
|
2434
|
-
{
|
|
2435
|
-
type: "vizio_font_selector",
|
|
2436
|
-
label: "Vizio Font Family",
|
|
2437
|
-
key: "vizio_audio_player_run_time_font_family",
|
|
2438
|
-
initial_value: "Ubuntu-Bold",
|
|
2439
|
-
},
|
|
2440
|
-
{
|
|
2441
|
-
type: "number_input",
|
|
2442
|
-
label: "Vizio Font Size",
|
|
2443
|
-
key: "vizio_audio_player_run_time_font_size",
|
|
2444
|
-
initial_value: 20,
|
|
2445
|
-
},
|
|
2446
2325
|
{
|
|
2447
2326
|
type: "tvos_font_selector",
|
|
2448
2327
|
label: "tvOS Font Family",
|
package/manifestUtils/keys.js
CHANGED
|
@@ -17,11 +17,10 @@ const ZAPPIFEST_FIELDS = {
|
|
|
17
17
|
lg: "lg_tv_font_selector",
|
|
18
18
|
samsung: "samsung_font_selector",
|
|
19
19
|
roku: "roku_font_selector",
|
|
20
|
-
vizio: "vizio_font_selector",
|
|
21
20
|
},
|
|
22
21
|
};
|
|
23
22
|
|
|
24
|
-
const TV_PLATFORMS = ["tvOS", "android", "LG", "samsung", "roku"
|
|
23
|
+
const TV_PLATFORMS = ["tvOS", "android", "LG", "samsung", "roku"];
|
|
25
24
|
|
|
26
25
|
const FontPropsForTVPlatform = (platform) => ({
|
|
27
26
|
[`${R.toLower(platform)}FontFamily`]: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-utils",
|
|
3
|
-
"version": "12.0.0-alpha.
|
|
3
|
+
"version": "12.0.0-alpha.5933014273",
|
|
4
4
|
"description": "Applicaster Zapp React Native utilities package",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@applicaster/applicaster-types": "12.0.0-alpha.
|
|
31
|
+
"@applicaster/applicaster-types": "12.0.0-alpha.5933014273",
|
|
32
32
|
"buffer": "^5.2.1",
|
|
33
33
|
"camelize": "^1.0.0",
|
|
34
34
|
"create-react-context": "^0.2.3",
|
|
@@ -1798,30 +1798,6 @@ function getPlayerConfiguration({ platform }) {
|
|
|
1798
1798
|
key: "menu_header_samsung_letter_spacing",
|
|
1799
1799
|
initial_value: 0,
|
|
1800
1800
|
},
|
|
1801
|
-
{
|
|
1802
|
-
type: "vizio_font_selector",
|
|
1803
|
-
label: "Vizio Font Family",
|
|
1804
|
-
key: "menu_header_vizio_font_family",
|
|
1805
|
-
initial_value: "Ubuntu-Bold",
|
|
1806
|
-
},
|
|
1807
|
-
{
|
|
1808
|
-
type: "number_input",
|
|
1809
|
-
label: "Vizio Font Size",
|
|
1810
|
-
key: "menu_header_vizio_font_size",
|
|
1811
|
-
initial_value: 30,
|
|
1812
|
-
},
|
|
1813
|
-
{
|
|
1814
|
-
type: "number_input",
|
|
1815
|
-
label: "Vizio Line Height",
|
|
1816
|
-
key: "menu_header_vizio_line_height",
|
|
1817
|
-
initial_value: 60,
|
|
1818
|
-
},
|
|
1819
|
-
{
|
|
1820
|
-
type: "number_input",
|
|
1821
|
-
label: "Vizio Letter Spacing",
|
|
1822
|
-
key: "menu_header_vizio_letter_spacing",
|
|
1823
|
-
initial_value: 0,
|
|
1824
|
-
},
|
|
1825
1801
|
]
|
|
1826
1802
|
),
|
|
1827
1803
|
// Captions Menu - Item Text Label
|
|
@@ -1901,30 +1877,6 @@ function getPlayerConfiguration({ platform }) {
|
|
|
1901
1877
|
key: "menu_item_samsung_letter_spacing",
|
|
1902
1878
|
initial_value: 0,
|
|
1903
1879
|
},
|
|
1904
|
-
{
|
|
1905
|
-
type: "vizio_font_selector",
|
|
1906
|
-
label: "Vizio Font Family",
|
|
1907
|
-
key: "menu_item_vizio_font_family",
|
|
1908
|
-
initial_value: "Ubuntu-Medium",
|
|
1909
|
-
},
|
|
1910
|
-
{
|
|
1911
|
-
type: "number_input",
|
|
1912
|
-
label: "Vizio Font Size",
|
|
1913
|
-
key: "menu_item_vizio_font_size",
|
|
1914
|
-
initial_value: 25,
|
|
1915
|
-
},
|
|
1916
|
-
{
|
|
1917
|
-
type: "number_input",
|
|
1918
|
-
label: "Vizio Line Height",
|
|
1919
|
-
key: "menu_item_vizio_line_height",
|
|
1920
|
-
initial_value: 40,
|
|
1921
|
-
},
|
|
1922
|
-
{
|
|
1923
|
-
type: "number_input",
|
|
1924
|
-
label: "Vizio Letter Spacing",
|
|
1925
|
-
key: "menu_item_vizio_letter_spacing",
|
|
1926
|
-
initial_value: 0,
|
|
1927
|
-
},
|
|
1928
1880
|
]
|
|
1929
1881
|
),
|
|
1930
1882
|
// Captions Menu - Item Border
|
|
@@ -2068,18 +2020,6 @@ function getPlayerConfiguration({ platform }) {
|
|
|
2068
2020
|
key: "samsung_tv_video_player_title_font_size",
|
|
2069
2021
|
initial_value: 58,
|
|
2070
2022
|
},
|
|
2071
|
-
{
|
|
2072
|
-
type: "vizio_font_selector",
|
|
2073
|
-
label: "Vizio Font Family",
|
|
2074
|
-
key: "vizio_video_player_title_font_family",
|
|
2075
|
-
initial_value: "Ubuntu-Bold",
|
|
2076
|
-
},
|
|
2077
|
-
{
|
|
2078
|
-
type: "number_input",
|
|
2079
|
-
label: "Vizio Font Size",
|
|
2080
|
-
key: "vizio_video_player_title_font_size",
|
|
2081
|
-
initial_value: 58,
|
|
2082
|
-
},
|
|
2083
2023
|
{
|
|
2084
2024
|
type: "tvos_font_selector",
|
|
2085
2025
|
label: "tvOS Font Family",
|
|
@@ -2153,18 +2093,6 @@ function getPlayerConfiguration({ platform }) {
|
|
|
2153
2093
|
key: "samsung_tv_video_player_summary_font_size",
|
|
2154
2094
|
initial_value: 30,
|
|
2155
2095
|
},
|
|
2156
|
-
{
|
|
2157
|
-
type: "vizio_font_selector",
|
|
2158
|
-
label: "Vizio Font Family",
|
|
2159
|
-
key: "vizio_video_player_summary_font_family",
|
|
2160
|
-
initial_value: "Ubuntu-Medium",
|
|
2161
|
-
},
|
|
2162
|
-
{
|
|
2163
|
-
type: "number_input",
|
|
2164
|
-
label: "Vizio Font Size",
|
|
2165
|
-
key: "vizio_video_player_summary_font_size",
|
|
2166
|
-
initial_value: 30,
|
|
2167
|
-
},
|
|
2168
2096
|
{
|
|
2169
2097
|
type: "tvos_font_selector",
|
|
2170
2098
|
label: "tvOS Font Family",
|
|
@@ -2232,18 +2160,6 @@ function getPlayerConfiguration({ platform }) {
|
|
|
2232
2160
|
key: "samsung_tv_audio_player_title_font_size",
|
|
2233
2161
|
initial_value: 40,
|
|
2234
2162
|
},
|
|
2235
|
-
{
|
|
2236
|
-
type: "vizio_font_selector",
|
|
2237
|
-
label: "Vizio Font Family",
|
|
2238
|
-
key: "vizio_audio_player_title_font_family",
|
|
2239
|
-
initial_value: "Ubuntu-Bold",
|
|
2240
|
-
},
|
|
2241
|
-
{
|
|
2242
|
-
type: "number_input",
|
|
2243
|
-
label: "Vizio Font Size",
|
|
2244
|
-
key: "vizio_audio_player_title_font_size",
|
|
2245
|
-
initial_value: 40,
|
|
2246
|
-
},
|
|
2247
2163
|
{
|
|
2248
2164
|
type: "tvos_font_selector",
|
|
2249
2165
|
label: "tvOS Font Family",
|
|
@@ -2299,18 +2215,6 @@ function getPlayerConfiguration({ platform }) {
|
|
|
2299
2215
|
key: "samsung_tv_audio_player_summary_font_size",
|
|
2300
2216
|
initial_value: 22,
|
|
2301
2217
|
},
|
|
2302
|
-
{
|
|
2303
|
-
type: "vizio_font_selector",
|
|
2304
|
-
label: "Vizio Font Family",
|
|
2305
|
-
key: "vizio_audio_player_summary_font_family",
|
|
2306
|
-
initial_value: "Ubuntu-Medium",
|
|
2307
|
-
},
|
|
2308
|
-
{
|
|
2309
|
-
type: "number_input",
|
|
2310
|
-
label: "Vizio Font Size",
|
|
2311
|
-
key: "vizio_audio_player_summary_font_size",
|
|
2312
|
-
initial_value: 22,
|
|
2313
|
-
},
|
|
2314
2218
|
{
|
|
2315
2219
|
type: "tvos_font_selector",
|
|
2316
2220
|
label: "tvOS Font Family",
|
|
@@ -2366,18 +2270,6 @@ function getPlayerConfiguration({ platform }) {
|
|
|
2366
2270
|
key: "samsung_tv_player_time_font_size",
|
|
2367
2271
|
initial_value: 20,
|
|
2368
2272
|
},
|
|
2369
|
-
{
|
|
2370
|
-
type: "vizio_font_selector",
|
|
2371
|
-
label: "Vizio Font Family",
|
|
2372
|
-
key: "vizio_player_time_font_family",
|
|
2373
|
-
initial_value: "Ubuntu-Medium",
|
|
2374
|
-
},
|
|
2375
|
-
{
|
|
2376
|
-
type: "number_input",
|
|
2377
|
-
label: "Vizio Font Size",
|
|
2378
|
-
key: "vizio_player_time_font_size",
|
|
2379
|
-
initial_value: 20,
|
|
2380
|
-
},
|
|
2381
2273
|
{
|
|
2382
2274
|
type: "android_font_selector",
|
|
2383
2275
|
label: "Android TV Font Family",
|
|
@@ -2433,18 +2325,6 @@ function getPlayerConfiguration({ platform }) {
|
|
|
2433
2325
|
key: "samsung_tv_audio_player_run_time_font_size",
|
|
2434
2326
|
initial_value: 20,
|
|
2435
2327
|
},
|
|
2436
|
-
{
|
|
2437
|
-
type: "vizio_font_selector",
|
|
2438
|
-
label: "Vizio Font Family",
|
|
2439
|
-
key: "vizio_audio_player_run_time_font_family",
|
|
2440
|
-
initial_value: "Ubuntu-Medium",
|
|
2441
|
-
},
|
|
2442
|
-
{
|
|
2443
|
-
type: "number_input",
|
|
2444
|
-
label: "Vizio Font Size",
|
|
2445
|
-
key: "vizio_audio_player_run_time_font_size",
|
|
2446
|
-
initial_value: 20,
|
|
2447
|
-
},
|
|
2448
2328
|
{
|
|
2449
2329
|
type: "tvos_font_selector",
|
|
2450
2330
|
label: "tvOS Font Family",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react";
|
|
2
|
+
import * as R from "ramda";
|
|
2
3
|
import { usePrevious } from "@applicaster/zapp-react-native-utils/reactHooks/utils";
|
|
3
4
|
import { playerManager } from "@applicaster/zapp-react-native-utils/appUtils/playerManager";
|
|
4
5
|
import {
|
|
@@ -16,6 +17,10 @@ export const useAutoSeek = (resetHUDTimer = noop) => {
|
|
|
16
17
|
const intervalTimer = React.useRef(null);
|
|
17
18
|
const prevRunning = usePrevious(isRunning);
|
|
18
19
|
|
|
20
|
+
const setIntervalTimer = (cb) => {
|
|
21
|
+
intervalTimer.current = setInterval(cb, ON_HOLD_INTERVAL);
|
|
22
|
+
};
|
|
23
|
+
|
|
19
24
|
const clearIntervalTimer = () => {
|
|
20
25
|
try {
|
|
21
26
|
clearInterval(intervalTimer.current);
|
|
@@ -24,11 +29,6 @@ export const useAutoSeek = (resetHUDTimer = noop) => {
|
|
|
24
29
|
}
|
|
25
30
|
};
|
|
26
31
|
|
|
27
|
-
const setIntervalTimer = (cb) => {
|
|
28
|
-
clearIntervalTimer();
|
|
29
|
-
intervalTimer.current = setInterval(cb, ON_HOLD_INTERVAL);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
32
|
const resetState = () => {
|
|
33
33
|
setIsRunning(false);
|
|
34
34
|
setDirection(null);
|
|
@@ -42,7 +42,7 @@ export const useAutoSeek = (resetHUDTimer = noop) => {
|
|
|
42
42
|
if (!player) return;
|
|
43
43
|
|
|
44
44
|
if (direction) {
|
|
45
|
-
player[direction](
|
|
45
|
+
player[direction](R.min(MAX_SEEK_TIME, SKIP_TIME_BASE * multiplier));
|
|
46
46
|
resetHUDTimer();
|
|
47
47
|
}
|
|
48
48
|
}, [multiplier, direction]);
|
|
@@ -50,9 +50,7 @@ export const useAutoSeek = (resetHUDTimer = noop) => {
|
|
|
50
50
|
useEffect(() => {
|
|
51
51
|
if (isRunning && isRunning !== prevRunning) {
|
|
52
52
|
setIntervalTimer(() => {
|
|
53
|
-
setMultiplier((
|
|
54
|
-
return prev + 1;
|
|
55
|
-
});
|
|
53
|
+
setMultiplier(R.add(1));
|
|
56
54
|
});
|
|
57
55
|
} else if (!isRunning && isRunning !== prevRunning) {
|
|
58
56
|
resetState();
|