mirror of
https://github.com/pion/webrtc.git
synced 2025-12-24 11:51:03 +08:00
Improve documentation of NewPeerConnection
It is important to mention that, unlike API.NewPeerConnection, this registers default interceptors.
This commit is contained in:
committed by
Sean DuBois
parent
4ff9196a91
commit
de913a99a8
@@ -10,8 +10,9 @@ import (
|
||||
"github.com/pion/rtp"
|
||||
)
|
||||
|
||||
// RegisterDefaultInterceptors will register some useful interceptors. If you want to customize which interceptors are loaded,
|
||||
// you should copy the code from this method and remove unwanted interceptors.
|
||||
// RegisterDefaultInterceptors will register some useful interceptors.
|
||||
// If you want to customize which interceptors are loaded, you should copy the
|
||||
// code from this method and remove unwanted interceptors.
|
||||
func RegisterDefaultInterceptors(mediaEngine *MediaEngine, interceptorRegistry *interceptor.Registry) error {
|
||||
if err := ConfigureNack(mediaEngine, interceptorRegistry); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user