Error codes

The player runs a set of diagnostic checks. Each failed check is a trouble, identified by an error name. Call get_troubles() in splayer_troubles_api-2.h to retrieve the player's current troubles. See build_troubles in the reference app's src/splayer_json.c for an example. The set of troubles can vary between SDK versions.

The current possible troubles:

Error nameCheckCondition
ERROR_VALID_IPChecks the network configuration.Fails if no network config is found.
ERROR_PING_SOUNDTRACKChecks connectivity to the Soundtrack internal endpoints the player needs to work as expected.Fails if the player can't connect to any of these endpoints.
ERROR_PING_DNSChecks DNS lookup.Fails if DNS lookup doesn't work.
ERROR_PING_CDNChecks connectivity to the CDN servers the player downloads and streams music from.Fails if the player can't connect to the endpoints.
ERROR_PING_CDN_IPChecks the success rate of connections to the CDN servers, to make sure music can download and stream.Fails if the player has a low success rate.
ERROR_PING_CERTChecks if a proxy is used. Proxies are not supported.Fails if a proxy is found.
ERROR_ONLINE_STATEChecks the online state.Fails if the player is offline or many requests fail.
ERROR_PAIREDChecks if the player is connected to a sound zone.Fails if not connected.
ERROR_ACTIVE_SUBSCRIPTIONChecks if the player has an active subscription.Fails if inactive.
ERROR_CHANNEL_ASSIGNEDChecks if any source of music is assigned.Fails if no music is assigned.
ERROR_DOWNLOADED_DATAChecks downloaded data for the assigned music.Fails if nothing is downloaded.
ERROR_NO_VOLUMEChecks the volume level.Fails if the volume is set to zero.
ERROR_DISKCACHE_LOWChecks free disk space.Fails if the free disk space is below 1 GB.
ERROR_DISKCACHE_CRITICALLY_LOWChecks free disk space.Fails if the free disk space is below 256 MB.
ERROR_PAYMENT_EXPIREDChecks payment status.Fails if the connected zone doesn't have a valid and paid subscription.
ERROR_CLOCK_WRONGChecks the server time offset.Fails if the device time differs from server time by more than 15 min.

Deprecated and unsupported Player Library versions raise separate errors on the sound zone; see Release management.