Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

_Changes in the next release_

### Added

- media-player stable_id_support option.

### Changed

- Update entity documentation ([#61](https://github.com/unfoldedcircle/integration-node-library/pull/61)).
Expand Down
23 changes: 22 additions & 1 deletion lib/entities/media_player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,30 @@ export enum MediaPlayerOptions {
/** Additional commands the media-player supports, which are not covered in the feature list. */
SimpleCommands = "simple_commands",
/** Number of available volume steps for the set volume command and UI controls. */
VolumeSteps = "volume_steps"
VolumeSteps = "volume_steps",
/**
* Bit-field indicating if the `browse` and `search` commands support stable media IDs:
*
* - Bit 0: `browse` always returns stable ids.
* - Bit 1: `browse` supports stable ids with the `stable_ids` parameter.
* - Bit 2: `search` always returns stable ids.
* - Bit 3: `search` returns stable ids with the `stable_ids` parameter.
*
* Default if not provided: `browse` and `search` always return stable IDs (Bit 0 | Bit 2)
*/
StableIdSupport = "stable_id_support"
}

/**
* Bit-field indicating if the `browse` and `search` commands support stable media IDs.
*/
export const StableIdSupport = {
BrowseAlwaysStableIds: 1 << 0,
BrowseSupportsStableIdsParam: 1 << 1,
SearchAlwaysStableIds: 1 << 2,
SearchSupportsStableIdsParam: 1 << 3
} as const;

/**
* Pre-defined media content types.
*
Expand Down
Loading