From 5fc92f0bf451a8a7bdc2108d8cad286783c6d281 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Fri, 27 Aug 2021 09:52:51 +0700 Subject: [PATCH] Further notes in stream about the numbers --- crates/core/src/bc_protocol/stream.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/crates/core/src/bc_protocol/stream.rs b/crates/core/src/bc_protocol/stream.rs index 227bd85..0f5cd1d 100644 --- a/crates/core/src/bc_protocol/stream.rs +++ b/crates/core/src/bc_protocol/stream.rs @@ -56,7 +56,7 @@ impl BcCamera { .expect("Must be connected to start video"); let sub_video = connection.subscribe(MSG_ID_VIDEO)?; - // On an E1: + // On an E1 and swann cameras: // - mainStream always has a value of 0 // - subStream always has a value of 1 // - There is no externStram @@ -71,7 +71,14 @@ impl BcCamera { }; // Theses are the numbers used with the offical client - // connecting to an B800. + // On an E1 and swann cameras: + // - mainStream always has a value of 0 + // - subStream always has a value of 1 + // - There is no externStram + // On a B800: + // - mainStream is 0 + // - subStream is 256 + // - externStram is 1024 let handle = match stream { Stream::Main => 0, Stream::Sub => 256,