def play(self, media: Media) -> Optional[subprocess.Popen]:
        """Plays this media in the VLC media player."""

        if self.platform == "Android":

            if media.referrer is not None:
                raise ReferrerNotSupportedError(
                    "The VLC player on Android does not support passing referrers, so this media cannot be played. :("
                )

            return subprocess.Popen(
                [
                    "am",
                    "start",
                    "-n",
                    "org.videolan.vlc/org.videolan.vlc.gui.video.VideoPlayerActivity",
                    "-e",
                    "title",
                    media.display_name,
                    media.url,
                ]
            )

        elif self.platform == "iOS":

            if media.referrer is not None:
                raise ReferrerNotSupportedError(
                    "The VLC player on iOS does not support passing referrers, so this media cannot be played. :("
                )

            with open('/dev/clipboard', 'w') as f:
                f.write(f"vlc://{media.url}")

            logger.info("The URL was copied into your clipboard. To play it, open a browser and paste the URL.")

            return None

        elif self.platform == "Linux" or self.platform == "Windows" or self.platform == "FreeBSD":
            default_args = [
                "vlc", 
                media.url
            ]

            if media.audio_url is not None:
                default_args.append(f"--input-slave={media.audio_url}") # WHY IS THIS UNDOCUMENTED!!!

            args = [
                f'--meta-title="{media.display_name}"'
            ]

            if media.referrer is not None:
                args.append(f'--http-referrer="{media.referrer}"')

            if media.subtitles is not None:

                for subtitle in media.subtitles:

                    if subtitle.startswith("https://"):
                        logger.debug("Subtitles detected as a url.")
                        subtitle = str(self.__url_subtitles_to_file(media, subtitle))

                    args.append(f"--sub-file={subtitle}")

            if self.debug is False:
                args.append("--quiet")

            args = self.handle_additional_args(args, self.args)

            return subprocess.Popen(default_args + args)

        return None
Plays this media in the VLC media player.
mov_cli/players/vlc.py