Add SyncStreams flag to Room (#2110)

* Add SyncStreams flag to Room

* Increase protocol version

* Revert version change

* Move flags to internal & solve comment
This commit is contained in:
cnderrauber
2023-09-28 15:41:44 +08:00
committed by GitHub
parent 4c9d95149d
commit 92a355e1f3
10 changed files with 132 additions and 53 deletions
+3 -2
View File
@@ -240,7 +240,7 @@ func (r *RoomManager) StartSession(
}
defer room.Release()
protoRoom := room.ToProto()
protoRoom, roomInternal := room.ToProto(), room.Internal()
// only create the room, but don't start a participant session
if pi.Identity == "" {
@@ -408,7 +408,8 @@ func (r *RoomManager) StartSession(
SubscriberAllowPause: subscriberAllowPause,
SubscriptionLimitAudio: r.config.Limit.SubscriptionLimitAudio,
SubscriptionLimitVideo: r.config.Limit.SubscriptionLimitVideo,
PlayoutDelay: protoRoom.PlayoutDelay,
PlayoutDelay: roomInternal.GetPlayoutDelay(),
SyncStreams: roomInternal.GetSyncStreams(),
})
if err != nil {
return err