عنصر "قائمة المحتوى التالي" الذي يتضمّن قسم الوسائط هذا
تكون هذه السمة مناسبة فقط إذا تم استخدامها في أقسام الحاويات، وإذا كانت هناك عناصر وسائط متعددة للحاوية.
sectionDuration
(رقم أو غير محدد)
مدة قسم الوسائط بالثواني. تكون مطلوبة فقط إذا كانت البيانات الوصفية
تصف قسمًا من ملف الوسائط له قيمة مدة
مختلفة.
sectionStartAbsoluteTime
(رقم أو غير محدد)
طريقة بديلة لتوفير وقت بدء القسم للوسائط المباشرة
لتوفير وقت البدء في وقت Epoch بالثواني.
sectionStartTimeInContainer
(رقم أو غير محدد)
تتم إزاحة وقت بدء قسم الوسائط داخل الحاوية بالثواني.
إذا لم يتم توفيرها، ستفترض أنّها متطابقة مع وسائط witnin للإزاحة.
sectionStartTimeInMedia
(رقم أو غير محدد)
وقت بدء قسم الوسائط داخل ملف الوسائط بالثواني.
ويمكن أن يكون هذا سلبيًا إذا بدأ قسم في ملف سابق.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003e\u003ccode\u003echrome.cast.media.MediaMetadata\u003c/code\u003e is a class that represents common media metadata, used to describe media information or sections within a media container.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003emetadataType\u003c/code\u003e, \u003ccode\u003equeueItemId\u003c/code\u003e, \u003ccode\u003esectionDuration\u003c/code\u003e, and others to define various aspects of the media content.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMediaMetadata\u003c/code\u003e constructor requires a \u003ccode\u003etype\u003c/code\u003e parameter specifying the type of metadata, such as movie, music track, or photo.\u003c/p\u003e\n"],["\u003cp\u003eIt has properties for specifying section start times and durations, useful for describing segments within a larger media file or live stream.\u003c/p\u003e\n"],["\u003cp\u003eWhile \u003ccode\u003etype\u003c/code\u003e property is deprecated, developers should now use the \u003ccode\u003emetadataType\u003c/code\u003e property instead for specifying the type of media.\u003c/p\u003e\n"]]],["The `MediaMetadata` class, part of `chrome.cast.media`, describes media information and sections. It is constructed with a `MetadataType`. Key properties include `metadataType` (type of metadata), `queueItemId` (relevant for container sections), `sectionDuration` (section's length), `sectionStartAbsoluteTime` (live media start time), `sectionStartTimeInContainer` (section's offset in container), and `sectionStartTimeInMedia` (section's offset in media file). `type` is deprecated in favor of `metadataType`. These properties define characteristics of media sections.\n"],null,["# Class: MediaMetadata\n\nchrome.[cast](/cast/docs/reference/web_sender/chrome.cast).[media](/cast/docs/reference/web_sender/chrome.cast.media).MediaMetadata\n===================================================================================================================================\n\nclass static\n\nCommon media metadata used as part of MediaInformation or to describe\na media section as part of the container metadata.\n\nConstructor\n-----------\n\n### MediaMetadata\n\nnew\nMediaMetadata(type)\n\n| #### Parameter ||\n|------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| type | [chrome.cast.media.MetadataType](/cast/docs/reference/web_sender/chrome.cast.media#.MetadataType) Type of metadata. Value must not be null. |\n\nProperties\n----------\n\n### metadataType\n\nnon-null [chrome.cast.media.MetadataType](/cast/docs/reference/web_sender/chrome.cast.media#.MetadataType)\n\nThe type of metadata.\n\n### queueItemId\n\n(number or undefined)\n\nThe queue item that include this media section.\nOnly relevant if used in container sections, and there are multiple\nmedia items for the container.\n\n### sectionDuration\n\n(number or undefined)\n\nThe media section duration in seconds. Only needed if the metadata\ndescribes a section of the media file that has a different duration\nvalue.\n\n### sectionStartAbsoluteTime\n\n(number or undefined)\n\nAlternative way to provide section start time for live media.\nProvides start time in Epoch time in seconds.\n\n### sectionStartTimeInContainer\n\n(number or undefined)\n\nThe media section start time offset within the container in seconds.\nIf not provided it assumes it's the same as the offset witnin media.\n\n### sectionStartTimeInMedia\n\n(number or undefined)\n\nThe media section start time within media file in seconds.\nThis can be negative if a section started in previous file.\n\n### type\n\nnon-null [chrome.cast.media.MetadataType](/cast/docs/reference/web_sender/chrome.cast.media#.MetadataType)\n\nThe type of metadata.\n\nDeprecated\n: Please use metadataType instead."]]