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