mirror of
https://github.com/pion/webrtc.git
synced 2025-11-03 01:33:46 +08:00
Improve MediaEngine docs
By default they aren't copied
This commit is contained in:
2
api.go
2
api.go
@@ -43,6 +43,8 @@ func NewAPI(options ...func(*API)) *API {
|
||||
|
||||
// WithMediaEngine allows providing a MediaEngine to the API.
|
||||
// Settings can be changed after passing the engine to an API.
|
||||
// When a PeerConnection is created the MediaEngine is copied
|
||||
// and no more changes can be made.
|
||||
func WithMediaEngine(m *MediaEngine) func(a *API) {
|
||||
return func(a *API) {
|
||||
a.mediaEngine = m
|
||||
|
||||
Reference in New Issue
Block a user