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 public boolean useToken = true;
31 private int onvifMediaProfile;
33 private String ffmpegInput = "";
34 private String snapshotUrl = "";
35 private String mjpegUrl = "";
36 private String alarmInputUrl = "";
37 private String customMotionAlarmUrl = "";
38 private String customAudioAlarmUrl = "";
39 private String updateImageWhen = "";
40 private int nvrChannel;
41 private String ipWhitelist = "";
42 private String ffmpegLocation = "";
43 private String ffmpegOutput = "";
44 private String hlsOutOptions = "";
45 private String gifOutOptions = "";
46 private String mp4OutOptions = "";
47 private String mjpegOptions = "";
48 private String snapshotOptions = "";
49 private String motionOptions = "";
50 private boolean ptzContinuous;
51 private int gifPreroll;
53 public int getOnvifMediaProfile() {
54 return onvifMediaProfile;
57 public String getFfmpegInputOptions() {
58 return ffmpegInputOptions;
61 public String getMjpegOptions() {
65 public String getSnapshotOptions() {
66 return snapshotOptions;
69 public String getMotionOptions() {
73 public String getMp4OutOptions() {
77 public String getGifOutOptions() {
81 public String getHlsOutOptions() {
85 public String getIpWhitelist() {
89 public String getFfmpegLocation() {
90 return ffmpegLocation;
93 public String getFfmpegOutput() {
97 public void setFfmpegOutput(String path) {
101 public boolean getPtzContinuous() {
102 return ptzContinuous;
105 public String getAlarmInputUrl() {
106 return alarmInputUrl;
109 public String getCustomAudioAlarmUrl() {
110 return customAudioAlarmUrl;
113 public String getCustomMotionAlarmUrl() {
114 return customMotionAlarmUrl;
117 public int getNvrChannel() {
121 public String getMjpegUrl() {
125 public String getSnapshotUrl() {
129 public String getFfmpegInput() {
133 public String getUpdateImageWhen() {
134 return updateImageWhen;
137 public int getPollTime() {
141 public int getOnvifPort() {
145 public String getIp() {
149 public String getUser() {
153 public void setUser(String username) {
154 this.username = username;
157 public String getPassword() {
161 public void setPassword(String password) {
162 this.password = password;
165 public int getGifPreroll() {
169 public int getPort() {