musicmuster/app/vlcmanager.py
2025-03-29 18:20:38 +00:00

23 lines
404 B
Python

# Standard library imports
# PyQt imports
# Third party imports
import vlc # type: ignore
# App imports
from classes import singleton
@singleton
class VLCManager:
"""
Singleton class to ensure we only ever have one vlc Instance
"""
def __init__(self) -> None:
self.vlc_instance = vlc.Instance()
def get_instance(self) -> vlc.Instance:
return self.vlc_instance