@applicaster/quick-brick-player 13.0.0-rc.64 → 13.0.0-rc.65

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.64",
3
+ "version": "13.0.0-rc.65",
4
4
  "description": "Quick Brick Player",
5
5
  "main": "./src/index.ts",
6
6
  "types": "index.d.ts",
@@ -38,9 +38,9 @@
38
38
  "dependencies": {
39
39
  "@applicaster/quick-brick-mobile-transport-controls": "13.0.0-rc.63",
40
40
  "@applicaster/quick-brick-tv-transport-controls": "13.0.0-rc.56",
41
- "@applicaster/zapp-react-native-tvos-app": "13.0.0-rc.64",
42
- "@applicaster/zapp-react-native-ui-components": "13.0.0-rc.64",
43
- "@applicaster/zapp-react-native-utils": "13.0.0-rc.64",
41
+ "@applicaster/zapp-react-native-tvos-app": "13.0.0-rc.65",
42
+ "@applicaster/zapp-react-native-ui-components": "13.0.0-rc.65",
43
+ "@applicaster/zapp-react-native-utils": "13.0.0-rc.65",
44
44
  "keymirror": "^0.1.1",
45
45
  "query-string": "7.1.3",
46
46
  "react-native-web-linear-gradient": "1.1.2",
@@ -453,7 +453,8 @@ export const AudioPlayerWrapper: React.FC<Props> = (props: Props) => {
453
453
 
454
454
  const queryParamValue = 15;
455
455
 
456
- const url = addQueryParam(baseUrl, queryParamName, queryParamValue);
456
+ const url =
457
+ baseUrl && addQueryParam(baseUrl, queryParamName, queryParamValue);
457
458
 
458
459
  return (
459
460
  <MagicBG
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { useEffect, useMemo, useState } from "react";
3
3
  import * as R from "ramda";
4
- import { View } from "react-native";
4
+ import { View, Dimensions as ScreenDimensions } from "react-native";
5
5
  import { dayjs } from "@applicaster/zapp-react-native-utils/dateUtils";
6
6
 
7
7
  import {
@@ -79,6 +79,8 @@ type LayoutProps = {
79
79
  defaultDimensions: Dimensions;
80
80
  };
81
81
 
82
+ const { width: SCREEN_WIDTH } = ScreenDimensions.get("screen");
83
+
82
84
  const Styles = {
83
85
  container: { flex: 1 },
84
86
  tabletContainer: (isPortraitMode: boolean) => ({
@@ -91,6 +93,11 @@ const Styles = {
91
93
  maxHeight: 750,
92
94
  marginTop: 80,
93
95
  },
96
+ playerInfoWrapper: {
97
+ flex: 1,
98
+ alignItems: "center",
99
+ justifyContent: "space-between",
100
+ },
94
101
  tabletLayout: {
95
102
  width: 463,
96
103
  marginBottom: 80,
@@ -101,9 +108,9 @@ const Styles = {
101
108
  justifyContent: isLiveShowFullControls ? "space-between" : "space-evenly",
102
109
  }),
103
110
  backgroundImageContainer: (dimensions: Dimensions, isTablet: boolean) => {
104
- const mobileValue = dimensions.width
111
+ const mobileValue = dimensions?.width
105
112
  ? dimensions.width - PADDING_HORIZONTAL * 2
106
- : 330;
113
+ : SCREEN_WIDTH - PADDING_HORIZONTAL * 2;
107
114
 
108
115
  return {
109
116
  width: isTablet ? 463 : mobileValue,
@@ -329,9 +336,7 @@ export default function DefaultLayout(props: LayoutProps) {
329
336
  const Separator = () => <View style={Styles.separator} />;
330
337
 
331
338
  const defaultImageDimensions = React.useMemo(
332
- () =>
333
- defaultDimensions &&
334
- Styles.backgroundImageContainer(defaultDimensions, isTablet),
339
+ () => Styles.backgroundImageContainer(defaultDimensions, isTablet),
335
340
  [defaultDimensions, isTablet]
336
341
  );
337
342
 
@@ -344,7 +349,10 @@ export default function DefaultLayout(props: LayoutProps) {
344
349
  isTablet ? Styles.tabletContainer(isPortraitMode) : Styles.container
345
350
  }
346
351
  >
347
- <AnimationComponent animationType={ComponentAnimationType.componentFade}>
352
+ <AnimationComponent
353
+ animationType={ComponentAnimationType.componentFade}
354
+ style={isTablet ? Styles.playerInfoWrapper : undefined}
355
+ >
348
356
  <TransportInfo
349
357
  content={entry}
350
358
  value={value}
@@ -375,7 +383,6 @@ export default function DefaultLayout(props: LayoutProps) {
375
383
  >
376
384
  <PlayerImageBackground
377
385
  entry={entry}
378
- docked={docked}
379
386
  style={Styles.backgroundImageContainer(dimensions, isTablet)}
380
387
  imageStyle={Styles.backgroundImageContainerImageStyle(
381
388
  isTablet,
@@ -47,7 +47,7 @@ const fetchPaletteAndDominantColor = async (imageUrl: string) => {
47
47
  const dominant = await getDominantColor(imageUrl);
48
48
  const dominantColor = `rgb(${dominant.r}, ${dominant.g}, ${dominant.b})`;
49
49
 
50
- return { gradientColors: colors.slice(0, 2), dominantColor };
50
+ return { gradientColors: colors.slice(0, 2).reverse(), dominantColor };
51
51
  };
52
52
 
53
53
  export const MagicBG: React.FC<MagicBGProps> = ({