@scalemule/nextjs 0.1.41 → 0.1.42

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/dist/audio.js CHANGED
@@ -267,7 +267,10 @@ function PlayerSession({
267
267
  const d = positive(e.currentTarget.duration);
268
268
  if (d) setDuration(d);
269
269
  },
270
- onTimeUpdate: (e) => setPosition(positive(e.currentTarget.currentTime)),
270
+ onTimeUpdate: (e) => {
271
+ if (e.currentTarget.readyState === 0 && resume.current != null) return;
272
+ setPosition(positive(e.currentTarget.currentTime));
273
+ },
271
274
  onPlay: () => {
272
275
  intent.current = true;
273
276
  setPlaying(true);
package/dist/audio.mjs CHANGED
@@ -248,7 +248,10 @@ function PlayerSession({
248
248
  const d = positive(e.currentTarget.duration);
249
249
  if (d) setDuration(d);
250
250
  },
251
- onTimeUpdate: (e) => setPosition(positive(e.currentTarget.currentTime)),
251
+ onTimeUpdate: (e) => {
252
+ if (e.currentTarget.readyState === 0 && resume.current != null) return;
253
+ setPosition(positive(e.currentTarget.currentTime));
254
+ },
252
255
  onPlay: () => {
253
256
  intent.current = true;
254
257
  setPlaying(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalemule/nextjs",
3
- "version": "0.1.41",
3
+ "version": "0.1.42",
4
4
  "description": "ScaleMule SDK for Next.js applications - authentication, storage, and user management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",