forked from platypush/platypush
Fabio Manganiello
e123463804
Explicitly use a `CastBrowser` object initialized at plugin boot instead of relying on blocking calls to `pychromecast.get_chromecasts`. 1. It enables better event handling via callbacks instead of synchronously waiting for scan batches. 2. It optimizes resources - only one Zeroconf and one CastBrowser object will be created in the plugin, and destroyed upon stop. 3. No need for separate `get_chromecast`/`_refresh_chromecasts` methods: all the scanning is run continuously, so we can just return the results from the maps. |
||
---|---|---|
.. | ||
chromecast | ||
gstreamer | ||
jellyfin | ||
kodi | ||
lib | ||
mplayer | ||
mpv | ||
omxplayer | ||
plex | ||
search | ||
subtitles | ||
vlc | ||
webtorrent | ||
__init__.py |