def main():
""" launch the screen """
cli = argparse.ArgumentParser()
cli.add_argument("-p", "--port", default=60601,
type=int, help="port to listen on")
cli.add_argument("-l", "--listen", default="0.0.0.0",
help="ip to listen on")
cli.add_argument("-m", "--music", action="store_true",
help="control mpd player by pausing and unpausing")
cli.add_argument("--mpdhost", default=None,
help="server where mpd is reached")
cli.add_argument("--mpdport", default=None,
help="port where mpd is reached")
cli.add_argument("options", default="", nargs=argparse.REMAINDER,
help="mpv options")
args = cli.parse_args()
screen = VideoScreen(args)
screen.launch()
评论列表
文章目录