2 * Copyright (c) 2010-2020 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 int serverPort;
29 private String username = "";
30 private String password = "";
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 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 getMotionOptions() {
68 public String getMp4OutOptions() {
72 public String getGifOutOptions() {
76 public String getHlsOutOptions() {
80 public String getIpWhitelist() {
84 public String getFfmpegLocation() {
85 return ffmpegLocation;
88 public String getFfmpegOutput() {
92 public boolean getPtzContinuous() {
96 public String getAlarmInputUrl() {
100 public String getCustomAudioAlarmUrl() {
101 return customAudioAlarmUrl;
104 public String getCustomMotionAlarmUrl() {
105 return customMotionAlarmUrl;
108 public int getNvrChannel() {
112 public String getMjpegUrl() {
116 public String getSnapshotUrl() {
120 public String getFfmpegInput() {
124 public String getUpdateImageWhen() {
125 return updateImageWhen;
128 public int getPollTime() {
132 public int getOnvifPort() {
136 public int getServerPort() {
140 public String getIp() {
144 public String getUser() {
148 public void setUser(String username) {
149 this.username = username;
152 public String getPassword() {
156 public void setPassword(String password) {
157 this.password = password;
160 public int getGifPreroll() {
164 public int getPort() {