@applicaster/quick-brick-player 12.0.0-alpha.7623722215 → 12.0.0-alpha.8121552272

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.7623722215",
3
+ "version": "12.0.0-alpha.8121552272",
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-rc.49",
39
+ "@applicaster/quick-brick-mobile-transport-controls": "12.0.0-alpha.8121552272",
40
40
  "@applicaster/quick-brick-tv-transport-controls": "11.0.0-rc.133",
41
- "@applicaster/zapp-react-native-tvos-app": "12.0.0-alpha.7623722215",
42
- "@applicaster/zapp-react-native-ui-components": "12.0.0-alpha.7623722215",
43
- "@applicaster/zapp-react-native-utils": "12.0.0-alpha.7623722215",
41
+ "@applicaster/zapp-react-native-tvos-app": "12.0.0-alpha.8121552272",
42
+ "@applicaster/zapp-react-native-ui-components": "12.0.0-alpha.8121552272",
43
+ "@applicaster/zapp-react-native-utils": "12.0.0-alpha.8121552272",
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
798
  } = this.props;
799
799
 
800
+ // TODO: Temp hack, need to resolve in a future
801
+ const supportNativeCast = this.props.playerPluginIdentifier === "quick-brick-player-brightcove";
802
+
800
803
  const { audioTrackId, keyEvent, paused, seek, textTrackId, rate } =
801
804
  this.state;
802
805
 
@@ -861,7 +864,7 @@ 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 = controls && !docked && !castAction?.state?.connected;
865
868
 
866
869
  platformSpecificProps = {
867
870
  ...platformSpecificProps,
@@ -1066,7 +1069,7 @@ export default class VideoPlayer extends React.Component<
1066
1069
  const renderMobilePlayer = () => {
1067
1070
  return isFullScreenAudioPlayer && isAudioItem ? (
1068
1071
  <View style={containerStyle}>
1069
- {!castAction?.state?.connected && (
1072
+ {(!castAction?.state?.connected || supportNativeCast) && (
1070
1073
  <this.props.PlayerComponent
1071
1074
  ref={this._assignRoot}
1072
1075
  {...nativeEvents}
@@ -1117,7 +1120,7 @@ export default class VideoPlayer extends React.Component<
1117
1120
  />
1118
1121
  )}
1119
1122
 
1120
- {!castAction?.state?.connected && (
1123
+ {(!castAction?.state?.connected || supportNativeCast) && (
1121
1124
  <AnimationComponent
1122
1125
  animationType={ComponentAnimationType.player}
1123
1126
  additionalData={playerDimensions}