Skip to content

Commit

Permalink
fix: awaiting setting of volume
Browse files Browse the repository at this point in the history
  • Loading branch information
ygit committed Dec 11, 2024
1 parent 6dfdc9f commit 38517c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class AudioSinkManager {
}
};
track.setAudioElement(audioEl);
track.setVolume(this.volume);
await track.setVolume(this.volume);
HMSLogger.d(this.TAG, 'Audio track added', `${track}`);
this.init(); // call to create sink element if not already created
if (this.audioSink) {
Expand Down

0 comments on commit 38517c8

Please sign in to comment.