Changelog
splayerapi-v5
v.323
- New API:
set_device_infoadded to the end ofsplayer_options_api-1.h. Sets the brand and model of the hardware, which Soundtrack uses to tell products apart. Set it on the options object beforecreate_with_options; both strings are copied. Required for certification, see Requirements for the format.vendor_device_nameis no longer used to identify the model and can hold a user-facing name. - Deprecation:
createandcreate_with_log_handlerinsplayerapi-5.hare deprecated. Usecreate_with_optionsinstead: it takes the samesplayer_config_t, and the log handler can be set on the options object withset_log_handler. Builds for new integrations fail in both deprecated functions, since the device brand and model can only be set through the options object.
v.321
- New API:
seekadded tosplayer_controls_api-3.h. Seeks to a position, in milliseconds, within the currently playing track. The seek is applied asynchronously, so a return value of0means the request was accepted; read the new position back withget_current_track_position. Negative positions are rejected.
v.319
- New API:
get_current_source&free_sourceadded to the end ofsplayer_library_api-1.h. Returns the music source (playlist or schedule) currently assigned to the sound zone, so its name and image can be displayed without fetching the library. Read it with the existingget_source_id,get_source_name,get_source_typeandget_source_image_urigetters. When a schedule is assigned, the schedule is returned rather than the playlist it is currently playing.
v.318
- Reference app: The SDK package now includes a reference app in
reference-app/, a complete player with a web UI that shows how we use every part of the SDK. It includes an automatic updater you can use in your own player. - Removed examples: The standalone examples
example_auth.c,example_curl.c,example_dlopen.c,example_metadata.candexample_troubles.c, and the example updatercurl_update.c, have been removed in favor of the reference app. The audio output implementations, the mock libraries andwebserver.pyremain insrc/. - New API:
unpair_syncadded tosplayer_auth_api-1.h. Disconnects the player and waits untilget_auth_statusreturnsSPLAYER_AUTH_STATUS_NOT_PAIRED, so the player can be connected again directly afterwards. Likeunpair, it is safe to call on a player that is not connected, and returns0in that case.unpairis a deferred request and connecting immediately after it can fail withT_FAIL_ALREADY_PAIRED.
v.293
- New API: Added
splayer_library_api-1for accessing an account's library, supporting pagination and playback of specific sources (e.g., schedule or playlist) on a sound zone. Library fetching is primarily asynchronous viafetch_library(), with a synchronous helperfetch_library_sync()for simpler integrations.
v.290
- API behavior:
get_pairing_resultfromsplayer_auth_api-1.hnow returns a result withsuccess=1anddevice_idwhen the device is already connected from a previous session (e.g., after a restart). Previously it would returnNULLin this state.
v.287
- New API: Options API
splayer_options_api-1to allow specifying additional configuration when creating ansplayer_tinstance while preserving ABI compatibility. - New functionality: An option to start a player in a paused state via the new API, call
set_initially_pausedon the options object to start the instance paused. (Players remain unpaused by default.) - Updated example:
example_auth.chas been updated to demonstrate the new API usage.
v.266
- New API:
console_log_callbackadded tosplayerapi-5.hto allow setting a custom log callback function for SDK console logs. Needs to be used with the new APIcreate_with_log_handleradded tosplayerapi-5.hto create ansplayer_tinstance with a custom log handler.example_metadata.chas been updated to demonstrate its usage. - Updated ALSA example: The ALSA example has been updated to be easier to follow and to demonstrate how to properly set up sound output with best practices.
v.260
- Deprecation:
loop_iterationhas been deprecated. Instead, useshould_exitto poll if the application should exit or not. - Updated examples: All examples have been updated to remove the use of
loop_iterationand instead useshould_exit.
v.253
- New enum:
splayer_auth_status_tadded tosplayer_auth_api-1.hto provide the last known authentication status of the player. - Deprecation:
is_pairedfunction has been deprecated. It is replaced with a new APIget_auth_status()which provides the last known authentication status.
v.218
- New struct:
splayer_soundzone_tinsplayer_auth_api-1.hhas been added, containing information regarding a sound zone name and ID. - New API:
get_soundzone&free_soundzoneadded insplayer_auth_api-1.hto return the sound zone information of the player and free the result. - New API:
unpairinsplayer_auth_api-1.hadded to disconnect the player from its current sound zone.
v.213
- New function:
pair_with_code_syncadded tosplayer_auth_api-1.h. This is a convenience function that combinesinitiate_pair_with_codeandget_pairing_resultuntil a result is available. - Breaking change: Hard pairing has been removed from the API. From this version onwards, only soft pairing is supported. For details, see
splayer_auth_api-1.hand Connecting to a sound zone. - Example added: An interactive web connecting example has been added to
example_auth.c.
v.163
- SDK version update: Version update from
splayerapiv4 to v5. The old version v4 will no longer receive major updates.