Use lower case mime type in dynacast. (#3080)
Seeing instances of both lower case and upper case mime in dynacast manager which created duplicate entries. Also, move the dyncast files a package. TODO: Need to do audit and come up with a consistent way to always use lower case for mime type.
This commit is contained in:
@@ -29,6 +29,7 @@ import (
|
||||
"github.com/livekit/protocol/logger"
|
||||
|
||||
"github.com/livekit/livekit-server/pkg/config"
|
||||
"github.com/livekit/livekit-server/pkg/rtc/dynacast"
|
||||
"github.com/livekit/livekit-server/pkg/rtc/types"
|
||||
"github.com/livekit/livekit-server/pkg/sfu"
|
||||
"github.com/livekit/livekit-server/pkg/sfu/buffer"
|
||||
@@ -48,7 +49,7 @@ type MediaTrack struct {
|
||||
*MediaTrackReceiver
|
||||
*MediaLossProxy
|
||||
|
||||
dynacastManager *DynacastManager
|
||||
dynacastManager *dynacast.DynacastManager
|
||||
|
||||
lock sync.RWMutex
|
||||
|
||||
@@ -107,7 +108,7 @@ func NewMediaTrack(params MediaTrackParams, ti *livekit.TrackInfo) *MediaTrack {
|
||||
}
|
||||
|
||||
if ti.Type == livekit.TrackType_VIDEO {
|
||||
t.dynacastManager = NewDynacastManager(DynacastManagerParams{
|
||||
t.dynacastManager = dynacast.NewDynacastManager(dynacast.DynacastManagerParams{
|
||||
DynacastPauseDelay: params.VideoConfig.DynacastPauseDelay,
|
||||
Logger: params.Logger,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user