Super-classe de données d'événement pour les événements de métadonnées minutés. Cela diffère de Id3Event dans la mesure où les métadonnées sont conservées au niveau du fichier manifeste, et non au niveau des éléments internes du segment.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[[["\u003cp\u003e\u003ccode\u003eTimedMetadataEvent\u003c/code\u003e is a superclass for timed metadata events, differentiating from \u003ccode\u003eId3Event\u003c/code\u003e by holding metadata at the manifest level instead of within segments.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a constructor that takes the event type and timed metadata information as parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etimedMetadataInfo\u003c/code\u003e property provides access to the associated timed metadata information, ensuring it's always available and of the \u003ccode\u003ecast.framework.TimedMetadata\u003c/code\u003e type.\u003c/p\u003e\n"]]],["The `TimedMetadataEvent` class is the event data superclass for timed metadata events, where metadata is stored in the manifest, unlike `Id3Event`. It is constructed with the event `type` and `timedMetadataInfo`. `timedMetadataInfo`, a constant property, holds the non-null `TimedMetadata` information. The constructor takes the event type (from `cast.framework.events.EventType`) and the timed metadata as parameters, both of which must be non-null.\n"],null,["# Class: TimedMetadataEvent\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[events](/cast/docs/reference/web_receiver/cast.framework.events).TimedMetadataEvent\n=======================================================================================================================================================\n\nclass static\n\nEvent data superclass for timed metadata events. This differs from `Id3Event`\nin that the metadata is held at the manifest as opposed to segment internals.\n\nConstructor\n-----------\n\n### TimedMetadataEvent\n\nnew\nTimedMetadataEvent(type, timedMetadataInfo)\n\n| #### Parameter ||\n|-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| type | [cast.framework.events.EventType](/cast/docs/reference/web_receiver/cast.framework.events#.EventType) Type of this event. Value must not be null. |\n| timedMetadataInfo | [cast.framework.TimedMetadata](/cast/docs/reference/web_receiver/cast.framework.TimedMetadata) The timed metadata. Value must not be null. |\n\nProperty\n--------\n\n### timedMetadataInfo\n\nconstant\n\nnon-null [cast.framework.TimedMetadata](/cast/docs/reference/web_receiver/cast.framework.TimedMetadata)\n\nThe timed metadata information."]]