عنوان URL اختياري للصورة ليتم عرضه عند تحميل الفيديو
queueItemId
(رقم أو غير محدد)
عنصر "قائمة المحتوى التالي" الذي يتضمّن قسم الوسائط هذا
ويكون هذا الإجراء ملائمًا فقط إذا تم استخدامه في أقسام الحاويات، وإذا كانت هناك
عناصر وسائط متعددة للحاوية.
sectionDuration
(رقم أو غير محدد)
مدة قسم الوسائط بالثواني. ويجب تنفيذ هذا الإجراء فقط إذا كانت البيانات الوصفية تصف قسمًا من ملف الوسائط يحتوي على قيمة مدة مختلفة.
sectionStartAbsoluteTime
(رقم أو غير محدد)
طريقة بديلة لتوفير وقت بدء القسم للوسائط المباشرة
تقدِّم هذه السمة وقت البدء بتوقيت حقبة UNIX (بالثانية منذ حقبة Unix).
sectionStartTimeInContainer
(رقم أو غير محدد)
تتم إزاحة وقت بدء قسم الوسائط داخل الحاوية بالثواني.
وفي حال عدم توفير إطار العمل، يفترض أنّه مطابق للإزاحة
ضمن الوسائط.
sectionStartTimeInMedia
(رقم أو غير محدد)
وقت بدء قسم الوسائط داخل ملف الوسائط، بالثواني
ويمكن أن يكون هذا سلبيًا إذا بدأ قسم في ملف سابق.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003e\u003ccode\u003eMediaMetadata\u003c/code\u003e is a class used to describe common media information like title, artist, images, and more, within the Cast framework.\u003c/p\u003e\n"],["\u003cp\u003eIt can represent metadata for the entire media or for individual sections within a media file, like chapters or segments.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify the type of metadata, poster image URL, section duration, start times, and queue item ID using its properties.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emetadataType\u003c/code\u003e property is required and determines the kind of media being described (e.g., movie, TV show, music track).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMediaMetadata\u003c/code\u003e objects are used as part of \u003ccode\u003eMediaInformation\u003c/code\u003e or to define sections in container metadata.\u003c/p\u003e\n"]]],["The `MediaMetadata` class, part of the Cast framework, describes media and container sections. It's instantiated with a `MetadataType`. Key properties include `metadataType`, `posterUrl`, `queueItemId`, `sectionDuration`, `sectionStartAbsoluteTime` (for live media), `sectionStartTimeInContainer`, and `sectionStartTimeInMedia`. These properties define the type, loading image, related queue item, duration, and start times of media sections, including offsets within a container or the media file itself.\n"],null,["# Class: MediaMetadata\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).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 | [cast.framework.messages.MetadataType](/cast/docs/reference/web_receiver/cast.framework.messages#.MetadataType) Type of metadata. Value must not be null. |\n\nProperties\n----------\n\n### metadataType\n\nnon-null [cast.framework.messages.MetadataType](/cast/docs/reference/web_receiver/cast.framework.messages#.MetadataType)\n\nThe type of metadata.\n\n### posterUrl\n\n(string or undefined)\n\nOptional image URL to be shown when video is loading.\n\n### queueItemId\n\n(number or undefined)\n\nThe queue item that include this media section.\nThis is only relevant if used in container sections, and if there are\nmultiple media items for the container.\n\n### sectionDuration\n\n(number or undefined)\n\nThe media section duration in seconds. This is only required if the\nmetadata describes a section of the media file that has a different\nduration value.\n\n### sectionStartAbsoluteTime\n\n(number or undefined)\n\nAlternative way to provide the section start time for live media.\nProvides the start time in UNIX Epoch time (seconds since the Unix\nepoch).\n\n### sectionStartTimeInContainer\n\n(number or undefined)\n\nThe media section start time offset within the container, in seconds.\nIf not provided, the framework assumes that it's the same as the offset\nwithin the media.\n\n### sectionStartTimeInMedia\n\n(number or undefined)\n\nThe media section start time within the media file, in seconds.\nThis can be negative if a section started in previous file."]]