Skip to content

Commit

Permalink
fix muted video track on start
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 committed Oct 31, 2023
1 parent 7ec89bf commit a988481
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/pipeline/source/sdk/appwriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,10 @@ func (w *AppWriter) TrackID() string {
}

func (w *AppWriter) Play() {
w.playing.Once(func() {
if w.pub.IsMuted() {
w.SetTrackMuted(true)
}
})
w.playing.Break()
if w.pub.IsMuted() {
w.SetTrackMuted(true)
}
}

func (w *AppWriter) SetTrackMuted(muted bool) {
Expand Down

0 comments on commit a988481

Please sign in to comment.