Added IPMPV_AO env variable

This commit is contained in:
Ignacio Rivero 2025-03-09 17:48:46 +00:00
parent 646e0e2c25
commit dd34e76002
2 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import mpv
import threading
import time
import traceback
from utils import hwdec
from utils import hwdec, ao
class Player:
"""MPV player wrapper with IPMPV-specific functionality."""
@ -17,6 +17,7 @@ class Player:
log_handler=self.error_check,
vo='gpu',
hwdec=hwdec if hwdec is not None else 'auto-safe',
ao=ao if ao is not None else 'alsa',
demuxer_lavf_o='reconnect=1',
deinterlace='no',
keepaspect='no',

View File

@ -11,6 +11,7 @@ osd_corner_radius = os.environ.get("IPMPV_CORNER_RADIUS")
ipmpv_retroarch_cmd = os.environ.get("IPMPV_RETROARCH_CMD")
m3u_url = os.environ.get('IPMPV_M3U_URL')
hwdec = os.environ.get('IPMPV_HWDEC')
ao = os.environ.get('IPMPV_AO')
def setup_environment():
"""Set up environment variables."""