More abstractions (#316)
This commit is contained in:
@@ -101,7 +101,7 @@ func NewMediaTrack(track *webrtc.TrackRemote, params MediaTrackParams) *MediaTra
|
||||
ReceiverConfig: params.ReceiverConfig,
|
||||
SubscriberConfig: params.SubscriberConfig,
|
||||
Telemetry: params.Telemetry,
|
||||
Logger: ¶ms.Logger,
|
||||
Logger: params.Logger,
|
||||
})
|
||||
|
||||
if params.TrackInfo.Muted {
|
||||
@@ -345,7 +345,7 @@ func (t *MediaTrack) GetAudioLevel() (level uint8, active bool) {
|
||||
defer t.audioLevelMu.RUnlock()
|
||||
|
||||
if t.audioLevel == nil {
|
||||
return silentAudioLevel, false
|
||||
return SilentAudioLevel, false
|
||||
}
|
||||
return t.audioLevel.GetLevel()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user