setMaxBitRate method

bool setMaxBitRate(
  1. int bitrate
)

Set the maximum bit rate of the player. This method may not work on windows.

Implementation

bool setMaxBitRate(int bitrate) {
  if (!disposed && bitrate >= 0 && bitrate != maxBitRate.value) {
    maxBitRate.value = bitrate;
    if (id.value != null) {
      _setMaxBitRate();
    }
    return true;
  }
  return false;
}