Files
client/peerconnection_cgo.go
2025-07-13 22:30:33 +05:30

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
}