Skip to content

Commit

Permalink
fix: audio improvements (#21472)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin authored Apr 10, 2024
1 parent e3302c6 commit 6a96369
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ export const sessionRecordingPlayerLogic = kea<sessionRecordingPlayerLogicType>(
},
seekToTimestamp: ({ timestamp, forcePlay }, breakpoint) => {
actions.stopAnimation()
cache.pausedMediaElements = []
actions.setCurrentTimestamp(timestamp)

// Check if we're seeking to a new segment
Expand Down Expand Up @@ -904,7 +905,7 @@ export const sessionRecordingPlayerLogic = kea<sessionRecordingPlayerLogicType>(
const playingElements = mediaElements.filter(isMediaElementPlaying)

playingElements.forEach((el) => el.pause())
cache.pausedMediaElements = playingElements
cache.pausedMediaElements = values.endReached ? [] : playingElements
},
restartIframePlayback: () => {
cache.pausedMediaElements.forEach((el: HTMLMediaElement) => el.play())
Expand Down

0 comments on commit 6a96369

Please sign in to comment.