@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 +4 -1
- package/dist/audio.mjs +4 -1
- package/package.json +1 -1
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) =>
|
|
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) =>
|
|
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