Skip to content

Commit

Permalink
Issue #Q-768 fix : Audio is audible if user move to next question or …
Browse files Browse the repository at this point in the history
…next page
  • Loading branch information
rajnishdargan committed May 2, 2024
1 parent 6ffd301 commit d577f5c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,5 +348,8 @@ export class ViewerService {
pauseVideo() {
const videoElements = Array.from(document.getElementsByTagName('video') as HTMLCollectionOf<Element>);
videoElements.forEach((element: HTMLVideoElement) => element.pause());

const audioElements = Array.from(document.getElementsByTagName('audio') as HTMLCollectionOf<Element>);
audioElements.forEach((element: HTMLVideoElement) => element.pause());
}
}

0 comments on commit d577f5c

Please sign in to comment.