peakBitrate

The peak bitrate in bits per second, or {@link #NO_VALUE} if unknown or not applicable. The way in which this field is populated depends on the type of media to which the format corresponds:

  • DASH representations: The {@code @bandwidth} attribute of the corresponding {@code Representation} element in the manifest.
  • HLS variants: The {@code BANDWIDTH} attribute defined on the corresponding {@code EXT-X-STREAM-INF} tag.
  • SmoothStreaming track elements: Always {@link Format#NO_VALUE}.
  • Progressive container formats: Often {@link Format#NO_VALUE}, but may be populated with the peak bitrate of the container if known.
  • Sample formats: Often {@link Format#NO_VALUE}, but may be populated with the peak bitrate of the stream of samples with type {@link #sampleMimeType} if known. Note that if {@link #sampleMimeType} is a compressed format (e.g., {@link MimeTypes#AUDIO_AAC}), then this bitrate is for the stream of still compressed samples.