@applicaster/quick-brick-player 15.0.0-alpha.2691570618 → 15.0.0-alpha.3242245332
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": "@applicaster/quick-brick-player",
|
|
3
|
-
"version": "15.0.0-alpha.
|
|
3
|
+
"version": "15.0.0-alpha.3242245332",
|
|
4
4
|
"description": "Quick Brick Player",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@applicaster/quick-brick-mobile-transport-controls": "15.0.0-
|
|
38
|
+
"@applicaster/quick-brick-mobile-transport-controls": "15.0.0-rc.27",
|
|
39
39
|
"@applicaster/quick-brick-tv-transport-controls": "15.0.0-rc.15",
|
|
40
|
-
"@applicaster/zapp-react-native-tvos-app": "15.0.0-alpha.
|
|
41
|
-
"@applicaster/zapp-react-native-ui-components": "15.0.0-alpha.
|
|
42
|
-
"@applicaster/zapp-react-native-utils": "15.0.0-alpha.
|
|
40
|
+
"@applicaster/zapp-react-native-tvos-app": "15.0.0-alpha.3242245332",
|
|
41
|
+
"@applicaster/zapp-react-native-ui-components": "15.0.0-alpha.3242245332",
|
|
42
|
+
"@applicaster/zapp-react-native-utils": "15.0.0-alpha.3242245332",
|
|
43
43
|
"query-string": "7.1.3",
|
|
44
44
|
"shaka-player": "4.3.5",
|
|
45
45
|
"typeface-montserrat": "^0.0.54",
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "@applicaster/zapp-react-native-utils/reactUtils";
|
|
8
8
|
import {
|
|
9
9
|
isTablet,
|
|
10
|
-
useIsTablet,
|
|
10
|
+
useIsTablet as getIsTablet,
|
|
11
11
|
} from "@applicaster/zapp-react-native-utils/reactHooks";
|
|
12
12
|
|
|
13
13
|
const SAFE_AREA_BREAKING_API_VERSION = 35;
|
|
@@ -38,10 +38,13 @@ const getIsTabletLandscape = (isTabletPortrait: boolean): boolean => {
|
|
|
38
38
|
return !isTV() && isTablet() && !isTabletPortrait;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
export const getInsetsOffset = (
|
|
41
|
+
export const getInsetsOffset = (
|
|
42
|
+
insets: { top: number; bottom: number },
|
|
43
|
+
isTabletPortrait: boolean
|
|
44
|
+
): number => {
|
|
42
45
|
const isTabletLandscape = getIsTabletLandscape(isTabletPortrait);
|
|
43
46
|
|
|
44
|
-
return isTablet && isTabletLandscape
|
|
47
|
+
return isTablet() && isTabletLandscape
|
|
45
48
|
? isOldAndroidDevice
|
|
46
49
|
? insets.top / 2
|
|
47
50
|
: 0
|
|
@@ -69,16 +72,18 @@ export const getScaledPos = (
|
|
|
69
72
|
) => {
|
|
70
73
|
const isTabletLandscape = getIsTabletLandscape(isTabletPortrait);
|
|
71
74
|
|
|
72
|
-
const SCALE_FACTOR =
|
|
75
|
+
const SCALE_FACTOR = minimisedHeight / vidHeight; // Scale factor for expanded content
|
|
73
76
|
|
|
74
77
|
return (
|
|
75
78
|
((isTabletLandscape ? height : vidHeight) - vidHeight * SCALE_FACTOR) / 2
|
|
76
79
|
);
|
|
77
80
|
};
|
|
78
81
|
|
|
79
|
-
export const getExtraContentPadding = (insets
|
|
80
|
-
|
|
81
|
-
|
|
82
|
+
export const getExtraContentPadding = (insets: {
|
|
83
|
+
top: number;
|
|
84
|
+
bottom: number;
|
|
85
|
+
}): ViewStyle => {
|
|
86
|
+
const isTablet = getIsTablet(); // not a hook, just a utility function
|
|
82
87
|
|
|
83
88
|
return {
|
|
84
89
|
paddingTop: isTablet ? insets.top : 0,
|