Class IcyHeaders

  • All Implemented Interfaces:
    Parcelable, Metadata.Entry

    @Deprecated
    public final class IcyHeaders
    extends Object
    implements Metadata.Entry
    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.
    ICY headers.
    • Field Detail

      • REQUEST_HEADER_ENABLE_METADATA_NAME

        public static final String REQUEST_HEADER_ENABLE_METADATA_NAME
        Deprecated.
        See Also:
        Constant Field Values
      • REQUEST_HEADER_ENABLE_METADATA_VALUE

        public static final String REQUEST_HEADER_ENABLE_METADATA_VALUE
        Deprecated.
        See Also:
        Constant Field Values
      • bitrate

        public final int bitrate
        Deprecated.
        Bitrate in bits per second ((icy-br * 1000)), or Format.NO_VALUE if the header was not present.
      • genre

        @Nullable
        public final String genre
        Deprecated.
        The genre (icy-genre).
      • name

        @Nullable
        public final String name
        Deprecated.
        The stream name (icy-name).
      • url

        @Nullable
        public final String url
        Deprecated.
        The URL of the radio station (icy-url).
      • isPublic

        public final boolean isPublic
        Deprecated.
        Whether the radio station is listed (icy-pub), or false if the header was not present.
      • metadataInterval

        public final int metadataInterval
        Deprecated.
        The interval in bytes between metadata chunks (icy-metaint), or C.LENGTH_UNSET if the header was not present.
    • Constructor Detail

      • IcyHeaders

        public IcyHeaders​(int bitrate,
                          @Nullable
                          String genre,
                          @Nullable
                          String name,
                          @Nullable
                          String url,
                          boolean isPublic,
                          int metadataInterval)
        Deprecated.
        Parameters:
        bitrate - See bitrate.
        genre - See genre.
        name - See See.
        url - See url.
        isPublic - See isPublic.
        metadataInterval - See metadataInterval.