2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.ipcamera.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link CameraConfig} handles the configuration of cameras.
20 * @author Matthew Skinner - Initial contribution
23 public class CameraConfig {
24 private String ipAddress = "";
25 private String ffmpegInputOptions = "";
27 private int onvifPort;
28 private String username = "";
29 private String password = "";
30 private int onvifMediaProfile;
32 private String ffmpegInput = "";
33 private String snapshotUrl = "";
34 private String mjpegUrl = "";
35 private String alarmInputUrl = "";
36 private String customMotionAlarmUrl = "";
37 private String customAudioAlarmUrl = "";
38 private String updateImageWhen = "";
39 private int nvrChannel;
40 private String ipWhitelist = "";
41 private String ffmpegLocation = "";
42 private String ffmpegOutput = "";
43 private String hlsOutOptions = "";
44 private String gifOutOptions = "";
45 private String mp4OutOptions = "";
46 private String mjpegOptions = "";
47 private String snapshotOptions = "";
48 private String motionOptions = "";
49 private boolean ptzContinuous;
50 private int gifPreroll;
52 public int getOnvifMediaProfile() {
53 return onvifMediaProfile;
56 public String getFfmpegInputOptions() {
57 return ffmpegInputOptions;
60 public String getMjpegOptions() {
64 public String getSnapshotOptions() {
65 return snapshotOptions;
68 public String getMotionOptions() {
72 public String getMp4OutOptions() {
76 public String getGifOutOptions() {
80 public String getHlsOutOptions() {
84 public String getIpWhitelist() {
88 public String getFfmpegLocation() {
89 return ffmpegLocation;
92 public String getFfmpegOutput() {
96 public void setFfmpegOutput(String path) {
100 public boolean getPtzContinuous() {
101 return ptzContinuous;
104 public String getAlarmInputUrl() {
105 return alarmInputUrl;
108 public String getCustomAudioAlarmUrl() {
109 return customAudioAlarmUrl;
112 public String getCustomMotionAlarmUrl() {
113 return customMotionAlarmUrl;
116 public int getNvrChannel() {
120 public String getMjpegUrl() {
124 public String getSnapshotUrl() {
128 public String getFfmpegInput() {
132 public String getUpdateImageWhen() {
133 return updateImageWhen;
136 public int getPollTime() {
140 public int getOnvifPort() {
144 public String getIp() {
148 public String getUser() {
152 public void setUser(String username) {
153 this.username = username;
156 public String getPassword() {
160 public void setPassword(String password) {
161 this.password = password;
164 public int getGifPreroll() {
168 public int getPort() {