updated to ion-sfu v1.9.1, removed package bufferFactory

This commit is contained in:
David Zhao
2021-03-01 14:49:46 -08:00
parent e8d2701937
commit 03d0a8c047
14 changed files with 69 additions and 102 deletions
-11
View File
@@ -5,11 +5,9 @@ import (
"io"
"strings"
"github.com/google/wire"
"github.com/pion/webrtc/v3"
"go.uber.org/zap"
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/proto/livekit"
@@ -19,15 +17,6 @@ const (
trackIdSeparator = "|"
)
var RTCSet = wire.NewSet(
NewWebRTCConfig,
RTCConfigFromConfig,
)
func RTCConfigFromConfig(conf *config.Config) *config.RTCConfig {
return &conf.RTC
}
func UnpackTrackId(packed string) (peerId string, trackId string) {
parts := strings.Split(packed, trackIdSeparator)
if len(parts) > 1 {