support single-frame capture

This commit is contained in:
David Ventura
2024-07-01 16:03:21 +02:00
parent 80b1e4643b
commit f85248bc6a
4 changed files with 69 additions and 3 deletions
+1 -1
View File
@@ -249,7 +249,7 @@ const deal_with_data = (session: Session, dv: DataView) => {
}
// this should always be enabled but currently it seems to cause more
// visual distortion than just missing some frames
if (!config.cameras[session.devName].fix_packet_loss) {
if (!config.cameras[session.devName]?.fix_packet_loss) {
return;
}