@applicaster/zapp-react-native-ui-components 14.0.34-rc.2 → 14.0.35

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.
@@ -338,11 +338,15 @@ const PlayerContainerComponent = (props: Props) => {
338
338
  setIsLoadingNextVideo(false);
339
339
 
340
340
  const resumeTime = Number(item?.extensions?.resumeTime);
341
+ const activePlayer = playerManager.getActivePlayer();
341
342
 
342
- // Сhecking that the player itself knows where to start playing, and there is no need to call seekTo after returning from the Сhromecast
343
+ // Сhecking that the player itself knows where to start playing, and there is no need to call seekTo after returning from the Сhromecast.
344
+ // Live streams and a missing/zero resume position are skipped: seeking to 0 on
345
+ // a live stream pulls playback off the live edge into a buffer-starvation seek loop.
343
346
  if (
344
- !playerManager.getActivePlayer()?.hasResumePosition() &&
345
- !isNaN(resumeTime)
347
+ !activePlayer?.hasResumePosition() &&
348
+ resumeTime > 0 &&
349
+ !activePlayer?.isLive()
346
350
  ) {
347
351
  player?.seekTo(resumeTime);
348
352
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "14.0.34-rc.2",
3
+ "version": "14.0.35",
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": "14.0.34-rc.2",
32
- "@applicaster/zapp-react-native-bridge": "14.0.34-rc.2",
33
- "@applicaster/zapp-react-native-redux": "14.0.34-rc.2",
34
- "@applicaster/zapp-react-native-utils": "14.0.34-rc.2",
31
+ "@applicaster/applicaster-types": "14.0.35",
32
+ "@applicaster/zapp-react-native-bridge": "14.0.35",
33
+ "@applicaster/zapp-react-native-redux": "14.0.35",
34
+ "@applicaster/zapp-react-native-utils": "14.0.35",
35
35
  "fast-json-stable-stringify": "^2.1.0",
36
36
  "promise": "^8.3.0",
37
37
  "url": "^0.11.0",