Files
Tobias Gesellchen 3329149282 Add support for RADIO_BROWSER source
This implementation follows the reference from soundcork pull request #158. It adds RADIO_BROWSER to the known providers and includes the service configuration in bmx_services.json. Documentation has also been added to explain how to use the RadioBrowser feature. Credits to @gmuth (https://github.com/gmuth) for the original idea and implementation in soundcork. Reference: https://github.com/deborahgu/soundcork/pull/158
2026-02-16 22:18:33 +01:00

64 lines
1.3 KiB
Go

// Package constants defines file names, directories, and common values used by the service layer.
package constants
// Providers lists known source provider identifiers used by Bose SoundTouch.
var Providers = []string{
"PANDORA",
"INTERNET_RADIO",
"OFF",
"LOCAL",
"AIRPLAY",
"CURRATED_RADIO",
"STORED_MUSIC",
"SLAVE_SOURCE",
"AUX",
"RECOMMENDED_INTERNET_RADIO",
"LOCAL_INTERNET_RADIO",
"GLOBAL_INTERNET_RADIO",
"HELLO",
"DEEZER",
"SPOTIFY",
"IHEART",
"SIRIUSXM",
"GOOGLE_PLAY_MUSIC",
"QQMUSIC",
"AMAZON",
"LOCAL_MUSIC",
"WBMX",
"SOUNDCLOUD",
"TIDAL",
"TUNEIN",
"QPLAY",
"JUKE",
"BBC",
"DARFM",
"7DIGITAL",
"SAAVN",
"RDIO",
"PHONE_MUSIC",
"ALEXA",
"RADIOPLAYER",
"RADIO.COM",
"RADIO_COM",
"SIRIUSXM_EVEREST",
"RADIO_BROWSER",
}
// Common file and path constants used by the datastore and setup logic.
const (
DevicesDir = "devices"
DeviceInfoFile = "DeviceInfo.xml"
PresetsFile = "Presets.xml"
RecentsFile = "Recents.xml"
SourcesFile = "Sources.xml"
SpeakerHTTPPort = 8090
SpeakerDeviceInfoPath = "/info"
SpeakerRecentsPath = "/recents"
SpeakerPresetsPath = "/presets"
SpeakerSourcesFileLocation = "/mnt/nv/BoseApp-Persistence/1/Sources.xml"
// DateStr is the hardcoded date used in many Bose XML responses
DateStr = "2012-09-19T12:43:00.000+00:00"
)