Skip to content

Commit

Permalink
Fix muted false -> true not being set
Browse files Browse the repository at this point in the history
  • Loading branch information
lele0108 authored and YunFeng0817 committed Jan 6, 2023
1 parent a220835 commit 7e8dcdb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/rrweb/src/replay/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1216,13 +1216,13 @@ export class Replayer {
}
const mediaEl = target as HTMLMediaElement | RRMediaElement;
try {
if (d.currentTime) {
if (d.currentTime !== undefined) {
mediaEl.currentTime = d.currentTime;
}
if (d.volume) {
if (d.volume !== undefined) {
mediaEl.volume = d.volume;
}
if (d.muted) {
if (d.muted !== undefined) {
mediaEl.muted = d.muted;
}
if (d.type === MediaInteractions.Pause) {
Expand Down

0 comments on commit 7e8dcdb

Please sign in to comment.