Enable data tracks by default. (#4429)
This commit is contained in:
@@ -436,12 +436,13 @@ var DefaultConfig = Config{
|
|||||||
StreamBufferSize: 1000,
|
StreamBufferSize: 1000,
|
||||||
ConnectAttempts: 3,
|
ConnectAttempts: 3,
|
||||||
},
|
},
|
||||||
PSRPC: rpc.DefaultPSRPCConfig,
|
PSRPC: rpc.DefaultPSRPCConfig,
|
||||||
Keys: map[string]string{},
|
Keys: map[string]string{},
|
||||||
Metric: metric.DefaultMetricConfig,
|
Metric: metric.DefaultMetricConfig,
|
||||||
WebHook: webhook.DefaultWebHookConfig,
|
WebHook: webhook.DefaultWebHookConfig,
|
||||||
NodeStats: DefaultNodeStatsConfig,
|
NodeStats: DefaultNodeStatsConfig,
|
||||||
API: DefaultAPIConfig(),
|
API: DefaultAPIConfig(),
|
||||||
|
EnableDataTracks: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewConfig(confString string, strictMode bool, c *cli.Command, baseFlags []cli.Flag) (*Config, error) {
|
func NewConfig(confString string, strictMode bool, c *cli.Command, baseFlags []cli.Flag) (*Config, error) {
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ func (s *signallerAsync) WriteMessage(msg proto.Message) error {
|
|||||||
|
|
||||||
if s.params.Participant.IsDisconnected() {
|
if s.params.Participant.IsDisconnected() {
|
||||||
s.params.Logger.Debugw(
|
s.params.Logger.Debugw(
|
||||||
"counld not send message to participant, participant disconnected",
|
"could not send message to participant, participant disconnected",
|
||||||
"messageType", getMessageType(msg),
|
"messageType", getMessageType(msg),
|
||||||
)
|
)
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
@@ -290,10 +290,10 @@ func (s *RTCService) serve(w http.ResponseWriter, r *http.Request, needsJoinRequ
|
|||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
roomName livekit.RoomName
|
roomName livekit.RoomName = "unresolved"
|
||||||
roomID livekit.RoomID
|
roomID livekit.RoomID = "unresolved"
|
||||||
participantIdentity livekit.ParticipantIdentity
|
participantIdentity livekit.ParticipantIdentity = "unresolved"
|
||||||
pID livekit.ParticipantID
|
pID livekit.ParticipantID = "unresolved"
|
||||||
loggerResolved bool
|
loggerResolved bool
|
||||||
|
|
||||||
pi routing.ParticipantInit
|
pi routing.ParticipantInit
|
||||||
|
|||||||
@@ -1420,7 +1420,7 @@ func (d *DownTrack) CloseWithFlush(flush bool, isEnding bool) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
d.params.Logger.Debugw("close downtrack", "flushBlankFrame", flush)
|
d.params.Logger.Debugw("close downtrack", "flushBlankFrame", flush, "isEnding", isEnding)
|
||||||
if d.bindState.Load() == bindStateBound {
|
if d.bindState.Load() == bindStateBound {
|
||||||
d.forwarder.Mute(true, true)
|
d.forwarder.Mute(true, true)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user