@applicaster/quick-brick-player 13.0.0-rc.120 → 13.0.0-rc.121
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": "13.0.0-rc.
|
|
3
|
+
"version": "13.0.0-rc.121",
|
|
4
4
|
"description": "Quick Brick Player",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@applicaster/quick-brick-mobile-transport-controls": "13.0.0-rc.120",
|
|
39
39
|
"@applicaster/quick-brick-tv-transport-controls": "13.0.0-rc.56",
|
|
40
|
-
"@applicaster/zapp-react-native-tvos-app": "13.0.0-rc.
|
|
41
|
-
"@applicaster/zapp-react-native-ui-components": "13.0.0-rc.
|
|
42
|
-
"@applicaster/zapp-react-native-utils": "13.0.0-rc.
|
|
40
|
+
"@applicaster/zapp-react-native-tvos-app": "13.0.0-rc.121",
|
|
41
|
+
"@applicaster/zapp-react-native-ui-components": "13.0.0-rc.121",
|
|
42
|
+
"@applicaster/zapp-react-native-utils": "13.0.0-rc.121",
|
|
43
43
|
"query-string": "7.1.3",
|
|
44
44
|
"react-native-web-linear-gradient": "1.1.2",
|
|
45
45
|
"shaka-player": "4.3.5",
|
|
@@ -24,6 +24,10 @@ import {
|
|
|
24
24
|
useModalAnimationContext,
|
|
25
25
|
} from "@applicaster/zapp-react-native-ui-components/Components/VideoModal/ModalAnimation";
|
|
26
26
|
import { toNumberWithDefault } from "@applicaster/zapp-react-native-utils/numberUtils";
|
|
27
|
+
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
28
|
+
import { getTabBarHeight } from "@applicaster/zapp-react-native-utils/reactHooks/navigation/getTabBarHeight";
|
|
29
|
+
|
|
30
|
+
const bottomTabBarHeight = getTabBarHeight();
|
|
27
31
|
|
|
28
32
|
type Props = {
|
|
29
33
|
entry: ZappEntry;
|
|
@@ -88,10 +92,6 @@ const styles = StyleSheet.create({
|
|
|
88
92
|
},
|
|
89
93
|
});
|
|
90
94
|
|
|
91
|
-
const backgroundColorStyle = (value: GetValue): ViewStyle => ({
|
|
92
|
-
backgroundColor: value("docked_player_background_color"),
|
|
93
|
-
});
|
|
94
|
-
|
|
95
95
|
const playerDimensionsStyle = (
|
|
96
96
|
minimisedHeight: number,
|
|
97
97
|
addPadding: boolean
|
|
@@ -208,6 +208,10 @@ export const DockedControls = (props: Props) => {
|
|
|
208
208
|
[]
|
|
209
209
|
);
|
|
210
210
|
|
|
211
|
+
const dockedBackgroundColor = value("docked_player_background_color");
|
|
212
|
+
|
|
213
|
+
const insets = useSafeAreaInsets();
|
|
214
|
+
|
|
211
215
|
if (!layoutState.docked && !startComponentsAnimation) return null;
|
|
212
216
|
|
|
213
217
|
return (
|
|
@@ -219,7 +223,9 @@ export const DockedControls = (props: Props) => {
|
|
|
219
223
|
isActiveGesture || layoutState.docked,
|
|
220
224
|
progressBarHeight
|
|
221
225
|
),
|
|
222
|
-
{
|
|
226
|
+
{
|
|
227
|
+
height: minimisedHeight + bottomTabBarHeight + insets.bottom,
|
|
228
|
+
},
|
|
223
229
|
]}
|
|
224
230
|
>
|
|
225
231
|
{!playerState.isLive &&
|
|
@@ -261,7 +267,12 @@ export const DockedControls = (props: Props) => {
|
|
|
261
267
|
)}
|
|
262
268
|
/>
|
|
263
269
|
)}
|
|
264
|
-
<View
|
|
270
|
+
<View
|
|
271
|
+
style={[
|
|
272
|
+
styles.contentInfo,
|
|
273
|
+
{ backgroundColor: dockedBackgroundColor },
|
|
274
|
+
]}
|
|
275
|
+
>
|
|
265
276
|
<ContentInfo
|
|
266
277
|
content={{ ...entry, title, summary }}
|
|
267
278
|
value={value}
|
|
@@ -275,7 +286,7 @@ export const DockedControls = (props: Props) => {
|
|
|
275
286
|
isTablet
|
|
276
287
|
? styles.controlsContainerForTablet
|
|
277
288
|
: styles.controlsContainerForMobile,
|
|
278
|
-
|
|
289
|
+
{ backgroundColor: dockedBackgroundColor },
|
|
279
290
|
]}
|
|
280
291
|
>
|
|
281
292
|
<Controls
|
|
@@ -297,6 +308,12 @@ export const DockedControls = (props: Props) => {
|
|
|
297
308
|
/>
|
|
298
309
|
</View>
|
|
299
310
|
</View>
|
|
311
|
+
<View
|
|
312
|
+
style={{
|
|
313
|
+
height: insets.bottom + bottomTabBarHeight,
|
|
314
|
+
backgroundColor: dockedBackgroundColor,
|
|
315
|
+
}}
|
|
316
|
+
/>
|
|
300
317
|
</AnimationComponent>
|
|
301
318
|
);
|
|
302
319
|
};
|