@applicaster/zapp-react-native-ui-components 16.0.0-rc.48 → 16.0.0-rc.49

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,
@@ -60,6 +61,7 @@ import {
60
61
  PlayerNativeSendCommand,
61
62
  } from "@applicaster/zapp-react-native-utils/appUtils/playerManager/playerNativeCommand";
62
63
  import { useAppData } from "@applicaster/zapp-react-native-redux";
64
+ import { PLAYER_EVENTS } from "@applicaster/zapp-react-native-utils/appUtils/playerManager/conts";
63
65
 
64
66
  type Props = {
65
67
  Player: React.ComponentType<any>;
@@ -282,12 +284,16 @@ const PlayerContainerComponent = (props: Props) => {
282
284
  }
283
285
 
284
286
  log_debug(
285
- `onPlayNextPerformNextVideoPlay: delay completed, replaceTop to item: ${playNextOverlayState.entry.title}, id: ${playNextOverlayState.entry.id}`
287
+ `onPlayNextPerformNextVideoPlay: delay completed, replaceTop to item: ${playNextOverlayState.entry.title}, id: ${playNextOverlayState.entry.id}, outgoing item id: ${item?.id}`
286
288
  );
287
289
 
290
+ playNextOverlayState.hidePlayNext();
291
+
292
+ playerEvent(PLAYER_EVENTS.PlayNextTriggered, { id: item?.id });
293
+
288
294
  setIsLoadingNextVideo(true);
289
295
  playEntry(playNextOverlayState.entry);
290
- }, [playNextOverlayState]);
296
+ }, [playNextOverlayState, item?.id]);
291
297
 
292
298
  const playNextData: Nullable<PlayNextData> = React.useMemo(() => {
293
299
  if (!playNextOverlayState) {
@@ -495,7 +501,7 @@ const PlayerContainerComponent = (props: Props) => {
495
501
  const isAudioContent = isAudioItem(item);
496
502
 
497
503
  useEffect(() => {
498
- if (!isAudioContent) {
504
+ if (!isAudioContent && isApplePlatform()) {
499
505
  sendQuickBrickEvent(
500
506
  QUICK_BRICK_EVENTS.IDLE_TIMER_DISABLED as QuickBrickEvent,
501
507
  {
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "16.0.0-rc.48",
3
+ "version": "16.0.0-rc.49",
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": "16.0.0-rc.48",
32
- "@applicaster/zapp-react-native-bridge": "16.0.0-rc.48",
33
- "@applicaster/zapp-react-native-redux": "16.0.0-rc.48",
34
- "@applicaster/zapp-react-native-utils": "16.0.0-rc.48",
31
+ "@applicaster/applicaster-types": "16.0.0-rc.49",
32
+ "@applicaster/zapp-react-native-bridge": "16.0.0-rc.49",
33
+ "@applicaster/zapp-react-native-redux": "16.0.0-rc.49",
34
+ "@applicaster/zapp-react-native-utils": "16.0.0-rc.49",
35
35
  "fast-json-stable-stringify": "^2.1.0",
36
36
  "promise": "^8.3.0",
37
37
  "url": "^0.11.0",