@applicaster/quick-brick-player 14.0.0-alpha.4011674803 → 14.0.0-alpha.4652343390

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": "14.0.0-alpha.4011674803",
3
+ "version": "14.0.0-alpha.4652343390",
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": "13.0.0-rc.124",
38
+ "@applicaster/quick-brick-mobile-transport-controls": "14.0.0-alpha.4652343390",
39
39
  "@applicaster/quick-brick-tv-transport-controls": "14.0.0-rc.7",
40
- "@applicaster/zapp-react-native-tvos-app": "14.0.0-alpha.4011674803",
41
- "@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.4011674803",
42
- "@applicaster/zapp-react-native-utils": "14.0.0-alpha.4011674803",
40
+ "@applicaster/zapp-react-native-tvos-app": "14.0.0-alpha.4652343390",
41
+ "@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.4652343390",
42
+ "@applicaster/zapp-react-native-utils": "14.0.0-alpha.4652343390",
43
43
  "query-string": "7.1.3",
44
44
  "react-native-web-linear-gradient": "1.1.2",
45
45
  "shaka-player": "4.3.5",
@@ -1,7 +1,7 @@
1
1
  import React, { PropsWithChildren } from "react";
2
2
  import { Image, Animated, StyleSheet, ImageStyle } from "react-native";
3
3
 
4
- import { getBackgroundImage } from "@applicaster/zapp-react-native-utils/audioPlayerUtils";
4
+ import { imageSrcFromMediaItem } from "@applicaster/zapp-react-native-utils/configurationUtils";
5
5
  import {
6
6
  useModalAnimationContext,
7
7
  PlayerAnimationStateEnum,
@@ -25,23 +25,14 @@ type Props = PropsWithChildren<{
25
25
  style?: ImageStyle | ImageStyle[];
26
26
  imageWidth: number;
27
27
  docked: boolean;
28
- configuration: QuickBrickPlayer.AudioPlayerProps["configuration"];
29
28
  }>;
30
29
 
31
- export const AnimatedImage = ({
32
- entry,
33
- style,
34
- imageWidth,
35
- docked,
36
- configuration,
37
- }: Props) => {
30
+ export const AnimatedImage = ({ entry, style, imageWidth, docked }: Props) => {
38
31
  const heightAnim = React.useRef(new Animated.Value(imageWidth)).current;
39
32
 
40
33
  const source = React.useMemo(
41
- () => ({
42
- uri: getBackgroundImage({ entry, plugin_configuration: configuration }),
43
- }),
44
- [entry, configuration]
34
+ () => ({ uri: imageSrcFromMediaItem(entry, undefined) }),
35
+ [entry]
45
36
  );
46
37
 
47
38
  const { minimisedHeight } = useModalAnimationContext();
@@ -1,19 +1,17 @@
1
1
  import * as React from "react";
2
2
  import { Image, ImageStyle } from "react-native";
3
- import { getBackgroundImage } from "@applicaster/zapp-react-native-utils/audioPlayerUtils";
3
+
4
+ import { imageSrcFromMediaItem } from "@applicaster/zapp-react-native-utils/configurationUtils";
4
5
 
5
6
  type Props = {
6
7
  entry: ZappEntry;
7
8
  style?: ImageStyle;
8
- configuration: QuickBrickPlayer.AudioPlayerProps["configuration"];
9
9
  };
10
10
 
11
- export const FlexImage = ({ entry, style, configuration }: Props) => {
11
+ export const FlexImage = ({ entry, style }: Props) => {
12
12
  const source = React.useMemo(
13
- () => ({
14
- uri: getBackgroundImage({ entry, plugin_configuration: configuration }),
15
- }),
16
- [entry, configuration]
13
+ () => ({ uri: imageSrcFromMediaItem(entry, undefined) }),
14
+ [entry]
17
15
  );
18
16
 
19
17
  if (!source) return null;
@@ -94,7 +94,6 @@ export const PlayerImage = (props: Props) => {
94
94
  <FlexImage
95
95
  entry={entry}
96
96
  style={styles.backgroundImageContainer}
97
- configuration={configuration}
98
97
  />
99
98
  </View>
100
99
  ) : (
@@ -104,7 +103,6 @@ export const PlayerImage = (props: Props) => {
104
103
  style={[styles.backgroundImageContainer, { borderRadius }]}
105
104
  imageWidth={imageWidth}
106
105
  docked={docked}
107
- configuration={configuration}
108
106
  />
109
107
  )}
110
108
  </View>