@applicaster/zapp-react-native-ui-components 15.1.5-rc.1 → 15.1.5
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.
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
platformSelect,
|
|
10
10
|
isAndroidTVPlatform,
|
|
11
11
|
isTvOSPlatform,
|
|
12
|
+
isApplePlatform,
|
|
12
13
|
} from "@applicaster/zapp-react-native-utils/reactUtils";
|
|
13
14
|
import {
|
|
14
15
|
isAudioItem,
|
|
@@ -59,6 +60,7 @@ import {
|
|
|
59
60
|
PlayerNativeCommandTypes,
|
|
60
61
|
PlayerNativeSendCommand,
|
|
61
62
|
} from "@applicaster/zapp-react-native-utils/appUtils/playerManager/playerNativeCommand";
|
|
63
|
+
import { PLAYER_EVENTS } from "@applicaster/zapp-react-native-utils/appUtils/playerManager/const";
|
|
62
64
|
|
|
63
65
|
type Props = {
|
|
64
66
|
Player: React.ComponentType<any>;
|
|
@@ -281,12 +283,16 @@ const PlayerContainerComponent = (props: Props) => {
|
|
|
281
283
|
}
|
|
282
284
|
|
|
283
285
|
log_debug(
|
|
284
|
-
`onPlayNextPerformNextVideoPlay: delay completed, replaceTop to item: ${playNextOverlayState.entry.title}, id: ${playNextOverlayState.entry.id}`
|
|
286
|
+
`onPlayNextPerformNextVideoPlay: delay completed, replaceTop to item: ${playNextOverlayState.entry.title}, id: ${playNextOverlayState.entry.id}, outgoing item id: ${item?.id}`
|
|
285
287
|
);
|
|
286
288
|
|
|
289
|
+
playNextOverlayState.hidePlayNext();
|
|
290
|
+
|
|
291
|
+
playerEvent(PLAYER_EVENTS.PlayNextTriggered, { id: item?.id });
|
|
292
|
+
|
|
287
293
|
setIsLoadingNextVideo(true);
|
|
288
294
|
playEntry(playNextOverlayState.entry);
|
|
289
|
-
}, [playNextOverlayState]);
|
|
295
|
+
}, [playNextOverlayState, item?.id]);
|
|
290
296
|
|
|
291
297
|
const playNextData: Nullable<PlayNextData> = React.useMemo(() => {
|
|
292
298
|
if (!playNextOverlayState) {
|
|
@@ -494,7 +500,7 @@ const PlayerContainerComponent = (props: Props) => {
|
|
|
494
500
|
const isAudioContent = isAudioItem(item);
|
|
495
501
|
|
|
496
502
|
useEffect(() => {
|
|
497
|
-
if (!isAudioContent) {
|
|
503
|
+
if (!isAudioContent && isApplePlatform()) {
|
|
498
504
|
sendQuickBrickEvent(
|
|
499
505
|
QUICK_BRICK_EVENTS.IDLE_TIMER_DISABLED as QuickBrickEvent,
|
|
500
506
|
{
|
|
@@ -20,6 +20,7 @@ jest.mock("@applicaster/zapp-react-native-utils/reactUtils", () => ({
|
|
|
20
20
|
isTV: jest.fn(() => false),
|
|
21
21
|
isAndroidTVPlatform: jest.fn(() => false),
|
|
22
22
|
isTvOSPlatform: jest.fn(() => false),
|
|
23
|
+
isApplePlatform: jest.fn(() => true),
|
|
23
24
|
platformSelect: jest.fn(({ native }) => native),
|
|
24
25
|
}));
|
|
25
26
|
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "@applicaster/zapp-react-native-utils/appUtils/playerManager";
|
|
6
6
|
import { setUserCellPlayerMutedPreference } from "@applicaster/zapp-react-native-utils/appUtils/playerManager/userCellPlayerMutedPreference";
|
|
7
7
|
import { playerFactory } from "@applicaster/zapp-react-native-utils/appUtils/playerManager/playerFactory";
|
|
8
|
-
import { PlayerRole } from "@applicaster/zapp-react-native-utils/appUtils/playerManager/
|
|
8
|
+
import { PlayerRole } from "@applicaster/zapp-react-native-utils/appUtils/playerManager/const";
|
|
9
9
|
import { loggerLiveImageManager } from "./loggerHelper";
|
|
10
10
|
import { isTV } from "@applicaster/zapp-react-native-utils/reactUtils";
|
|
11
11
|
import {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-ui-components",
|
|
3
|
-
"version": "15.1.5
|
|
3
|
+
"version": "15.1.5",
|
|
4
4
|
"description": "Applicaster Zapp React Native ui components for the Quick Brick App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@applicaster/applicaster-types": "15.1.5
|
|
32
|
-
"@applicaster/zapp-react-native-bridge": "15.1.5
|
|
33
|
-
"@applicaster/zapp-react-native-redux": "15.1.5
|
|
34
|
-
"@applicaster/zapp-react-native-utils": "15.1.5
|
|
31
|
+
"@applicaster/applicaster-types": "15.1.5",
|
|
32
|
+
"@applicaster/zapp-react-native-bridge": "15.1.5",
|
|
33
|
+
"@applicaster/zapp-react-native-redux": "15.1.5",
|
|
34
|
+
"@applicaster/zapp-react-native-utils": "15.1.5",
|
|
35
35
|
"fast-json-stable-stringify": "^2.1.0",
|
|
36
36
|
"promise": "^8.3.0",
|
|
37
37
|
"url": "^0.11.0",
|