Skip to content

Commit 4426532

Browse files
committed
feat: increase switchable camera slots from 4 to 8
1 parent 136fa73 commit 4426532

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/com/openipc/decoder/Decoder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public class Decoder extends Activity {
133133
private final byte[] pcmStagingBuf = new byte[PCM_BUF_SIZE];
134134

135135
// read from the network thread, written from the UI thread
136-
private static final int CAM_COUNT = 4;
136+
private static final int CAM_COUNT = 8;
137137
private static final String DEFAULT_URL = "rtsp://root:12345@192.168.1.10:554/stream=0";
138138
private final String[] mHosts = new String[CAM_COUNT];
139139
private final boolean[] mTypes = new boolean[CAM_COUNT]; // false = TCP, true = UDP
@@ -322,7 +322,7 @@ private void applyActiveCamera() {
322322
resetZoom();
323323
}
324324

325-
/** Format the status text: "[N/4] url" or "Camera N — not configured". */
325+
/** Format the status text: "[N/8] url" or "Camera N — not configured". */
326326
private String formatStatus() {
327327
String url = mHosts[mActive];
328328
if (url == null || url.isEmpty()) {

0 commit comments

Comments
 (0)