O item da fila que inclui esta seção de mídia.
É relevante somente se usado em seções de contêiner e houver vários itens de mídia para o contêiner.
sectionDuration
(número ou indefinido)
É a duração da seção de mídia em segundos. Necessário somente se os metadados
descreverem uma seção do arquivo de mídia com um valor de duração
diferente.
sectionStartAbsoluteTime
(número ou indefinido)
Forma alternativa de fornecer o horário de início da seção para mídia ao vivo.
Fornece o tempo de início em tempo de época em segundos.
sectionStartTimeInContainer
(número ou indefinido)
Ajuste de horário de início da seção de mídia no contêiner em segundos.
Se não for fornecido, ele presume que é igual ao deslocamento da mídia.
sectionStartTimeInMedia
(número ou indefinido)
É o horário de início da seção de mídia no arquivo de mídia, em segundos.
Poderá ser negativo se uma seção tiver começado no arquivo anterior.
[null,null,["Última atualização 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."]]