آرایه TrackIds که باید فعال باشند. اگر ارائه نشود، آهنگ های فعال تغییر نمی کنند. اگر آرایه خالی باشد، هیچ آهنگی فعال نخواهد بود.
داده های سفارشی
(شیء غیر تهی یا تعریف نشده)
داده های ویژه برنامه برای این درخواست. فرستنده و گیرنده را قادر می سازد تا به راحتی پروتکل رسانه را بدون نیاز به استفاده از فضای نام جدید با پیام های سفارشی گسترش دهند.
برای فعال یا غیرفعال کردن آهنگ های متنی پرچم گذاری کنید. اگر نادرست باشد، تمام آهنگهای متن را غیرفعال میکند، اگر درست باشد، اولین آهنگ متنی یا آهنگهای متن فعال قبلی را فعال میکند. در صورت ارائه activeTrackIds یا زبان، این پرچم نادیده گرفته می شود.
زبان پیشنهادی است
(بولی یا تعریف نشده)
نشان می دهد که زبان ارائه شده درخواست صریح کاربر نبوده، بلکه از زبان استفاده شده در جستار صوتی استنباط شده است. این اجازه می دهد تا برنامه های گیرنده به جای زبان گفتاری از اولویت ذخیره شده کاربر استفاده کنند.
زبان
(رشته یا تعریف نشده)
زبان برای آهنگ هایی که باید فعال باشند. اگر هر دو مشخص شده باشند، فیلد زبان بر activeTrackIds اولویت دارد.
mediaSessionId
(تعداد یا تعریف نشده)
شناسه جلسه رسانه ای که درخواست برای آن اعمال می شود.
عددی برای همگام سازی تمام دستورات صف. اگر برای یک فرمان صف ارائه شده باشد، SDK تأیید خواهد کرد که آخرین شماره دنباله صف مطابق با درخواست است. sequenceNumber فعلی به عنوان بخشی از پیام های تغییر صف خروجی ارائه می شود.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003e\u003ccode\u003eEditTracksInfoRequestData\u003c/code\u003e is a class used for media event requests to edit track information, such as active tracks and text track settings.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003eactiveTrackIds\u003c/code\u003e, \u003ccode\u003elanguage\u003c/code\u003e, and \u003ccode\u003etextTrackStyle\u003c/code\u003e to specify desired track modifications.\u003c/p\u003e\n"],["\u003cp\u003eThe request data can also include \u003ccode\u003ecustomData\u003c/code\u003e for application-specific needs and \u003ccode\u003emediaSessionId\u003c/code\u003e to target a specific media session.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eenableTextTracks\u003c/code\u003e can be used to enable or disable text tracks, while \u003ccode\u003eisSuggestedLanguage\u003c/code\u003e helps the receiver app differentiate between user specified or inferred language.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits properties like \u003ccode\u003erequestId\u003c/code\u003e, \u003ccode\u003esequenceNumber\u003c/code\u003e, and \u003ccode\u003ecustomData\u003c/code\u003e from the \u003ccode\u003ecast.framework.messages.RequestData\u003c/code\u003e parent class.\u003c/p\u003e\n"]]],["`EditTracksInfoRequestData` manages media track adjustments. Key actions include setting `activeTrackIds` to control which tracks are active, using the `language` field to prioritize track selection, and enabling/disabling text tracks with `enableTextTracks`. It also supports `customData` for application-specific information. `isSuggestedLanguage` allows for inferred language preferences. `mediaSessionId`, `requestId`, and `sequenceNumber` support request tracking, with `textTrackStyle` managing text track display.\n"],null,["# Class: EditTracksInfoRequestData\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).EditTracksInfoRequestData\n==================================================================================================================================================================\n\nclass static\n\nMedia event EDIT_TRACKS_INFO request data.\n\nConstructor\n-----------\n\n### EditTracksInfoRequestData\n\nnew\nEditTracksInfoRequestData()\n\nExtends\n: [cast.framework.messages.RequestData](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData)\n\nProperties\n----------\n\n### activeTrackIds\n\n(non-null Array of number or undefined)\n\nArray of the Track trackIds that should be active. If it is not provided,\nthe active tracks will not change. If the array is empty, no track will\nbe active.\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### enableTextTracks\n\n(boolean or undefined)\n\nFlag to enable or disable text tracks.\nIf false it will disable all text tracks, if true it will enable the\nfirst text track, or the previous active text tracks.\nThis flag is ignored if activeTrackIds or language is provided.\n\n### isSuggestedLanguage\n\n(boolean or undefined)\n\nIndicates that the provided language was not explicit user request,\nbut rather inferred from used language in voice query.\nIt allows receiver apps to use user saved preference instead of\nspoken language.\n\n### language\n\n(string or undefined)\n\nLanguage for the tracks that should be active. The language field will\ntake precedence over activeTrackIds if both are specified.\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)\n\n### textTrackStyle\n\n([cast.framework.messages.TextTrackStyle](/cast/docs/reference/web_receiver/cast.framework.messages.TextTrackStyle) or undefined)\n\nThe requested text track style. If it is not provided the existing style\nwill be used (if no style was provided in previous calls, it will be the\ndefault receiver style)."]]