#!/usr/bin/python3
from app import log
import configparser
from app import device
from app import views
from time import sleep
import signal

if __name__ == "__main__":
    signal.signal(signal.SIGINT, device.singal_handler)
    """
    程序启动入口
 
    Parameters:
 
    Returns:
    """
    device.run()
    log.logger.info("App Starting...")

    """
    捕获libvlc中的c日志
 
    Parameters:
 
    Returns:
    """
    views.vlc_log_start()

    """
    设备的状态变化检测线程（音量, 播放状态...）
 
    Parameters:
 
    Returns:
    """
    device.check_start()
    device.check_fifo_start()
    while True:
        sleep(60)
        pass