Files
FastAnime/fastanime/libs/players/base.py
2025-07-12 22:55:13 +03:00

18 lines
363 B
Python

from abc import ABC, abstractmethod
from .params import PlayerParams
from .types import PlayerResult
class BasePlayer(ABC):
"""
Abstract Base Class defining the contract for all media players.
"""
@abstractmethod
def play(self, params: PlayerParams) -> PlayerResult:
"""
Plays the given media URL.
"""
pass