#每个日志文件的大小
PER_LOG_FILESIZE = 1024000 * 2
#最多保留的日志文件个数
LOG_FILE_NUM = 2
#日志文件路径
LOG_PATH = "/userdata/ispeaker.log"
#系统信息配置文件
SPEAKER_CONFIG_FILE = "/etc/speaker.conf"
#音量信息配置文件
VOLUME_CONFIG_FILE = "/oem/etc/volctrl.conf"
#mqtt服务器端口号
SERVER_MQTT_PORT = 1883
#mqtt指令主题名
TOPIC_COMMAND = "operation"
#mqtt响应主题名
TOPIC_RESPONSE = "response"
#设备状态改变上报主题
TOPIC_UPDATE = "update"
#设备事件主题
TOPIC_EVENT = "event"
ID = "id"
ACTION_NAME = "action"
STATUS = "statusText"
SOLF_VOLUME = "soft-volume"
HARD_VOLUME = "hard-volume"
HARD_VOLUME_CONTROL = "hard-volume-control"
PRIVATE_IP = "private_ip"
ERROR = "error"
PLAY = "play"
PAUSE = "pause"
RESUME = "resume"
STOP = "stop"
SET_EXTEN = "set-exten"
DATA = "data"
VOLUME = "volume"
URL = "url"
HOST = "host"
EXTEN = "exten"
PASSWORD = "password"
MQTT_QOS = 1
PLAYER_IDLE = "idle"
PLAYER_PLAYING = "playing"
PLAYER_PAUSE = "pause"
PLAYER_ERROR = "error"
SLEEP_SEC = 0.5
SET_SOLF_VOLUME = "set-soft-volume"
SET_HARD_VOLUME = "set-hard-volume"
MQTT_CONNECT_TIMEOUT = 5
RETRY_SEC = 3
DEVICE_MODEL = "model"
#项目配置文件，用于保存一些运行时变量，如音量，播放状态
PROJECT_CONFIG = "/etc/ispeaker.conf"
#各状态检测事件间隔
CHECK_INTERVAL = 2
SET_HARD_VOLUME_CONTROL = "set-hard-volume-control"
VALUE = "value"
ON = "on"
OFF = "off"
#libvlc c库的日志级别
VLC_DEBUG_LEVEL = "DEBUG"
VLC_BUF_LEN = 1024
#多少各关心的警告日志出现就会重播源
VLC_WARNING_COUNT = 6
#多少各关心的错误日志出现就会重播源
VLC_ERROR_COUNT = 100 
VLC_SOURCE_ERROR_COUNT = 5
SET_SERVICE_SETTINGS = "set_service_settings"
#rtsp推送执行程序
RTSP_PUSHER = "/app/ispeaker-service/bin/rtsp_pull_push"
FIFO_PATH = "/userdata/ispeaker.fifo"
SERVER_ICE_PORT = "8001"
BUFFER_LATE_INTERVAL = 8
# 组播地址个数
ADDRESS_COUNT = 9
# 地址
ANY = "0.0.0.0"
# 组播超时计时器
TIME_COUNTER = 3
# 播放器默认音量
PLAYER_VOLUME = 90
# 最大线程数量
MAX_WORKERS = 12
#speaker事件通道
EVENTCHSUB  = "volume-event-channel"
#音量接收通道
VALUECHPUB  = "volume-value-channel"
#设置单个音量的通道
WEBCHPUB  = "volume-web-set-channel"