Skip to content

syncplay

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

Bases: SubProcessPlayerBase

The syncplay 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/syncplay.py
def __init__(
    self,
    player_path: str,
    extra_args: List[str] = [],
    play_callback: Optional[PlayCallback] = None,
):
    """__init__ of Syncplay

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

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