mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 17:40:46 -04:00
snapshot fixes
This commit is contained in:
@@ -104,12 +104,12 @@ function createVideoAuthPolicy(deps) {
|
||||
if (
|
||||
!isAudio &&
|
||||
shouldUseSnapshotsForNonTurnVideo({ controllableUserCount: countControllableUsers() }) &&
|
||||
!turnService.canDrive(roverId, socket)
|
||||
!turnService.canRequestLiveVideo(roverId, socket)
|
||||
) {
|
||||
/*
|
||||
This mirrors videoSocketService's token gate. MediaMTX can ask auth
|
||||
after a token has been issued, so the active-turn bandwidth rule must
|
||||
be evaluated here too instead of trusting an older browser decision.
|
||||
after a token has been issued, so the same "must belong to this rover's
|
||||
driver queue" rule has to be evaluated here too.
|
||||
*/
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user