AI-generated Key Takeaways
-
cast.framework.messages.FetchItemsRequestData is a class used for requesting media items with specific counts before and after a reference item.
-
It extends cast.framework.messages.RequestData and includes properties such as
itemId
,nextCount
, andprevCount
to specify the fetch criteria. -
The class constructor requires
itemId
,nextCount
, andprevCount
as parameters. -
It includes inherited properties like
customData
,mediaSessionId
,requestId
, andsequenceNumber
from RequestData.
cast.framework.messages. FetchItemsRequestData
Fetch items request data.
Constructor
FetchItemsRequestData
new FetchItemsRequestData(itemId, nextCount, prevCount)
Parameter |
|
---|---|
itemId |
number |
nextCount |
number |
prevCount |
number |
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
itemId
number
ID of the reference media item for fetching more items.
mediaSessionId
(number or undefined)
Id of the media session that the request applies to.
- Inherited from
- cast.framework.messages.RequestData#mediaSessionId
nextCount
number
Number of items after the reference item to be fetched.
prevCount
number
Number of items before the reference item to be fetched.
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