সারিতে থাকা মিডিয়া আইটেমগুলির একটি তালিকা পুনরায় সাজানোর অনুরোধ৷
কনস্ট্রাক্টর
QueueReorderItemsRequest
নতুন QueueReorderItemsRequest(itemIdsToReorder)
প্যারামিটার
আইটেম আইডসটি পুনঃক্রম
সংখ্যার অ্যারে
পুনঃক্রমের জন্য মিডিয়া আইটেম আইডিগুলির তালিকা৷ শূন্য বা খালি হওয়া উচিত নয়।
মান শূন্য হতে হবে না.
বৈশিষ্ট্য
কাস্টম ডেটা
বাতিলযোগ্য বস্তু
রিসিভার অ্যাপ্লিকেশনের জন্য কাস্টম ডেটা।
সন্নিবেশ আগে
বাতিলযোগ্য সংখ্যা
আইটেমটির আইডি যা পুনরায় সাজানো তালিকার পরপরই অবস্থিত হবে। যদি শূন্য বা না পাওয়া যায়, তাহলে সারির শেষে পুনরায় সাজানো তালিকা যুক্ত করা হবে। এই আইডিটি আইটেমআইডি তালিকার একটি আইডি হতে পারে না।
আইটেম আইডি
সংখ্যার নন-নাল অ্যারে
মিডিয়া আইটেম আইডির তালিকা নতুন ক্রমানুসারে পুনরায় সাজাতে হবে। প্রদত্ত আইটেমগুলি তাদের বিদ্যমান ক্রম বজায় রাখবে (আইটেমগুলি পুনরায় সাজানো ছাড়া)। প্রদত্ত তালিকা insertBefore দ্বারা নির্ধারিত অবস্থানে ঢোকানো হবে।
উদাহরণ স্বরূপ:
যদি সন্নিবেশ পূর্বে নির্দিষ্ট করা না থাকে তাহলে বিদ্যমান সারি: "A","D","G","H","B","E" আইটেম আইডস: "D","H","B" নতুন অর্ডার: "A" "G","E", "D","H","B"
যদি সন্নিবেশ করার আগে "A" বিদ্যমান সারি হয়: "A","D","G","H","B" আইটেমআইড: "D","H","B" নতুন অর্ডার: "D","H ","B", "A","G","E"
যদি সন্নিবেশ করার আগে "G" হয় বিদ্যমান সারি: "A","D","G","H","B" আইটেমআইড: "D","H","B" নতুন অর্ডার: "A", "D" ","H","B","G","E"
কোনো আইটেম বিদ্যমান না থাকলে তা উপেক্ষা করা হবে। শূন্য বা খালি হওয়া উচিত নয়।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003echrome.cast.media.QueueReorderItemsRequest\u003c/code\u003e is used to change the playback order of media items within a queue on a cast receiver.\u003c/p\u003e\n"],["\u003cp\u003eIt requires a list of media item IDs (\u003ccode\u003eitemIds\u003c/code\u003e) to reorder and optionally an \u003ccode\u003einsertBefore\u003c/code\u003e item ID to specify the position in the queue.\u003c/p\u003e\n"],["\u003cp\u003eItems not specified in the \u003ccode\u003eitemIds\u003c/code\u003e array retain their original order relative to each other, with the reordered items inserted as a block.\u003c/p\u003e\n"],["\u003cp\u003eThe reordered items are placed before the item specified by \u003ccode\u003einsertBefore\u003c/code\u003e, or appended to the end of the queue if \u003ccode\u003einsertBefore\u003c/code\u003e is not provided or is invalid.\u003c/p\u003e\n"],["\u003cp\u003eCustom data can be passed to the receiver application using the \u003ccode\u003ecustomData\u003c/code\u003e property.\u003c/p\u003e\n"]]],["The `QueueReorderItemsRequest` class is used to rearrange media items within a queue. It requires an array of `itemIds` to specify the items and their new order. The `insertBefore` property determines where to place the reordered list; if null, it's appended to the end. Items not listed retain their positions, while non-existent items are ignored. Custom data for the receiver can be set. The reordered list will be in the position as specified in the `insertBefore` property.\n"],null,[]]