View on GitHub

ickstream-docs

Public documentation about the ickStream Music Platform

Set the parameters which should be used to retrieve new tracks when QUEUE_DYNAMIC playback queue mode has been set with setPlaybackQueueMode method.

The result of this method is that the player will start retrieve tracks to be played based on the specified parameters and automatically add them to the playback queue.

The purpose is to be able to easily

It’s not mandatory for all content services to support all of these playlist types. So even if the controller specifies a long list of services the player might only be able to get tracks from a few of them because the rest might not support the selection parameter type specified.

Request:

{
    "jsonrpc": 2.0,
    "id": < A unique number used to correlate requests with responses, see JSON-RPC specification for more information >,
    "method": "setDynamicPlaybackQueueParameters",
    "params": {
        "services": [ <Tracks will only be retrieved from the specified services>
            {
                "service": <service identity>,
                "weight": <optional, weight as a float between 0.0 to 1.0, where not specified means 1.0>
                "selectionParameters": { <optional, selection parameters specific to a specific service
                                       this parameter overrides anything specified on the top level selectionParameters attributes>
                    "type": <Type of selection>,
                    "data": <JSON data that defines the selection logic>
                }
            },
            ...
        ],
        "numberOfLeadingItems": <Optional, number of tracks to get ahead of current position in the playback queue.
                                A default value of 10 should be used if not specified.>
        "maximumQueueLength": <Optional, maximum number of tracks totally in the playback queue. >
        "selectionParameters": { <selection parmeters, mandatory to specify unless specific selection parameters
                                               have been specified for each individual service under the services parameter>
            "type": <Type of selection>,
            "data": <JSON data that defines the selection logic>
        }
    }
}

Specific information:

Response:

{
    "jsonrpc": 2.0,
    "id": < The request identity >,
    "result": {
        "result": <true if tracks were successfully added >
        "playbackQueuePos": < Position of currently playing track within the playback queue >
    }
}

Category:Player Protocol