Siêu dữ liệu đa phương tiện phổ biến được dùng như một phần của MediaInformation hoặc để mô tả một mục nội dung nghe nhìn như một phần của siêu dữ liệu vùng chứa.
Mục trong danh sách chờ chứa phần nội dung nghe nhìn này.
Chỉ phù hợp nếu được sử dụng trong các phần vùng chứa và có nhiều mục nội dung nghe nhìn cho vùng chứa đó.
sectionDuration
(số hoặc không xác định)
Thời lượng của phần nội dung đa phương tiện tính bằng giây. Chỉ cần thiết nếu siêu dữ liệu mô tả một phần của tệp nội dung nghe nhìn có giá trị thời lượng khác.
sectionStartAbsoluteTime
(số hoặc không xác định)
Một cách khác để cung cấp thời gian bắt đầu phần cho nội dung nghe nhìn trực tiếp.
Cung cấp thời gian bắt đầu ở Epoch time tính bằng giây.
sectionStartTimeInContainer
(số hoặc không xác định)
Độ lệch thời gian bắt đầu của phần nội dung nghe nhìn trong vùng chứa (tính bằng giây).
Nếu bạn không cung cấp, thì hệ thống sẽ giả định rằng mã này giống với nội dung đa phương tiện offset witnin.
sectionStartTimeInMedia
(số hoặc không xác định)
Thời gian bắt đầu phần nội dung nghe nhìn trong tệp nội dung nghe nhìn tính bằng giây.
Giá trị này có thể có giá trị âm nếu một phần bắt đầu trong tệp trước.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\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."]]