Update protocol (#1075)

* update protocol

* auto egress ensure unique filename

* fix tests
This commit is contained in:
David Colburn
2022-10-10 10:38:46 -07:00
committed by GitHub
parent a5bed14d02
commit 78386c4669
4 changed files with 18 additions and 14 deletions
+2 -2
View File
@@ -26,14 +26,14 @@ func TestRoomInternal(t *testing.T) {
Name: "test_room",
}
internal := &livekit.RoomInternal{
TrackEgress: &livekit.AutoTrackEgress{FilePrefix: "egress"},
TrackEgress: &livekit.AutoTrackEgress{Filepath: "egress"},
}
require.NoError(t, rs.StoreRoom(ctx, room, internal))
actualRoom, actualInternal, err := rs.LoadRoom(ctx, livekit.RoomName(room.Name), true)
require.NoError(t, err)
require.Equal(t, room.Sid, actualRoom.Sid)
require.Equal(t, internal.TrackEgress.FilePrefix, actualInternal.TrackEgress.FilePrefix)
require.Equal(t, internal.TrackEgress.Filepath, actualInternal.TrackEgress.Filepath)
// remove internal
require.NoError(t, rs.StoreRoom(ctx, room, nil))