mirror of
https://github.com/harshabose/client.git
synced 2025-09-26 19:31:20 +08:00
14 lines
285 B
Go
14 lines
285 B
Go
//go:build cgo_enabled
|
|
|
|
package client
|
|
|
|
import "errors"
|
|
|
|
func (pc *PeerConnection) GetBWEstimator() (*BWEController, error) {
|
|
if pc.bwController == nil || pc.bwController.estimator == nil {
|
|
return nil, errors.New("bitrate control is not enabled")
|
|
}
|
|
|
|
return pc.bwController, nil
|
|
}
|