@applicaster/quick-brick-player 12.0.0-alpha.3548534181 → 12.0.0-alpha.3551594096

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": "12.0.0-alpha.3548534181",
3
+ "version": "12.0.0-alpha.3551594096",
4
4
  "description": "Quick Brick Player",
5
5
  "main": "./src/index.ts",
6
6
  "types": "index.d.ts",
@@ -36,11 +36,11 @@
36
36
  },
37
37
  "homepage": "https://github.com/applicaster/quickbrick#readme",
38
38
  "dependencies": {
39
- "@applicaster/quick-brick-mobile-transport-controls": "12.0.0-alpha.3548534181",
40
- "@applicaster/quick-brick-tv-transport-controls": "12.0.0-alpha.3548534181",
41
- "@applicaster/zapp-react-native-tvos-app": "12.0.0-alpha.3548534181",
42
- "@applicaster/zapp-react-native-ui-components": "12.0.0-alpha.3548534181",
43
- "@applicaster/zapp-react-native-utils": "12.0.0-alpha.3548534181",
39
+ "@applicaster/quick-brick-mobile-transport-controls": "12.0.0-alpha.3551594096",
40
+ "@applicaster/quick-brick-tv-transport-controls": "12.0.0-rc.89",
41
+ "@applicaster/zapp-react-native-tvos-app": "12.0.0-alpha.3551594096",
42
+ "@applicaster/zapp-react-native-ui-components": "12.0.0-alpha.3551594096",
43
+ "@applicaster/zapp-react-native-utils": "12.0.0-alpha.3551594096",
44
44
  "keymirror": "^0.1.1",
45
45
  "query-string": "7.1.3",
46
46
  "react-native-web-linear-gradient": "1.1.2",
@@ -388,6 +388,7 @@ export const AudioPlayerWrapper: React.FC<Props> = (props: Props) => {
388
388
  <AnimationComponent
389
389
  animationType={ComponentAnimationType.moveUpComponent}
390
390
  additionalData={{ saveArea: true }}
391
+ style={Styles.playerContainer}
391
392
  >
392
393
  <AnimatedScrollModal>
393
394
  <View style={Styles.playerContainer} onLayout={onLayout}>
@@ -245,17 +245,19 @@ export default function DockedLayout(props: LayoutProps) {
245
245
  animatedContainerStyle(isActiveGesture || layoutState.docked),
246
246
  ]}
247
247
  >
248
- {!playerState.isLive && layoutState.docked && (
249
- <ProgressBar
250
- content={entry}
251
- value={value}
252
- visible={visible}
253
- layoutState={layoutState}
254
- onPlayerSeek={onPlayerSeek}
255
- playerState={playerState}
256
- docked
257
- />
258
- )}
248
+ {!playerState.isLive &&
249
+ (layoutState.docked || startComponentsAnimation) && (
250
+ <ProgressBar
251
+ content={entry}
252
+ value={value}
253
+ visible={visible}
254
+ layoutState={layoutState}
255
+ onPlayerSeek={onPlayerSeek}
256
+ playerState={playerState}
257
+ startComponentsAnimation={startComponentsAnimation}
258
+ docked
259
+ />
260
+ )}
259
261
 
260
262
  <View style={styles.content}>
261
263
  <View
@@ -989,7 +989,13 @@ export default class VideoPlayer extends React.Component<
989
989
  ...androidLifecyclePiPEvents,
990
990
  };
991
991
 
992
- const needToShowPlayNextOverlay = this.getPlayNextData() && !docked;
992
+ const needToShowPlayNextOverlay =
993
+ isTV() && this.getPlayNextData() && !docked;
994
+
995
+ const needToShowDefaultControls = !(
996
+ (controls && !castAction?.state?.connected) ||
997
+ this.getPlayNextData()
998
+ );
993
999
 
994
1000
  const playerContainerStyles = isApplePlatform()
995
1001
  ? styles.playerContainerBlack
@@ -1031,7 +1037,7 @@ export default class VideoPlayer extends React.Component<
1031
1037
  extraInfoText={castAction?.state?.friendlyStatus}
1032
1038
  controlsAlwaysVisible={castAction?.state?.connected}
1033
1039
  playNextData={this.getPlayNextData()}
1034
- nativeControls={!!controls}
1040
+ needToShowDefaultControls={needToShowDefaultControls}
1035
1041
  />
1036
1042
  ) : null;
1037
1043
  };