# iOS SDK error - couldn't set audio bitrate - broadcast stops

**URL:** https://community.wowza.com/t/ios-sdk-error-couldnt-set-audio-bitrate-broadcast-stops/48959
**Category:** Wowza GoCoder SDK
**Created:** [June 9, 2017, 6:26pm UTC](https://community.wowza.com/t/ios-sdk-error-couldnt-set-audio-bitrate-broadcast-stops/48959 "2017-06-09T18:26:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Scott\_Harrah](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@Scott\_Harrah](https://community.wowza.com/u/Scott_Harrah)
#### Post date: [June 9, 2017, 6:26pm UTC](https://community.wowza.com/t/ios-sdk-error-couldnt-set-audio-bitrate-broadcast-stops/48959/1 "2017-06-09T18:26:33Z")

</div>

When attempting to begin the broadcast the stream stops immediately after publish begins. I know that the server is accepting streams because I’ve been able to connect to the wowza server with the Android SDK and I’ve connected to it with VideoCore for iOS as well.

The VideoToolbox error (-12902), according to Apple is kVTParameterErr

Permissions seem to be set up correctly. The preview displays, the flashlight toggles, and the camera switches front-to-back correctly, I just can’t initiate this broadcast.

Log Output:

```auto
Broadcast Message: Started
[package name] WowzaGoCoderSDK: @@@@@ Error creating VideoToolbox compression session: -12902
[package name] WowzaGoCoderSDK: couldn't set audio bit rate
[package name] WowzaGoCoderSDK: Using software Audio Converter from AudioConverterNewSpecific
[package name] WowzaGoCoderSDK: AAC Encode Bitrate: 192000
[package name] WowzaGoCoderSDK: AAC Converter buffer size: 32256
[package name] WowzaGoCoderSDK: Audio Capture initiated with capture format PCM
[package name] status Status is stopping  

```

---

<div class="post-metadata">

### Author: ![Scott\_Harrah](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@Scott\_Harrah](https://community.wowza.com/u/Scott_Harrah)
#### Post date: [June 19, 2017, 6:15pm UTC](https://community.wowza.com/t/ios-sdk-error-couldnt-set-audio-bitrate-broadcast-stops/48959/2 "2017-06-19T18:15:01Z")

</div>

Any ideas on this? I’d really rather not have to use a different broadcasting tool for iOS from Android.

---

<div class="post-metadata">

### Author: ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)
#### Post date: [June 23, 2017, 1:24am UTC](https://community.wowza.com/t/ios-sdk-error-couldnt-set-audio-bitrate-broadcast-stops/48959/3 "2017-06-23T01:24:07Z")

</div>

Do you get this error when using our sample app? If you are unable to replicate this on our sample app, then do please [send a support ticket](https://www.wowza.com/support/open-ticket) so that we can take a look at your code and how you are configuring your WowzaConfig object.

Michelle
