Skip to content

Commit 7e8dcdb

Browse files
lele0108YunFeng0817
authored andcommitted
Fix muted false -> true not being set
1 parent a220835 commit 7e8dcdb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/rrweb/src/replay/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,13 +1216,13 @@ export class Replayer {
12161216
}
12171217
const mediaEl = target as HTMLMediaElement | RRMediaElement;
12181218
try {
1219-
if (d.currentTime) {
1219+
if (d.currentTime !== undefined) {
12201220
mediaEl.currentTime = d.currentTime;
12211221
}
1222-
if (d.volume) {
1222+
if (d.volume !== undefined) {
12231223
mediaEl.volume = d.volume;
12241224
}
1225-
if (d.muted) {
1225+
if (d.muted !== undefined) {
12261226
mediaEl.muted = d.muted;
12271227
}
12281228
if (d.type === MediaInteractions.Pause) {

0 commit comments

Comments
 (0)