@applicaster/quick-brick-player 12.0.0-rc.52 → 12.0.0-rc.54

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-rc.52",
3
+ "version": "12.0.0-rc.54",
4
4
  "description": "Quick Brick Player",
5
5
  "main": "./src/index.ts",
6
6
  "types": "index.d.ts",
@@ -38,9 +38,9 @@
38
38
  "dependencies": {
39
39
  "@applicaster/quick-brick-mobile-transport-controls": "12.0.0-rc.51",
40
40
  "@applicaster/quick-brick-tv-transport-controls": "11.0.0-rc.133",
41
- "@applicaster/zapp-react-native-tvos-app": "12.0.0-rc.52",
42
- "@applicaster/zapp-react-native-ui-components": "12.0.0-rc.52",
43
- "@applicaster/zapp-react-native-utils": "12.0.0-rc.52",
41
+ "@applicaster/zapp-react-native-tvos-app": "12.0.0-rc.54",
42
+ "@applicaster/zapp-react-native-ui-components": "12.0.0-rc.54",
43
+ "@applicaster/zapp-react-native-utils": "12.0.0-rc.54",
44
44
  "keymirror": "^0.1.1",
45
45
  "query-string": "7.1.3",
46
46
  "react-native-web-linear-gradient": "1.1.2",
@@ -785,7 +785,6 @@ export default class VideoPlayer extends React.Component<
785
785
 
786
786
  render() {
787
787
  const {
788
- castAction,
789
788
  docked,
790
789
  entry,
791
790
  fullscreen,
@@ -795,8 +794,12 @@ export default class VideoPlayer extends React.Component<
795
794
  isTabletPortrait,
796
795
  muted,
797
796
  style,
797
+ castAction,
798
+ controller,
798
799
  } = this.props;
799
800
 
801
+ const supportNativeCast = controller.supportNativeCast();
802
+
800
803
  const { audioTrackId, keyEvent, paused, seek, textTrackId, rate } =
801
804
  this.state;
802
805
 
@@ -861,7 +864,8 @@ export default class VideoPlayer extends React.Component<
861
864
  ? supportsNativeControls && !isInlineTV && !this.getPlayNextData()
862
865
  : supportsNativeControls && !this.getPlayNextData();
863
866
 
864
- const shouldUseNativeControls = controls && !docked;
867
+ const shouldUseNativeControls =
868
+ controls && !docked && !castAction?.state?.connected;
865
869
 
866
870
  platformSpecificProps = {
867
871
  ...platformSpecificProps,
@@ -1066,7 +1070,7 @@ export default class VideoPlayer extends React.Component<
1066
1070
  const renderMobilePlayer = () => {
1067
1071
  return isFullScreenAudioPlayer && isAudioItem ? (
1068
1072
  <View style={containerStyle}>
1069
- {!castAction?.state?.connected && (
1073
+ {(!castAction?.state?.connected || supportNativeCast) && (
1070
1074
  <this.props.PlayerComponent
1071
1075
  ref={this._assignRoot}
1072
1076
  {...nativeEvents}
@@ -1117,7 +1121,7 @@ export default class VideoPlayer extends React.Component<
1117
1121
  />
1118
1122
  )}
1119
1123
 
1120
- {!castAction?.state?.connected && (
1124
+ {(!castAction?.state?.connected || supportNativeCast) && (
1121
1125
  <AnimationComponent
1122
1126
  animationType={ComponentAnimationType.player}
1123
1127
  additionalData={playerDimensions}