Skip to content

Commit 45d5e51

Browse files
committed
Parse streamDuration to fixed(5)
1 parent 34c3737 commit 45d5e51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/streaming/controllers/StreamController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ function StreamController() {
385385

386386
for (let i = 0; i < ln; i++) {
387387
stream = streams[i];
388-
streamDuration = parseFloat(streamDuration + stream.getDuration());
388+
streamDuration = parseFloat((streamDuration + stream.getDuration()).toFixed(5));
389389

390390
if (time < streamDuration) {
391391
return stream;

0 commit comments

Comments
 (0)