Remove method not needed from REDTransformer. (#4219)
Also assert that the implementation aligns with the interface.
This commit is contained in:
@@ -89,23 +89,23 @@ func InitializeServer(conf *config.Config, currentNode routing.LocalNode) (*Live
|
|||||||
}
|
}
|
||||||
rtcEgressLauncher := NewEgressLauncher(egressClient, ioInfoService, objectStore)
|
rtcEgressLauncher := NewEgressLauncher(egressClient, ioInfoService, objectStore)
|
||||||
topicFormatter := rpc.NewTopicFormatter()
|
topicFormatter := rpc.NewTopicFormatter()
|
||||||
v, err := rpc.NewTypedRoomClient(clientParams)
|
roomClient, err := rpc.NewTypedRoomClient(clientParams)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
v2, err := rpc.NewTypedParticipantClient(clientParams)
|
participantClient, err := rpc.NewTypedParticipantClient(clientParams)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
roomService, err := NewRoomService(limitConfig, apiConfig, router, roomAllocator, objectStore, rtcEgressLauncher, topicFormatter, v, v2)
|
roomService, err := NewRoomService(limitConfig, apiConfig, router, roomAllocator, objectStore, rtcEgressLauncher, topicFormatter, roomClient, participantClient)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
v3, err := rpc.NewTypedAgentDispatchInternalClient(clientParams)
|
agentDispatchInternalClient, err := rpc.NewTypedAgentDispatchInternalClient(clientParams)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
agentDispatchService := NewAgentDispatchService(v3, topicFormatter, roomAllocator, router)
|
agentDispatchService := NewAgentDispatchService(agentDispatchInternalClient, topicFormatter, roomAllocator, router)
|
||||||
egressService := NewEgressService(egressClient, rtcEgressLauncher, ioInfoService, roomService)
|
egressService := NewEgressService(egressClient, rtcEgressLauncher, ioInfoService, roomService)
|
||||||
ingressConfig := getIngressConfig(conf)
|
ingressConfig := getIngressConfig(conf)
|
||||||
ingressClient, err := rpc.NewIngressClient(clientParams)
|
ingressClient, err := rpc.NewIngressClient(clientParams)
|
||||||
@@ -120,11 +120,11 @@ func InitializeServer(conf *config.Config, currentNode routing.LocalNode) (*Live
|
|||||||
}
|
}
|
||||||
sipService := NewSIPService(sipConfig, nodeID, messageBus, sipClient, sipStore, roomService, telemetryService)
|
sipService := NewSIPService(sipConfig, nodeID, messageBus, sipClient, sipStore, roomService, telemetryService)
|
||||||
rtcService := NewRTCService(conf, roomAllocator, router, telemetryService)
|
rtcService := NewRTCService(conf, roomAllocator, router, telemetryService)
|
||||||
v4, err := rpc.NewTypedWHIPParticipantClient(clientParams)
|
whipParticipantClient, err := rpc.NewTypedWHIPParticipantClient(clientParams)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
serviceWHIPService, err := NewWHIPService(conf, router, roomAllocator, clientParams, topicFormatter, v4)
|
serviceWHIPService, err := NewWHIPService(conf, router, roomAllocator, clientParams, topicFormatter, whipParticipantClient)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -163,7 +163,6 @@ type REDTransformer interface {
|
|||||||
publisherSRData *livekit.RTCPSenderReportState,
|
publisherSRData *livekit.RTCPSenderReportState,
|
||||||
)
|
)
|
||||||
GetDownTracks() []TrackSender
|
GetDownTracks() []TrackSender
|
||||||
HasDownTracks() bool
|
|
||||||
ResyncDownTracks()
|
ResyncDownTracks()
|
||||||
OnStreamRestart()
|
OnStreamRestart()
|
||||||
CanClose() bool
|
CanClose() bool
|
||||||
@@ -904,7 +903,7 @@ func (r *ReceiverBase) forwardRTP(
|
|||||||
"numPacketsDropped", numPacketsDropped,
|
"numPacketsDropped", numPacketsDropped,
|
||||||
"forwarderGeneration", forwarderGeneration,
|
"forwarderGeneration", forwarderGeneration,
|
||||||
"forwardersGeneration", r.forwardersGeneration.Load(),
|
"forwardersGeneration", r.forwardersGeneration.Load(),
|
||||||
"errror", err,
|
"error", err,
|
||||||
)
|
)
|
||||||
wg.Done()
|
wg.Done()
|
||||||
}()
|
}()
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ import (
|
|||||||
"github.com/livekit/protocol/logger"
|
"github.com/livekit/protocol/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var _ REDTransformer = (*RedPrimaryReceiver)(nil)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ErrIncompleteRedHeader = errors.New("incomplete red block header")
|
ErrIncompleteRedHeader = errors.New("incomplete red block header")
|
||||||
ErrIncompleteRedBlock = errors.New("incomplete red block payload")
|
ErrIncompleteRedBlock = errors.New("incomplete red block payload")
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ import (
|
|||||||
"github.com/livekit/protocol/logger"
|
"github.com/livekit/protocol/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var _ REDTransformer = (*RedReceiver)(nil)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
maxRedCount = 2
|
maxRedCount = 2
|
||||||
mtuSize = 1500
|
mtuSize = 1500
|
||||||
|
|||||||
Reference in New Issue
Block a user