@applicaster/quick-brick-player 13.0.0-rc.116 → 13.0.0-rc.118

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.116",
3
+ "version": "13.0.0-rc.118",
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.112",
39
39
  "@applicaster/quick-brick-tv-transport-controls": "13.0.0-rc.56",
40
- "@applicaster/zapp-react-native-tvos-app": "13.0.0-rc.116",
41
- "@applicaster/zapp-react-native-ui-components": "13.0.0-rc.116",
42
- "@applicaster/zapp-react-native-utils": "13.0.0-rc.116",
40
+ "@applicaster/zapp-react-native-tvos-app": "13.0.0-rc.118",
41
+ "@applicaster/zapp-react-native-ui-components": "13.0.0-rc.118",
42
+ "@applicaster/zapp-react-native-utils": "13.0.0-rc.118",
43
43
  "query-string": "7.1.3",
44
44
  "react-native-web-linear-gradient": "1.1.2",
45
45
  "shaka-player": "4.3.5",
@@ -44,8 +44,8 @@ import {
44
44
  } from "./SleepTimerManager";
45
45
  import { DEFAULT_SPEED, PlaybackSpeed, SpeedController } from "./SpeedManager";
46
46
  import {
47
- openBottomSheetModal,
48
47
  dismissModal as dismissBottomSheetModal,
48
+ openBottomSheetModal,
49
49
  useModalStoreState,
50
50
  } from "@applicaster/zapp-react-native-utils/modalState";
51
51
  import { getSleepTimerOptions } from "../Const/sleepTimerOptions";
@@ -161,7 +161,14 @@ export const AudioPlayerWrapper: React.FC<Props> = (props: Props) => {
161
161
  });
162
162
 
163
163
  return () => unsubscribe?.();
164
- }, [player, modalBottomSheetState.visible]);
164
+ }, [player, modalBottomSheetState.visible, sleepTimerManager]);
165
+
166
+ React.useEffect(() => {
167
+ if (playerState?.isLive) {
168
+ // Resetting a sleep timer when audio content is live (Timer not supported on live video)
169
+ sleepTimerManager.setSleepTimer(SLEEP_TIMER_OFF).catch();
170
+ }
171
+ }, [playerState?.isLive]);
165
172
 
166
173
  const [playbackSpeed, setPlaybackSpeed] =
167
174
  useState<PlaybackSpeed>(DEFAULT_SPEED);
@@ -81,7 +81,10 @@ export const PlayerImage = (props: Props) => {
81
81
  >
82
82
  <View
83
83
  onLayout={onLayoutImage}
84
- style={shouldShowShadow ? styles.shadow : undefined}
84
+ style={[
85
+ shouldShowShadow ? styles.shadow : undefined,
86
+ { borderRadius },
87
+ ]}
85
88
  >
86
89
  {!imageWidth ? (
87
90
  <View style={[styles.defaultImageWrapperView, { borderRadius }]}>
@@ -26,7 +26,7 @@ export const useIsCasting = () => {
26
26
 
27
27
  React.useEffect(() => {
28
28
  if (!shouldOnlyUpdateInForeground || isAppInForeground) {
29
- if (!(!actionContext && castActionState !== null)) {
29
+ if (actionContext && castActionState === null) {
30
30
  setCastActionState(actionContext.initialEntryState(fakeEntry));
31
31
  }
32
32
  }