@applicaster/quick-brick-player 15.0.0-alpha.1228610025 → 15.0.0-alpha.1232030550

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": "15.0.0-alpha.1228610025",
3
+ "version": "15.0.0-alpha.1232030550",
4
4
  "description": "Quick Brick Player",
5
5
  "main": "./src/index.ts",
6
6
  "types": "index.d.ts",
@@ -35,11 +35,11 @@
35
35
  },
36
36
  "homepage": "https://github.com/applicaster/quickbrick#readme",
37
37
  "dependencies": {
38
- "@applicaster/quick-brick-mobile-transport-controls": "15.0.0-alpha.1228610025",
39
- "@applicaster/quick-brick-tv-transport-controls": "15.0.0-alpha.1228610025",
40
- "@applicaster/zapp-react-native-tvos-app": "15.0.0-alpha.1228610025",
41
- "@applicaster/zapp-react-native-ui-components": "15.0.0-alpha.1228610025",
42
- "@applicaster/zapp-react-native-utils": "15.0.0-alpha.1228610025",
38
+ "@applicaster/quick-brick-mobile-transport-controls": "15.0.0-rc.91",
39
+ "@applicaster/quick-brick-tv-transport-controls": "15.0.0-rc.91",
40
+ "@applicaster/zapp-react-native-tvos-app": "15.0.0-alpha.1232030550",
41
+ "@applicaster/zapp-react-native-ui-components": "15.0.0-alpha.1232030550",
42
+ "@applicaster/zapp-react-native-utils": "15.0.0-alpha.1232030550",
43
43
  "query-string": "7.1.3",
44
44
  "shaka-player": "4.3.5",
45
45
  "typeface-montserrat": "^0.0.54",
@@ -7,12 +7,8 @@ import * as R from "ramda";
7
7
 
8
8
  import { findNodeHandle, StyleSheet, View, ViewStyle } from "react-native";
9
9
 
10
- import TransportControlsMobile, {
11
- ErrorOverlay,
12
- } from "@applicaster/quick-brick-mobile-transport-controls";
13
- import TransportControlsTV, {
14
- ErrorOverlay as TVErrorOverlay,
15
- } from "@applicaster/quick-brick-tv-transport-controls";
10
+ import TransportControlsMobile from "@applicaster/quick-brick-mobile-transport-controls";
11
+ import TransportControlsTV from "@applicaster/quick-brick-tv-transport-controls";
16
12
 
17
13
  import { AudioPlayer } from "@applicaster/zapp-react-native-ui-components/Components/AudioPlayer";
18
14
  import {
@@ -106,7 +102,6 @@ export default class VideoPlayer extends React.Component<
106
102
  isLive?: boolean;
107
103
  seekableDuration?: number;
108
104
  displayOverlay?: boolean;
109
- error: PlayerError | null;
110
105
  }
111
106
  > {
112
107
  public static propTypes = {};
@@ -126,7 +121,6 @@ export default class VideoPlayer extends React.Component<
126
121
  isLive?: boolean;
127
122
  seekableDuration?: number;
128
123
  displayOverlay?: boolean;
129
- error: PlayerError | null;
130
124
  } = {
131
125
  // Base required properties from NativePlayerState
132
126
  buffering: false,
@@ -137,7 +131,7 @@ export default class VideoPlayer extends React.Component<
137
131
  isTabletPortrait: false,
138
132
  muted: false,
139
133
  showPoster: false,
140
- error: null,
134
+
141
135
  // Extended properties
142
136
  audioTrackId: null,
143
137
  textTrackId: null,
@@ -468,8 +462,6 @@ export default class VideoPlayer extends React.Component<
468
462
 
469
463
  const newError = new PlayerError(error, description);
470
464
 
471
- this.setState({ error: newError });
472
-
473
465
  return this.props?.listener?.onError(newError);
474
466
  };
475
467
 
@@ -820,18 +812,6 @@ export default class VideoPlayer extends React.Component<
820
812
  pluginConfiguration
821
813
  );
822
814
 
823
- if (this.state.error) {
824
- return (
825
- <View style={styles.container}>
826
- <ErrorOverlay
827
- error={this.state.error}
828
- onClose={() => playerManager.close()}
829
- configuration={pluginConfiguration}
830
- />
831
- </View>
832
- );
833
- }
834
-
835
815
  return (
836
816
  <View style={styles.container}>
837
817
  <View style={[playerContainerStyles, playerDimensions]}>
@@ -1366,18 +1346,6 @@ export default class VideoPlayer extends React.Component<
1366
1346
  style: { ...styles.audio, ...this.takeParentStyle },
1367
1347
  };
1368
1348
 
1369
- if (this.state.error) {
1370
- return (
1371
- <View style={this.takeParentStyle} testID={"player-view"}>
1372
- <TVErrorOverlay
1373
- error={this.state.error}
1374
- onClose={() => playerManager.close()}
1375
- configuration={this.getPluginConfiguration()}
1376
- />
1377
- </View>
1378
- );
1379
- }
1380
-
1381
1349
  return (
1382
1350
  <View style={this.takeParentStyle} testID={"player-view"}>
1383
1351
  <TVPlayerView