For Raspberry Pi, there are 2 popular Kodi base media center: OSMC and OpenELEC. I chose OSCM because it can be used as Airplay and Pairing bluetooth easily and successfully.
Airplay: Mac El Capitan using iTunes, iPhones, iPads with IOS 8 or older, audio and videos. IOS 9 is not working.