@applicaster/quick-brick-player 13.0.0-rc.90 → 13.0.0-rc.91
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.91",
|
|
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.88",
|
|
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.91",
|
|
41
|
+
"@applicaster/zapp-react-native-ui-components": "13.0.0-rc.91",
|
|
42
|
+
"@applicaster/zapp-react-native-utils": "13.0.0-rc.91",
|
|
43
43
|
"keymirror": "^0.1.1",
|
|
44
44
|
"query-string": "7.1.3",
|
|
45
45
|
"react-native-web-linear-gradient": "1.1.2",
|
|
@@ -27,13 +27,7 @@ import {
|
|
|
27
27
|
} from "@applicaster/zapp-react-native-ui-components/Components/VideoModal/ModalAnimation";
|
|
28
28
|
import { PADDING_HORIZONTAL } from "./Layout/defaultLayoutsConts";
|
|
29
29
|
import { toNumberWithDefault } from "@applicaster/zapp-react-native-utils/numberUtils";
|
|
30
|
-
|
|
31
|
-
speed_0_8,
|
|
32
|
-
speed_1,
|
|
33
|
-
speed_1_2,
|
|
34
|
-
speed_1_5,
|
|
35
|
-
speed_2,
|
|
36
|
-
} from "@applicaster/quick-brick-mobile-transport-controls";
|
|
30
|
+
|
|
37
31
|
import {
|
|
38
32
|
SleepTimerController,
|
|
39
33
|
SleepTimerState,
|
|
@@ -129,6 +123,14 @@ const sleeps = [
|
|
|
129
123
|
{ label: "2 hours", value: 120 },
|
|
130
124
|
];
|
|
131
125
|
|
|
126
|
+
const speeds = [
|
|
127
|
+
{ label: "0.8x", value: 0.8 },
|
|
128
|
+
{ label: "1x", value: 1.0 },
|
|
129
|
+
{ label: "1.2x", value: 1.2 },
|
|
130
|
+
{ label: "1.5x", value: 1.5 },
|
|
131
|
+
{ label: "2x", value: 2.0 },
|
|
132
|
+
];
|
|
133
|
+
|
|
132
134
|
const edges: Edge[] = ["right", "left", "top"];
|
|
133
135
|
|
|
134
136
|
export const AudioPlayerWrapper: React.FC<Props> = (props: Props) => {
|
|
@@ -147,14 +149,6 @@ export const AudioPlayerWrapper: React.FC<Props> = (props: Props) => {
|
|
|
147
149
|
isTabletPortrait,
|
|
148
150
|
} = props;
|
|
149
151
|
|
|
150
|
-
const speeds = [
|
|
151
|
-
{ asset: configuration["speed_0_8"] || speed_0_8, value: 0.8 },
|
|
152
|
-
{ asset: configuration["speed_1"] || speed_1, value: 1.0 },
|
|
153
|
-
{ asset: configuration["speed_1_2"] || speed_1_2, value: 1.2 },
|
|
154
|
-
{ asset: configuration["speed_1_5"] || speed_1_5, value: 1.5 },
|
|
155
|
-
{ asset: configuration["speed_2"] || speed_2, value: 2.0 },
|
|
156
|
-
];
|
|
157
|
-
|
|
158
152
|
const isTablet = useIsTablet();
|
|
159
153
|
|
|
160
154
|
const isTabletLandscape = !isTV() && isTablet && !isTabletPortrait;
|
package/src/Player/index.tsx
CHANGED
|
@@ -1054,7 +1054,10 @@ export default class VideoPlayer extends React.Component<
|
|
|
1054
1054
|
{!castAction?.state?.connected || supportNativeCast ? (
|
|
1055
1055
|
<AnimationComponent
|
|
1056
1056
|
animationType={ComponentAnimationType.player}
|
|
1057
|
-
additionalData={
|
|
1057
|
+
additionalData={{
|
|
1058
|
+
...playerDimensions,
|
|
1059
|
+
disableAnimatedComponent: isAudioItem,
|
|
1060
|
+
}}
|
|
1058
1061
|
style={getStyle(playerDimensions)}
|
|
1059
1062
|
>
|
|
1060
1063
|
<this.props.PlayerComponent
|