# Gocoder iOS SDK : WOWZStateStopping not replace?

**URL:** <https://community.wowza.com/t/gocoder-ios-sdk-wowzstatestopping-not-replace/54459>\
**Category:** Wowza GoCoder SDK\
**Created:** [January 16, 2020, 2:39pm UTC](https://community.wowza.com/t/gocoder-ios-sdk-wowzstatestopping-not-replace/54459 "2020-01-16T14:39:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeremie\_PERERA1](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@Jeremie\_PERERA1](https://community.wowza.com/u/Jeremie_PERERA1)\
**Post date:** [January 16, 2020, 2:39pm UTC](https://community.wowza.com/t/gocoder-ios-sdk-wowzstatestopping-not-replace/54459/1 "2020-01-16T14:39:39Z")

</div>

Hello,

I have read the release note for iOS SDK 1.9.0.

I see that the class WOWZStatus change to WOWZBroadcastStatus

The event change to, but I see that an event was not replace : WOWZStateStopping

On the documentation i only see 3 states : [https://www.wowza.com/resources/gocodersdk/docs/api-reference-ios/WOWZBroadcastStatus\_h/Classes/WOWZBroadcastStatus/#//apple\_ref/occ/tdef/WOWZBroadcastStatus/NS\_ENUM](https://www.wowza.com/resources/gocodersdk/docs/api-reference-ios/WOWZBroadcastStatus_h/Classes/WOWZBroadcastStatus/#//apple_ref/occ/tdef/WOWZBroadcastStatus/NS_ENUM)

[WOWZBroadcastStateIdle](https://www.wowza.com/resources/gocodersdk/docs/api-reference-ios/WOWZBroadcastStatus_h/Classes/WOWZBroadcastStatus/index.html#//apple_ref/doc/title:econst/WOWZBroadcastStatus/WOWZBroadcastStateIdle) = 0, WOWZBroadcastStateReady, WOWZBroadcastStateBroadcasting

I am using WOWZStateStopping, so how can do to migrate to the new version ? How can I trigger when the broadcast is stopping ?

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [January 16, 2020, 5:44pm UTC](https://community.wowza.com/t/gocoder-ios-sdk-wowzstatestopping-not-replace/54459/2 "2020-01-16T17:44:23Z")

</div>

Because it is a breaking change, you’ll need to make a copy of your current app files @Jeremie PERERA, download the 1.9.0 SDK and insert the new SDK license and bundle identifier in your app.

Where any old language for WOWZ State stopping may get auto populated, you need to change it and update it to the current states.

---

<div class="post-metadata">

**Author:** ![Jeremie\_PERERA1](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@Jeremie\_PERERA1](https://community.wowza.com/u/Jeremie_PERERA1)\
**Post date:** [January 16, 2020, 10:43pm UTC](https://community.wowza.com/t/gocoder-ios-sdk-wowzstatestopping-not-replace/54459/3 "2020-01-16T22:43:17Z")

</div>

i am sorry but i don’t understand your answer …

The state WOWZStateStopping exist with the new version to trigger when we stop the broadcast ?

Or something similar ?

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [January 16, 2020, 11:08pm UTC](https://community.wowza.com/t/gocoder-ios-sdk-wowzstatestopping-not-replace/54459/4 "2020-01-16T23:08:53Z")

</div>

Hi @Jeremie PERERA, I see what you’re saying. WOWZ StateStopping is not listed anymore in the API documentation, but says on our site it was not replaced. Let me check with tech support and I’ll be back very soon.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [January 16, 2020, 11:27pm UTC](https://community.wowza.com/t/gocoder-ios-sdk-wowzstatestopping-not-replace/54459/5 "2020-01-16T23:27:16Z")

</div>

Here is the correct answer for you @Jeremie PERERA You will use this state whenever the stream is not yet connected or when it is disconnected.

```auto
WOWZBroadcastStateIdle

```

```auto
  switch (goCoderStatus.state) {  

      case WOWZBroadcastStateIdle:
      statusMessage = @"The broadcast is stopped";
      break

```

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [January 16, 2020, 11:27pm UTC](https://community.wowza.com/t/gocoder-ios-sdk-wowzstatestopping-not-replace/54459/6 "2020-01-16T23:27:37Z")

</div>

Does that help you?

---

<div class="post-metadata">

**Author:** ![Jeremie\_PERERA1](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@Jeremie\_PERERA1](https://community.wowza.com/u/Jeremie_PERERA1)\
**Post date:** [January 17, 2020, 7:51am UTC](https://community.wowza.com/t/gocoder-ios-sdk-wowzstatestopping-not-replace/54459/7 "2020-01-17T07:51:27Z")

</div>

so the old state is just removed. I have to test and see what happens we I am missing the network etc…

---

<div class="post-metadata">

**Author:** ![Jeremie\_PERERA1](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@Jeremie\_PERERA1](https://community.wowza.com/u/Jeremie_PERERA1)\
**Post date:** [January 17, 2020, 11:55am UTC](https://community.wowza.com/t/gocoder-ios-sdk-wowzstatestopping-not-replace/54459/8 "2020-01-17T11:55:11Z")

</div>

Ok so before 1.9.0, when we are loosing network connection, WOWZStateStopping was triggered.

Now with 1.9.0, no state was triggered, only WOWZError, and you can stop writing the video. from their

```auto
- (void) onWOWZError:(WOWZBroadcastStatus *) goCoderStatus {

```
