کلاس: GetItemsInfoRequestData
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003e\u003ccode\u003eGetItemsInfoRequestData\u003c/code\u003e is a class used to request information about specific media items, identified by their \u003ccode\u003eitemIds\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits properties like \u003ccode\u003ecustomData\u003c/code\u003e, \u003ccode\u003emediaSessionId\u003c/code\u003e, \u003ccode\u003erequestId\u003c/code\u003e, and \u003ccode\u003esequenceNumber\u003c/code\u003e from the \u003ccode\u003ecast.framework.messages.RequestData\u003c/code\u003e class for managing request context and application-specific data.\u003c/p\u003e\n"],["\u003cp\u003eThe constructor requires an array of \u003ccode\u003eitemIds\u003c/code\u003e representing the media items for which information is sought.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetItemsInfoRequestData\u003c/code\u003e facilitates communication within the Cast framework, enabling senders to request and receivers to provide details about media items.\u003c/p\u003e\n"]]],["`GetItemsInfoRequestData` is a class for requesting information about specific items. It's constructed with a mandatory array of `itemIds`. The class includes `customData` for application-specific extensions. It inherits `mediaSessionId`, `requestId`, and `sequenceNumber` for managing and synchronizing requests. The `itemIds` is a list of numbers, and the class facilitates communication between the sender and receiver to enhance the media protocol. It can retrieve specific media information based on the requested IDs.\n"],null,["# Class: GetItemsInfoRequestData\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).GetItemsInfoRequestData\n================================================================================================================================================================\n\nclass static\n\nGet items info request data.\n\nConstructor\n-----------\n\n### GetItemsInfoRequestData\n\nnew\nGetItemsInfoRequestData(itemIds)\n\n| #### Parameter ||\n|---------|-----------------------------------------|\n| itemIds | Array of number Value must not be null. |\n\nExtends\n: [cast.framework.messages.RequestData](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData)\n\nProperties\n----------\n\n### customData\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\n### itemIds\n\nnon-null Array of number\n\nList of item ids to be requested.\n\n### mediaSessionId\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\n### requestId\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\n### sequenceNumber\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)"]]