Skip to content

Commit

Permalink
override track name if set via options (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO authored Oct 29, 2021
1 parent 9d5d537 commit 95db324
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/room/participant/LocalParticipant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ export default class LocalParticipant extends Participant {
if (opts.source) {
track.source = opts.source;
}
if (opts.name) {
track.name = opts.name;
}

// handle track actions
track.on(TrackEvent.Muted, this.onTrackMuted);
Expand Down

0 comments on commit 95db324

Please sign in to comment.