Hidden participants (#65)

Enables hidden recording and/or forwarding participants
This commit is contained in:
David Colburn
2021-07-19 18:33:28 -05:00
committed by GitHub
parent 87dfb2b117
commit 4bab395ac9
14 changed files with 165 additions and 16 deletions
+2 -1
View File
@@ -6,9 +6,10 @@ import (
"testing"
"time"
"github.com/stretchr/testify/require"
"github.com/livekit/livekit-server/pkg/service"
livekit "github.com/livekit/livekit-server/proto"
"github.com/stretchr/testify/require"
)
func TestParticipantPersistence(t *testing.T) {
+1
View File
@@ -291,6 +291,7 @@ func (r *RoomManager) StartSession(roomName string, pi routing.ParticipantInit,
Stats: room.GetStatsReporter(),
ThrottleConfig: r.config.RTC.PLIThrottle,
EnabledCodecs: room.Room.EnabledCodecs,
Hidden: pi.Hidden,
})
if err != nil {
logger.Errorw("could not create participant", err)
+1
View File
@@ -81,6 +81,7 @@ func (s *RTCService) validate(r *http.Request) (string, routing.ParticipantInit,
UsePlanB: boolValue(planBParam),
AutoSubscribe: true,
Metadata: claims.Metadata,
Hidden: claims.Video.Hidden,
}
if autoSubParam != "" {
pi.AutoSubscribe = boolValue(autoSubParam)