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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003e\u003ccode\u003eFetchItemsRequestData\u003c/code\u003e is used to request media items around a reference item within a media session.\u003c/p\u003e\n"],["\u003cp\u003eIt allows specifying the number of items to fetch before (\u003ccode\u003eprevCount\u003c/code\u003e) and after (\u003ccode\u003enextCount\u003c/code\u003e) a reference item (\u003ccode\u003eitemId\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe request includes standard properties like \u003ccode\u003erequestId\u003c/code\u003e, and optional ones like \u003ccode\u003ecustomData\u003c/code\u003e and \u003ccode\u003emediaSessionId\u003c/code\u003e for context.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFetchItemsRequestData\u003c/code\u003e inherits properties from \u003ccode\u003ecast.framework.messages.RequestData\u003c/code\u003e, providing additional functionalities like request sequencing.\u003c/p\u003e\n"]]],[],null,["cast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).FetchItemsRequestData \nclass static\n\nFetch items request data.\n\nConstructor\n\nFetchItemsRequestData\n\nnew\nFetchItemsRequestData(itemId, nextCount, prevCount)\n\n| Parameter ||\n|-----------|--------|\n| itemId | number |\n| nextCount | number |\n| prevCount | number |\n\nExtends\n: [cast.framework.messages.RequestData](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData)\n\nProperties\n\ncustomData\n\n(non-null Object or undefined)\n\nApplication-specific data for this request. It enables the sender and\nreceiver to easily extend the media protocol without having to use a new\nnamespace with custom messages.\n\nInherited from\n: [cast.framework.messages.RequestData#customData](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData#customData)\n\nitemId\n\nnumber\n\nID of the reference media item for fetching more items.\n\nmediaSessionId\n\n(number or undefined)\n\nId of the media session that the request applies to.\n\nInherited from\n: [cast.framework.messages.RequestData#mediaSessionId](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData#mediaSessionId)\n\nnextCount\n\nnumber\n\nNumber of items after the reference item to be fetched.\n\nprevCount\n\nnumber\n\nNumber of items before the reference item to be fetched.\n\nrequestId\n\nnumber\n\nId of the request, used to correlate request/response.\n\nInherited from\n: [cast.framework.messages.RequestData#requestId](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData#requestId)\n\nsequenceNumber\n\n(number or undefined)\n\nA number to synchronize all queue commands.\nIf provided for a queue command, the SDK will verify the queue latest\nsequence number match the request.\nCurrent sequenceNumber is provided as part of outgoing queue changed\nmessages.\n\nInherited from\n: [cast.framework.messages.RequestData#sequenceNumber](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData#sequenceNumber)"]]