Improve MediaEngine docs

By default they aren't copied
This commit is contained in:
Sean DuBois
2023-04-25 13:15:31 -04:00
parent dfaf820604
commit bea005909c
2 changed files with 3 additions and 2 deletions

2
api.go
View File

@@ -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