Class DefaultContentMetadata

  • All Implemented Interfaces:
    ContentMetadata

    @Deprecated
    public final class DefaultContentMetadata
    extends Object
    implements ContentMetadata
    Deprecated.
    com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    Default implementation of ContentMetadata. Values are stored as byte arrays.
    • Constructor Detail

      • DefaultContentMetadata

        public DefaultContentMetadata()
        Deprecated.
      • DefaultContentMetadata

        public DefaultContentMetadata​(Map<String,​byte[]> metadata)
        Deprecated.
        Parameters:
        metadata - The metadata entries in their raw byte array form.
    • Method Detail

      • entrySet

        public Set<Map.Entry<String,​byte[]>> entrySet()
        Deprecated.
        Returns the set of metadata entries in their raw byte array form.
      • get

        @Nullable
        public final byte[] get​(String key,
                                @Nullable
                                byte[] defaultValue)
        Deprecated.
        Description copied from interface: ContentMetadata
        Returns a metadata value.
        Specified by:
        get in interface ContentMetadata
        Parameters:
        key - Key of the metadata to be returned.
        defaultValue - Value to return if the metadata doesn't exist.
        Returns:
        The metadata value.
      • get

        @Nullable
        public final String get​(String key,
                                @Nullable
                                String defaultValue)
        Deprecated.
        Description copied from interface: ContentMetadata
        Returns a metadata value.
        Specified by:
        get in interface ContentMetadata
        Parameters:
        key - Key of the metadata to be returned.
        defaultValue - Value to return if the metadata doesn't exist.
        Returns:
        The metadata value.
      • get

        public final long get​(String key,
                              long defaultValue)
        Deprecated.
        Description copied from interface: ContentMetadata
        Returns a metadata value.
        Specified by:
        get in interface ContentMetadata
        Parameters:
        key - Key of the metadata to be returned.
        defaultValue - Value to return if the metadata doesn't exist.
        Returns:
        The metadata value.
      • equals

        public boolean equals​(@Nullable
                              Object o)
        Deprecated.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object