chore(server)!: default max bitrate unit to kbps (#15264)

default unit to kbps
This commit is contained in:
Mert 2025-01-11 23:09:19 -05:00 committed by GitHub
parent a39fbcb8ac
commit fef36e6a37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 1 deletions

View file

@ -272,7 +272,7 @@ export class BaseConfig implements VideoCodecSWConfig {
getBitrateUnit() {
const maxBitrate = this.getMaxBitrateValue();
return this.config.maxBitrate.trim().slice(maxBitrate.toString().length); // use inputted unit if provided
return this.config.maxBitrate.trim().slice(maxBitrate.toString().length) || 'k'; // use inputted unit if provided, else default to kbps
}
getMaxBitrateValue() {