Full overhawl of video & audio playback to make it more complete (#1432)
* Add support for capturing media attributes in rrweb-snapshot * Add loop to mediaInteractionParam * Add support for loop in RRMediaElement * Add support for recording loop attribute on media elements * Update video playback and fix bugs * Update cross-origin iframe media attributes and player state
This commit is contained in:
@@ -342,6 +342,17 @@ function buildNode(
|
||||
break;
|
||||
default:
|
||||
}
|
||||
} else if (
|
||||
name === 'rr_mediaPlaybackRate' &&
|
||||
typeof value === 'number'
|
||||
) {
|
||||
(node as HTMLMediaElement).playbackRate = value;
|
||||
} else if (name === 'rr_mediaMuted' && typeof value === 'boolean') {
|
||||
(node as HTMLMediaElement).muted = value;
|
||||
} else if (name === 'rr_mediaLoop' && typeof value === 'boolean') {
|
||||
(node as HTMLMediaElement).loop = value;
|
||||
} else if (name === 'rr_mediaVolume' && typeof value === 'number') {
|
||||
(node as HTMLMediaElement).volume = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user