Error Codes
Error codes explanation
By calling get_troubles()
found in splayer_trobules_api-2.h
you are able to retrieve a list of Soundtrack internal errors.
See the example code to know how to do it. These error codes can vary between SDK versions, but this list is updated whenever a new version is released with changes to them.
Here follows a brief explanation of the current possible errors:
Error name | Explanation | Condition |
---|---|---|
ERROR_VALID_IP | Returns a list of the current network config. | Fails if no network config is found. |
ERROR_PING_SOUNDTRACK | Checks connectivity to Soundtrack internal endpoints in order for the product to work as expected | Fails if the player can't connect to any of these endpoints. |
ERROR_PING_DNS | Check the DNS | Fails if DNS lookup doesn't work |
ERROR_PING_CDN | Checks connectivity to the CDN-servers in order for the product to download/stream music. | Fails if the player can't connect to the endpoints. |
ERROR_PING_CDN_IP | Checks connectivity rate to the CDN-servers in order for the product to have sufficient connectivity to guarantee download/stream music. | Fails if the player has a low success rate. |
ERROR_PING_CERT | Checks if a proxy is used. We do not support that. | Fails if proxy is found. |
ERROR_ONLINE_STATE | Checks online state | Fails if the player is offline/high amount of failing requests. |
ERROR_PAIRED | Checks if player is paired | Fails if not paired. |
ERROR_ACTIVE_SUBSCRIPTION | Checks if player have an active subscription | Fails if inactive. |
ERROR_CHANNEL_ASSIGNED | Checks if any source of music is assigned | Fails if no music is assigned |
ERROR_DOWNLOADED_DATA | Checks downloaded data for the assigned music. | Fails if nothing is downloaded. |
ERROR_NO_VOLUME | Checks the volume level | Fails if the volume is set to zero. |
ERROR_DISKCACHE_LOW | Checks free disk space | Fails if the free disk space is below 1 GB. |
ERROR_DISKCACHE_CRITICALLY_LOW | Checks free disk space | Fails if the free disk space is below 256 MB. |
ERROR_PAYMENT_EXPIRED | Check payment status | Fails if the paired zone doesn't have a valid and paid subscription. |
ERROR_CLOCK_WRONG | Check server time offset | Fails if server time offset differs +- 15 min from the device local time. |