-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
snapcast: add streaming from kodi #2597
Conversation
To stream from Kodi:
Remarks:
|
meh... snapserver should wait for pulse |
SnapcastSnapcast is a multi-room client-server audio player, where all clients are time synchronized with the server to play perfectly synced audio. On LibreELEC it comes as two addons: Snapserver to stream AirPlay, Kodi or Spotify, and Snapserver to play. InstallationSnapserverInstall Snapserver on one system in your network. Snapserver also exists for systems other than LibreELEC. SnapclientInstall Snapclient on every system in your network you want to stream to. Snapclient also exists for systems other than LibreELEC. ConfigurationSnapserver for LibreELECBy default, Snapserver streams AirPlay. You can select a stream in the settings of the addon from Airplay, Kodi or Spotify. AirPlayIn the settings of the addon, select AirPlay. Then check with a phone or tablet that Snapcast is available via AirPlay. KodiIt works but is still quite capricious. Expect trial and error. Before streaming Kodi, install Snapserver and reboot LibreELEC. After rebooting you should find PULSE: Snapserver in Settings/System/Audio/Audio output device. Do not select it yet. First select Kodi in the settings of the addon. Then select PULSE: Snapserver in Settings/System/Audio/Audio. After that, you should be able to select any audio output device without rebooting. Before you switch to another stream in the settings of the addon, make sure you have selected a device other than PULSE: You will notice that audio and video are not synchronized. This can easily be fixed during video playback by setting Audio offset to Ahead by 1.000s in Settings/Audio settings while playing. You may also wish to disable Play GUI sounds in System/Settings/Audio. If you know what you are doing, you can set pulseaudio options by editing the pulseaudio.conf file in the home directory of the addon (smb://libreelec.local/userdata/addon_data/service.snapserver/pulseaudio.conf). Pulseaudio will pick these options when it restarts. SpotifyIn the settings of the addon, select Spotify. Then check with a Spotity app that Snapcast is available via Spotify. Snapclient for LibreELECSound CardFirst, start streaming from the source you have set in Snapserver. If you are lucky, Snapclient will start playing. If Snapclient does not play or uses a wrong sound card, go the settings of the addon. There, select "List sound cards" to list available sound cards, note the index of the card you wish Snapclient to use (3 for example), and set it in the "Sound Card" field. Snapclient should play after you change the settings with the "OK" button. If "List sound cards" lists no card or only the null sound card you will wnat to add a sound card. For a Rasberry Pi, you can do this in the Raspberry Pi tab of the settings by setting "Manage onboard audio", selecting a playback mode and changing the settings with the "OK" button. When you return in the settings of the addon you should be able to list and select a card. Enjoy! |
457229b
to
9973400
Compare
I am done. Please review and test. |
lgtm 👍 (no runtime test as no usecase) |
snapcast: add streaming from kodi (backport of #2597)
This can be merged, no? |
the alsa-plugins are useless, alsa-lib is hardcoded with a plugindir of /usr/lib/alsa and this addon installs alsa-plugins to its own kodi addon directory... setting LD_LIBRARY_PATH does not affect alsa and so it isnt fixing anything EDIT: wrong committ, resubmitting at correct location |
No description provided.