Class: GetItemsInfoRequestData

  • GetItemsInfoRequestData is a class used to request information about specific media items, identified by their itemIds.

  • It inherits properties like customData, mediaSessionId, requestId, and sequenceNumber from the cast.framework.messages.RequestData class for managing request context and application-specific data.

  • The constructor requires an array of itemIds representing the media items for which information is sought.

  • GetItemsInfoRequestData facilitates communication within the Cast framework, enabling senders to request and receivers to provide details about media items.

Constructor

GetItemsInfoRequestData

new GetItemsInfoRequestData(itemIds)

Parameter

itemIds

Array of number

Value must not be null.

Extends
cast.framework.messages.RequestData

Properties

customData

(non-null Object or undefined)

Application-specific data for this request. It enables the sender and receiver to easily extend the media protocol without having to use a new namespace with custom messages.

Inherited from
cast.framework.messages.RequestData#customData

itemIds

non-null Array of number

List of item ids to be requested.

mediaSessionId

(number or undefined)

Id of the media session that the request applies to.

Inherited from
cast.framework.messages.RequestData#mediaSessionId

requestId

number

Id of the request, used to correlate request/response.

Inherited from
cast.framework.messages.RequestData#requestId

sequenceNumber

(number or undefined)

A number to synchronize all queue commands. If provided for a queue command, the SDK will verify the queue latest sequence number match the request. Current sequenceNumber is provided as part of outgoing queue changed messages.

Inherited from
cast.framework.messages.RequestData#sequenceNumber