@applicaster/quick-brick-player 16.0.0-alpha.5652127751 → 16.0.0-alpha.6001988150
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 +5 -5
- package/src/Player/index.tsx +1 -25
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-player",
|
|
3
|
-
"version": "16.0.0-alpha.
|
|
3
|
+
"version": "16.0.0-alpha.6001988150",
|
|
4
4
|
"description": "Quick Brick Player",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@applicaster/quick-brick-mobile-transport-controls": "16.0.0-rc.2",
|
|
39
|
-
"@applicaster/quick-brick-tv-transport-controls": "16.0.0-rc.
|
|
40
|
-
"@applicaster/zapp-react-native-tvos-app": "16.0.0-alpha.
|
|
41
|
-
"@applicaster/zapp-react-native-ui-components": "16.0.0-alpha.
|
|
42
|
-
"@applicaster/zapp-react-native-utils": "16.0.0-alpha.
|
|
39
|
+
"@applicaster/quick-brick-tv-transport-controls": "16.0.0-rc.9",
|
|
40
|
+
"@applicaster/zapp-react-native-tvos-app": "16.0.0-alpha.6001988150",
|
|
41
|
+
"@applicaster/zapp-react-native-ui-components": "16.0.0-alpha.6001988150",
|
|
42
|
+
"@applicaster/zapp-react-native-utils": "16.0.0-alpha.6001988150",
|
|
43
43
|
"query-string": "7.1.3",
|
|
44
44
|
"shaka-player": "4.3.5",
|
|
45
45
|
"typeface-montserrat": "^0.0.54",
|
package/src/Player/index.tsx
CHANGED
|
@@ -31,7 +31,6 @@ import {
|
|
|
31
31
|
import { PlayNextOverlay } from "./PlayNextOverlay";
|
|
32
32
|
import { PlayerImageBackground } from "@applicaster/zapp-react-native-ui-components/Components/PlayerImageBackground";
|
|
33
33
|
|
|
34
|
-
import { GENERAL_EVENT } from "@applicaster/zapp-react-native-utils/analyticsUtils/events";
|
|
35
34
|
import { parseLanguageTracks } from "@applicaster/zapp-react-native-utils/playerUtils/configurationUtils";
|
|
36
35
|
import { DEFAULT_COLORS, SEEK_TIME } from "../utils/const";
|
|
37
36
|
import { logger, getScreenAspectRatio } from "../utils";
|
|
@@ -41,7 +40,6 @@ import { getAllAccessibilityProps } from "@applicaster/zapp-react-native-utils/c
|
|
|
41
40
|
import { PlayNextData } from "@applicaster/zapp-react-native-ui-components/Components/PlayerContainer/PlayerContainer";
|
|
42
41
|
import { getTargetScreenDataFromEntry } from "@applicaster/zapp-react-native-utils/reactHooks/screen/useTargetScreenData";
|
|
43
42
|
import { PlayerAnalyticsManager } from "@applicaster/zapp-react-native-utils/analyticsUtils/PlayerAnalyticsManager";
|
|
44
|
-
import { PlayerAnalyticsTrackerI } from "@applicaster/zapp-react-native-utils/analyticsUtils/playerAnalyticsTracker";
|
|
45
43
|
|
|
46
44
|
import { RNPlayerManager } from "@applicaster/zapp-react-native-utils/appUtils/playerManager/nativePlayerManager";
|
|
47
45
|
import {
|
|
@@ -164,20 +162,10 @@ export default class VideoPlayer extends React.Component<
|
|
|
164
162
|
nativePlayerIsReady: false,
|
|
165
163
|
};
|
|
166
164
|
|
|
167
|
-
private _tracker: PlayerAnalyticsTrackerI;
|
|
168
|
-
get analyticsTracker() {
|
|
169
|
-
if (!this._tracker) {
|
|
170
|
-
this._tracker = PlayerAnalyticsManager.getInstance().getTracker(
|
|
171
|
-
this.props.playerId
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
return this._tracker;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
165
|
constructor(props) {
|
|
179
166
|
super(props);
|
|
180
167
|
this.onVideoLoadCalled = false; // android
|
|
168
|
+
PlayerAnalyticsManager.getInstance();
|
|
181
169
|
|
|
182
170
|
this.takeParentStyle = isWeb()
|
|
183
171
|
? { width: "100%", flex: "1 1 auto", objectFit: "contain" }
|
|
@@ -191,9 +179,6 @@ export default class VideoPlayer extends React.Component<
|
|
|
191
179
|
componentWillUnmount() {
|
|
192
180
|
this.playbackStarted = false;
|
|
193
181
|
|
|
194
|
-
this.analyticsTracker.handleAnalyticEvent(GENERAL_EVENT.session_end);
|
|
195
|
-
this.onPlayerClosed();
|
|
196
|
-
|
|
197
182
|
if (isAndroidPlatform()) {
|
|
198
183
|
this.disablePiP();
|
|
199
184
|
}
|
|
@@ -201,7 +186,6 @@ export default class VideoPlayer extends React.Component<
|
|
|
201
186
|
|
|
202
187
|
componentDidMount() {
|
|
203
188
|
this.playbackStarted = false;
|
|
204
|
-
this.onPlayerPresented();
|
|
205
189
|
}
|
|
206
190
|
|
|
207
191
|
shouldComponentUpdate(nextProps) {
|
|
@@ -445,14 +429,6 @@ export default class VideoPlayer extends React.Component<
|
|
|
445
429
|
});
|
|
446
430
|
};
|
|
447
431
|
|
|
448
|
-
onPlayerPresented = () => {
|
|
449
|
-
this.analyticsTracker?.handleAnalyticEvent(GENERAL_EVENT.player_presented);
|
|
450
|
-
};
|
|
451
|
-
|
|
452
|
-
onPlayerClosed = () => {
|
|
453
|
-
this.analyticsTracker?.handleAnalyticEvent(GENERAL_EVENT.player_closed);
|
|
454
|
-
};
|
|
455
|
-
|
|
456
432
|
onVideoEnd = () => {
|
|
457
433
|
this.setState({ displayOverlay: !this.state.displayOverlay }, () => {
|
|
458
434
|
if (this.state?.displayOverlay) {
|