داده های ویژه برنامه برای این درخواست. فرستنده و گیرنده را قادر می سازد تا به راحتی پروتکل رسانه را بدون نیاز به استفاده از فضای نام جدید با پیام های سفارشی گسترش دهند.
mediaSessionId
(تعداد یا تعریف نشده)
شناسه جلسه رسانه ای که درخواست برای آن اعمال می شود.
درخواست شناسه
عدد
شناسه درخواست، برای مرتبط کردن درخواست/پاسخ استفاده میشود.
شماره ترتیب
(تعداد یا تعریف نشده)
عددی برای همگام سازی تمام دستورات صف. اگر برای یک فرمان صف ارائه شده باشد، SDK تأیید خواهد کرد که آخرین شماره دنباله صف مطابق با درخواست است. sequenceNumber فعلی به عنوان بخشی از پیام های تغییر صف خروجی ارائه می شود.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003e\u003ccode\u003eRequestData\u003c/code\u003e objects encapsulate data for media event requests within the Cast framework.\u003c/p\u003e\n"],["\u003cp\u003eThese objects include details like request type, application-specific data, media session ID, request ID, and a sequence number for queue synchronization.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecustomData\u003c/code\u003e property allows for flexible extension of the media protocol by enabling the sender and receiver to exchange application-specific information.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003emediaSessionId\u003c/code\u003e, \u003ccode\u003erequestId\u003c/code\u003e, and \u003ccode\u003esequenceNumber\u003c/code\u003e provide identifiers and context for managing and tracking media requests within a session.\u003c/p\u003e\n"]]],["`RequestData` is a class for media event requests, requiring a non-null `type` upon construction. It includes `customData` for application-specific extensions, a `mediaSessionId` for the relevant media session, and a `requestId` for request/response correlation. It also uses `sequenceNumber` for synchronizing queue commands, ensuring that the queue's latest sequence number matches the request.\n"],null,["# Class: RequestData\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).RequestData\n====================================================================================================================================================\n\nclass static\n\nMedia event request data.\n\nConstructor\n-----------\n\n### RequestData\n\nnew\nRequestData(type)\n\n| #### Parameter ||\n|------|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| type | [cast.framework.messages.MessageType](/cast/docs/reference/web_receiver/cast.framework.messages#.MessageType) Request type. Value must not be null. |\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\n### mediaSessionId\n\n(number or undefined)\n\nId of the media session that the request applies to.\n\n### requestId\n\nnumber\n\nId of the request, used to correlate request/response.\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."]]