#!/bin/bash

. parse-args "$@"

if ! command -v vlc >/dev/null 2>&1; then
    echo "VLC not found. Installing dependencies..."
    sudo apt update --yes
    sudo apt install --yes --no-install-recommends vlc-bin vlc-plugin-base
fi

vlc -I telnet --telnet-password ${PASSWORD-password} --telnet-host ${HOST-0.0.0.0}:${PORT-4212}
