Skip to content

Commit

Permalink
fix: retrigger when same sink attached
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed May 21, 2024
1 parent 8fc07e5 commit 85aceb1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export class VideoElementManager {
HMSLogger.d(this.TAG, `Adding video element for ${this.track}`, this.id);
this.videoElements.add(videoElement);
videoElement.addEventListener('pause', this.resumeVideoPlayback);
videoElement.addEventListener('play', this.resumeVideoPlayback);
if (this.videoElements.size >= 10) {
HMSLogger.w(
this.TAG,
Expand Down

0 comments on commit 85aceb1

Please sign in to comment.