@applicaster/zapp-react-native-utils 13.0.0-rc.64 → 13.0.0-rc.65

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.
@@ -736,6 +736,10 @@ export class Player {
736
736
  return null;
737
737
  };
738
738
 
739
+ public hasResumePosition() {
740
+ return false;
741
+ }
742
+
739
743
  public getConfig = () => this.config;
740
744
 
741
745
  // TODO: replace with enum of supported orientations
@@ -54,6 +54,10 @@ export class PlayerNative extends Player {
54
54
  });
55
55
  }
56
56
 
57
+ public hasResumePosition() {
58
+ return true;
59
+ }
60
+
57
61
  getContentPosition = () => {
58
62
  return this.playerState.contentPosition;
59
63
  };
@@ -222,10 +226,10 @@ export class PlayerNative extends Player {
222
226
 
223
227
  onVideoLoad = (event) => {
224
228
  if (this.startPosition) {
229
+ super.onVideoLoad({ ...event, ignoreContinueWatching: true });
230
+
225
231
  this.seekTo(this.startPosition);
226
232
  this.startPosition = null;
227
-
228
- super.onVideoLoad({ ...event, ignoreContinueWatching: true });
229
233
  } else {
230
234
  super.onVideoLoad(event);
231
235
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-utils",
3
- "version": "13.0.0-rc.64",
3
+ "version": "13.0.0-rc.65",
4
4
  "description": "Applicaster Zapp React Native utilities package",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "homepage": "https://github.com/applicaster/quickbrick#readme",
30
30
  "dependencies": {
31
- "@applicaster/applicaster-types": "13.0.0-rc.64",
31
+ "@applicaster/applicaster-types": "13.0.0-rc.65",
32
32
  "buffer": "^5.2.1",
33
33
  "camelize": "^1.0.0",
34
34
  "dayjs": "^1.11.10",