Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

Since IOS SDK build 2.6.53 it is possible to set minimum and maximum publishing bitrate constrains using FPWCSApi2VideoConstraints.minBitrate, FPWCSApi2VideoConstraints.maxBitrate parameters. The bitrate constraints values are set in kbps.

ObjectiveC sample code

Code Block
- (FPWCSApi2MediaConstraints *)toMediaConstraints {
    FPWCSApi2MediaConstraints *ret = [[FPWCSApi2MediaConstraints alloc] init];
    if ([_sendVideo.control isOn]) {
        FPWCSApi2VideoConstraints *video = [[FPWCSApi2VideoConstraints alloc] init];
        video.minBitrate = [_minVideoBitrate.input.text integerValue];
        video.maxBitrate = [_maxVideoBitrate.input.text integerValue]; = video;
    return ret;