File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -97,13 +97,17 @@ type PeerConnection struct {
97
97
//
98
98
// If you wish to customize the set of available codecs and/or the set of active interceptors,
99
99
// create an API with a custom MediaEngine and/or interceptor.Registry,
100
- // then call API.NewPeerConnection() instead of this function.
100
+ // then call [(* API) .NewPeerConnection] instead of this function.
101
101
func NewPeerConnection (configuration Configuration ) (* PeerConnection , error ) {
102
102
api := NewAPI ()
103
103
return api .NewPeerConnection (configuration )
104
104
}
105
105
106
- // NewPeerConnection creates a new PeerConnection with the provided configuration against the received API object
106
+ // NewPeerConnection creates a new PeerConnection with the provided configuration against the received API object.
107
+ // This method will attach a default set of codecs and interceptors to
108
+ // the resulting PeerConnection. If this behavior is not desired,
109
+ // set the set of codecs and interceptors explicitly by using
110
+ // [WithMediaEngine] and [WithInterceptorRegistry] when calling [NewAPI].
107
111
func (api * API ) NewPeerConnection (configuration Configuration ) (* PeerConnection , error ) {
108
112
// https://w3c.github.io/webrtc-pc/#constructor (Step #2)
109
113
// Some variables defined explicitly despite their implicit zero values to
You can’t perform that action at this time.
0 commit comments