@applicaster/quick-brick-player 12.0.0-alpha.7855034103 → 12.0.0-alpha.8024419438
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 +6 -6
- package/src/Player/index.tsx +8 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-player",
|
|
3
|
-
"version": "12.0.0-alpha.
|
|
3
|
+
"version": "12.0.0-alpha.8024419438",
|
|
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.
|
|
40
|
-
"@applicaster/quick-brick-tv-transport-controls": "12.0.0-rc.
|
|
41
|
-
"@applicaster/zapp-react-native-tvos-app": "12.0.0-alpha.
|
|
42
|
-
"@applicaster/zapp-react-native-ui-components": "12.0.0-alpha.
|
|
43
|
-
"@applicaster/zapp-react-native-utils": "12.0.0-alpha.
|
|
39
|
+
"@applicaster/quick-brick-mobile-transport-controls": "12.0.0-rc.79",
|
|
40
|
+
"@applicaster/quick-brick-tv-transport-controls": "12.0.0-rc.70",
|
|
41
|
+
"@applicaster/zapp-react-native-tvos-app": "12.0.0-alpha.8024419438",
|
|
42
|
+
"@applicaster/zapp-react-native-ui-components": "12.0.0-alpha.8024419438",
|
|
43
|
+
"@applicaster/zapp-react-native-utils": "12.0.0-alpha.8024419438",
|
|
44
44
|
"keymirror": "^0.1.1",
|
|
45
45
|
"query-string": "7.1.3",
|
|
46
46
|
"react-native-web-linear-gradient": "1.1.2",
|
package/src/Player/index.tsx
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import React from "react";
|
|
5
5
|
import * as R from "ramda";
|
|
6
6
|
|
|
7
|
-
import { findNodeHandle,
|
|
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 },
|
|
@@ -129,11 +121,6 @@ export default class VideoPlayer extends React.Component<
|
|
|
129
121
|
}
|
|
130
122
|
}
|
|
131
123
|
|
|
132
|
-
// For close button
|
|
133
|
-
public closeNativePlayer = () => {
|
|
134
|
-
this.stopBackgroundPlayback();
|
|
135
|
-
};
|
|
136
|
-
|
|
137
124
|
componentDidMount() {
|
|
138
125
|
this.playbackStarted = false;
|
|
139
126
|
this.onPlayerPresented();
|
|
@@ -169,6 +156,11 @@ export default class VideoPlayer extends React.Component<
|
|
|
169
156
|
}
|
|
170
157
|
}
|
|
171
158
|
|
|
159
|
+
// For close button
|
|
160
|
+
public closeNativePlayer = () => {
|
|
161
|
+
this.stopBackgroundPlayback();
|
|
162
|
+
};
|
|
163
|
+
|
|
172
164
|
getPlayNextData = () => this.props.playNextData as PlayNextData;
|
|
173
165
|
|
|
174
166
|
/**
|
|
@@ -347,7 +339,7 @@ export default class VideoPlayer extends React.Component<
|
|
|
347
339
|
* Sets either subtitle language, or audio language if we have a selected a new locale.
|
|
348
340
|
* If no locale is set it defaults to system language for audio, and leaves subtitles unaltered.
|
|
349
341
|
*/
|
|
350
|
-
|
|
342
|
+
selectTrack = (selected = null) => {
|
|
351
343
|
const { trackType, id, language } = selected || {};
|
|
352
344
|
|
|
353
345
|
const isOff = language === "Off";
|