Class IcyHeaders

    • Field Detail

      • REQUEST_HEADER_ENABLE_METADATA_VALUE

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

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

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

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

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

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

        public final int metadataInterval
        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)
        Parameters:
        bitrate - See bitrate.
        genre - See genre.
        name - See See.
        url - See url.
        isPublic - See isPublic.
        metadataInterval - See metadataInterval.