@applicaster/quick-brick-player 12.0.0-rc.74 → 12.0.0-rc.76

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.74",
3
+ "version": "12.0.0-rc.76",
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.68",
40
40
  "@applicaster/quick-brick-tv-transport-controls": "12.0.0-rc.70",
41
- "@applicaster/zapp-react-native-tvos-app": "12.0.0-rc.74",
42
- "@applicaster/zapp-react-native-ui-components": "12.0.0-rc.74",
43
- "@applicaster/zapp-react-native-utils": "12.0.0-rc.74",
41
+ "@applicaster/zapp-react-native-tvos-app": "12.0.0-rc.76",
42
+ "@applicaster/zapp-react-native-ui-components": "12.0.0-rc.76",
43
+ "@applicaster/zapp-react-native-utils": "12.0.0-rc.76",
44
44
  "keymirror": "^0.1.1",
45
45
  "query-string": "7.1.3",
46
46
  "react-native-web-linear-gradient": "1.1.2",
@@ -4,7 +4,7 @@
4
4
  import React from "react";
5
5
  import * as R from "ramda";
6
6
 
7
- import { findNodeHandle, NativeModules, StyleSheet, View } from "react-native";
7
+ import { findNodeHandle, StyleSheet, View } from "react-native";
8
8
  import TransportControlsMobile from "@applicaster/quick-brick-mobile-transport-controls";
9
9
  import TransportControlsTV from "@applicaster/quick-brick-tv-transport-controls";
10
10
 
@@ -42,15 +42,7 @@ import {
42
42
  AnimationComponent,
43
43
  ComponentAnimationType,
44
44
  } from "@applicaster/zapp-react-native-ui-components/Components/VideoModal/ModalAnimation";
45
-
46
- const RNPlayerManager = {
47
- QuickBrickPlayerPlugin: isApplePlatform()
48
- ? NativeModules.PlayerModule
49
- : NativeModules.QuickBrickDefaultPlayerModule,
50
- KalturaPlayerPlugin: isApplePlatform()
51
- ? NativeModules.KalturaPlayerModule
52
- : NativeModules.QBKalturaPlayerModule,
53
- };
45
+ import { RNPlayerManager } from "@applicaster/zapp-react-native-utils/appUtils/playerManager/nativePlayerManager";
54
46
 
55
47
  const styles = StyleSheet.create({
56
48
  container: { flex: 1 },
@@ -120,8 +112,6 @@ export default class VideoPlayer extends React.Component<
120
112
  }
121
113
 
122
114
  componentWillUnmount() {
123
- this.stopBackgroundPlayback();
124
-
125
115
  this.playbackStarted = false;
126
116
  this.handleAnalyticEvent(GENERAL_EVENT.session_end);
127
117
  this.onPlayerClosed();
@@ -166,6 +156,11 @@ export default class VideoPlayer extends React.Component<
166
156
  }
167
157
  }
168
158
 
159
+ // For close button
160
+ public closeNativePlayer = () => {
161
+ this.stopBackgroundPlayback();
162
+ };
163
+
169
164
  getPlayNextData = () => this.props.playNextData as PlayNextData;
170
165
 
171
166
  /**