@applicaster/quick-brick-player 13.0.0-rc.122 → 13.0.0-rc.123
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.123",
|
|
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.123",
|
|
41
|
+
"@applicaster/zapp-react-native-ui-components": "13.0.0-rc.123",
|
|
42
|
+
"@applicaster/zapp-react-native-utils": "13.0.0-rc.123",
|
|
43
43
|
"query-string": "7.1.3",
|
|
44
44
|
"react-native-web-linear-gradient": "1.1.2",
|
|
45
45
|
"shaka-player": "4.3.5",
|
|
@@ -14,7 +14,7 @@ import { PlayerAnimationStateT } from "@applicaster/zapp-react-native-ui-compone
|
|
|
14
14
|
const builder = () => {
|
|
15
15
|
const changePlayerState$ = new Subject<PlayerAnimationStateT>();
|
|
16
16
|
|
|
17
|
-
const
|
|
17
|
+
const emitMaximized = (): void => {
|
|
18
18
|
changePlayerState$.next(PlayerAnimationStateEnum.maximize);
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -28,7 +28,7 @@ const builder = () => {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
return {
|
|
31
|
-
|
|
31
|
+
emitMaximized,
|
|
32
32
|
emitMinimized,
|
|
33
33
|
emitAppearInDocked,
|
|
34
34
|
changePlayerState$: changePlayerState$.pipe(distinctUntilChanged()),
|
|
@@ -61,7 +61,27 @@ export const useChangePlayerState = ({
|
|
|
61
61
|
isNil(previousPlayerAnimationState) &&
|
|
62
62
|
playerAnimationState === PlayerAnimationStateEnum.maximize
|
|
63
63
|
) {
|
|
64
|
-
changePlayerStateRef.current.
|
|
64
|
+
changePlayerStateRef.current.emitMaximized();
|
|
65
|
+
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (
|
|
70
|
+
!docked &&
|
|
71
|
+
previousPlayerAnimationState === PlayerAnimationStateEnum.drag_scroll &&
|
|
72
|
+
playerAnimationState === PlayerAnimationStateEnum.maximize
|
|
73
|
+
) {
|
|
74
|
+
changePlayerStateRef.current.emitMaximized();
|
|
75
|
+
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (
|
|
80
|
+
!docked &&
|
|
81
|
+
previousPlayerAnimationState === PlayerAnimationStateEnum.drag_scroll &&
|
|
82
|
+
playerAnimationState === PlayerAnimationStateEnum.minimize
|
|
83
|
+
) {
|
|
84
|
+
changePlayerStateRef.current.emitMinimized();
|
|
65
85
|
|
|
66
86
|
return;
|
|
67
87
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { LayoutChangeEvent, View } from "react-native";
|
|
2
3
|
|
|
3
4
|
import {
|
|
4
5
|
AnimationComponent,
|
|
@@ -6,6 +7,7 @@ import {
|
|
|
6
7
|
useModalAnimationContext,
|
|
7
8
|
} from "@applicaster/zapp-react-native-ui-components/Components/VideoModal/ModalAnimation";
|
|
8
9
|
import { noop } from "@applicaster/zapp-react-native-utils/functionUtils";
|
|
10
|
+
import { toBooleanWithDefaultTrue } from "@applicaster/zapp-react-native-utils/booleanUtils";
|
|
9
11
|
|
|
10
12
|
import { AnimatedImage } from "./AnimatedImage";
|
|
11
13
|
import { FlexImage } from "./FlexImage";
|
|
@@ -13,7 +15,6 @@ import { FlexImage } from "./FlexImage";
|
|
|
13
15
|
import { styles } from "./styles";
|
|
14
16
|
import { calculateBorderRadius } from "../../utils";
|
|
15
17
|
import { PlayNextData } from "../types";
|
|
16
|
-
import { LayoutChangeEvent, View } from "react-native";
|
|
17
18
|
|
|
18
19
|
type Props = {
|
|
19
20
|
entry: ZappEntry;
|
|
@@ -51,8 +52,9 @@ export const PlayerImage = (props: Props) => {
|
|
|
51
52
|
minimisedHeight,
|
|
52
53
|
} = useModalAnimationContext();
|
|
53
54
|
|
|
54
|
-
const isShadowEnabled =
|
|
55
|
-
configuration?.audio_player_artwork_shadow_enabled
|
|
55
|
+
const isShadowEnabled = toBooleanWithDefaultTrue(
|
|
56
|
+
configuration?.audio_player_artwork_shadow_enabled
|
|
57
|
+
);
|
|
56
58
|
|
|
57
59
|
const shouldShowShadow = !docked && isShadowEnabled;
|
|
58
60
|
|