Skip to content

iina

Iina(player_path, extra_args=[], play_callback=None)

Bases: SubProcessPlayerBase

The iina subprocess player class.

For detailed documentation about the functions and arguments have a look at the base class.

Parameters:

Name Type Description Default
player_path str
required
extra_args List[str]
[]
play_callback Optional[PlayCallback]
None
Source code in api/src/anipy_api/player/players/iina.py
def __init__(
    self,
    player_path: str,
    extra_args: List[str] = [],
    play_callback: Optional[PlayCallback] = None,
):
    """__init__ of Iina

    Args:
        player_path:
        extra_args:
        play_callback:
    """
    self.player_args_template = [
        "{stream_url}",
        "--mpv-force-media-title={media_title}",
        "--referrer={referrer}",
        *extra_args,
    ]

    super().__init__(
        player_path=player_path, extra_args=extra_args, play_callback=play_callback
    )