% Kodi LibreElec

# Extension Youtube

## COnfigureation

### Clef d'API Google


Éditer le fichier `/storage/.kodi/userdata/addon_data/plugin.video.youtube/settings.xml`

Sur https://console.cloud.google.com/ aller sur `API et services -> Identifiants`

Créer ou utiliser une clé client OAuth

Choisir :

- `Type d'application` : `Périphérique d'entrée TV et limitée`
- Nom: `LibreElec-20251020`


Valider et recopier/conserver les informations fournies

Récupérer les informations de cette page et dans le fichier `settings.xml` saisir:

- `youtube.api.id` : la valeur de l'ID client
- `youtube.api.key` : `lh-le-297410` (le nom de la clef)
- `youtube.api.secret` : le code secret du client



# Réglage volume audio son

Installer l'extension `Multimedia Tools` (ou chercher `alsa` dans les extensions)

```bash
mount -o remount,rw /flash
echo "dtparam=audio=on" >> /flash/config.txt

```

Voir [Config.txt | LibreELEC.wiki](https://wiki.libreelec.tv/configuration/config_txt)

- [Add-on:Audio Profiles - Official Kodi Wiki](https://kodi.wiki/view/Add-on:Audio_Profiles)
- [Tuning pulseaudio for RPi - Development - LibreELEC Forum](https://forum.libreelec.tv/thread/413-tuning-pulseaudio-for-rpi/)
- [Audio in 2 outputs: hdmi AND headphones. Possible? - General Support - LibreELEC Forum](https://forum.libreelec.tv/thread/975-audio-in-2-outputs-hdmi-and-headphones-possible/?postID=69221#post69221)

## GROSSES PISTES:

À partir [de là](https://forum.libreelec.tv/thread/975-audio-in-2-outputs-hdmi-and-headphones-possible/?postID=69221#post69221), j'ai cherché...

(Source: [ALSA audio configuration for simultaneous HDMI and analogue audio output - General Support - LibreELEC Forum](https://forum.libreelec.tv/thread/23542-alsa-audio-configuration-for-simultaneous-hdmi-and-analogue-audio-output/))

### COnfiguration pulseaudio dans libreelec

Première page à tester : [Tuning pulseaudio for RPi - Development - LibreELEC Forum](https://forum.libreelec.tv/thread/413-tuning-pulseaudio-for-rpi/)

Sur [cette page](https://forum.libreelec.tv/thread/413-tuning-pulseaudio-for-rpi/):

```
pactl load-module module-udev-detect
```

### Lister les sorties


```bash
aplay --list-pcms
```

- [https://askubuntu.com/a/1412506/138954](https://askubuntu.com/a/1412506/138954)
- [How to display your sound card details using the terminal on Ubuntu 22.04](https://net2.com/how-to-display-your-sound-card-details-using-the-terminal-on-ubuntu-22-04/)

### Gérer les sorties

-[https://unix.stackexchange.com/a/459725/33297](https://unix.stackexchange.com/a/459725/33297)
- [pulseaudio - Route application&#39;s audio output to multiple playback devices - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/458044/route-applications-audio-output-to-multiple-playback-devices)
- [Changing audio output from terminal - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/459240/changing-audio-output-from-terminal)

### Commandes pulseaudio

[How to Control Audio in Linux with `pactl` (with Examples)](https://commandmasters.com/commands/pactl-common/)



- [arch linux - PulseAudio list-sinks missing ALSA Devices - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/223147/pulseaudio-list-sinks-missing-alsa-devices)


### LibreELec pour info

[Pulseaudio | LibreELEC.wiki](https://wiki.libreelec.tv/configuration/pulseaudio)

[Tuning pulseaudio for RPi - Development - LibreELEC Forum](https://forum.libreelec.tv/thread/413-tuning-pulseaudio-for-rpi/)
