mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-29 22:20:34 -08:00
18 lines
363 B
Python
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
|