# How can I stop streaming?

**URL:** <https://community.wowza.com/t/how-can-i-stop-streaming/54727>\
**Category:** Wowza GoCoder SDK\
**Created:** [February 28, 2020, 2:34pm UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727 "2020-02-28T14:34:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Hooten1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_hooten1/32/524_2.png) [@Scott\_Hooten1](https://community.wowza.com/u/Scott_Hooten1)\
**Post date:** [February 28, 2020, 2:34pm UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/1 "2020-02-28T14:34:22Z")

</div>

I am going to start live streaming from OBS studio through pc and I want to stop that live streaming from my android application using Wowza Gocoder sdk. How can I do it? Please help me.

---

<div class="post-metadata">

**Author:** ![Amara\_Graham](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/amara_graham/32/381_2.png) [@Amara\_Graham](https://community.wowza.com/u/Amara_Graham)\
**Post date:** [February 28, 2020, 11:04pm UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/2 "2020-02-28T23:04:28Z")

</div>

Use the endStreaming method, more info here - [https://www.wowza.com/docs/how-to-live-stream-with-wowza-gocoder-sdk-for-android](https://www.wowza.com/docs/how-to-live-stream-with-wowza-gocoder-sdk-for-android)

---

<div class="post-metadata">

**Author:** ![Scott\_Hooten1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_hooten1/32/524_2.png) [@Scott\_Hooten1](https://community.wowza.com/u/Scott_Hooten1)\
**Post date:** [March 2, 2020, 3:53pm UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/3 "2020-03-02T15:53:06Z")

</div>

Hi Team ,

Thanks for quick response . We have already went through the given link and implemented this solutions to our project . But we stuck at one point, let me describe in detail .

We are using wowza **gocoder sdk** to stream from our app to **Wowzastreaming engine server** which is working fine .

Now we want to manage streams from external source like OBS studio . So in present scenario we are identified that stream has been started from OBS studio and we generated thumb using api from our APP .

**But we are unable to stop any streaming runningfromOBS studio source .**

We manually configured (host, port, streamname, username, password ) WowzaConfig just to get stream in active state so we can deactivate it .

After implementing above solution we stuck at the point where its not moving to active state from idle state . We want active state because then only we will be able to deactivate from wowza gocoder sdk.

We are also providing some screen which will help you to understand our scenario .

**Our main objective is to just stop active streaming from external source like OBS studio at the moment .**

![](https://www.wowza.com/community/storage/attachments/1874-2020-03-01-1.png)

Thank You ,

Scott

---

<div class="post-metadata">

**Author:** ![Scott\_Hooten1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_hooten1/32/524_2.png) [@Scott\_Hooten1](https://community.wowza.com/u/Scott_Hooten1)\
**Post date:** [March 9, 2020, 9:18pm UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/4 "2020-03-09T21:18:13Z")

</div>

Has anyone got a suggestion? (since the “endStreaming method” does not work here)

---

<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:** [March 9, 2020, 9:27pm UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/5 "2020-03-09T21:27:08Z")

</div>

Let me ask the engineers. Be back 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:** [March 9, 2020, 10:07pm UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/6 "2020-03-09T22:07:02Z")

</div>

So are you asking if you can stop the OBS stream from the GoCoder SDK and the answer is you cannot. There is no API call to connect the two. Are you using Streaming Cloud or Streaming Engine with the SDK? There may be a way to do it there as the middle man and stop the OBS stream as a publisher. Once that stops and disconnects there may be a way to build a listener for that action with the SDK.

Let me know if you’re using Cloud or Engine.

---

<div class="post-metadata">

**Author:** ![Scott\_Hooten1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_hooten1/32/524_2.png) [@Scott\_Hooten1](https://community.wowza.com/u/Scott_Hooten1)\
**Post date:** [March 10, 2020, 1:55am UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/7 "2020-03-10T01:55:26Z")

</div>

We start the stream using the app (gocoder sdk), pass the (url, stream name, and credentials) to OBS on the pc. The broadcaster streams to that url/stream address until finished, then the app is supposed to tell wowza to shut down the stream it created (using gocoder sdk), and then the broadcast is finished. It is the same as our regular broadcast except the stream is coming from OBS.

We are using Streaming engine.

---

<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:** [March 10, 2020, 1:57am UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/8 "2020-03-10T01:57:25Z")

</div>

Gotcha. Thanks for the additional info @Scott Hooten. Let me pass that info on.

---

<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:** [March 10, 2020, 2:01am UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/9 "2020-03-10T02:01:26Z")

</div>

One more question though. What version of the SDK are you using for Android? I see some things that have been deprecated.

---

<div class="post-metadata">

**Author:** ![Scott\_Hooten1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_hooten1/32/524_2.png) [@Scott\_Hooten1](https://community.wowza.com/u/Scott_Hooten1)\
**Post date:** [March 10, 2020, 2:11am UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/10 "2020-03-10T02:11:23Z")

</div>

It should be the latest version of the SDK. Which methods were being used but depreciated?

---

<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:** [March 10, 2020, 2:55am UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/11 "2020-03-10T02:55:18Z")

</div>

The WOWZStatus and WOWZStatusCallback classes are no longer publicly available.

For broadcast, as of version 1.9.0, use WOWZBroadcastStatus and WOWZBroadcastCallback classes with these states:

- BroadcastState.IDLE
- BroadcastState.READY
- BroadcastState.BROADCASTING (replaces WOWZStatus.RUNNING)

But, I don’t think it’s relevant here from what I can see.

---

<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:** [March 10, 2020, 2:59am UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/12 "2020-03-10T02:59:11Z")

</div>

So you did try this just to confirm:

```auto
// Stop the broadcast that is currently broadcasting
    goCoderBroadcaster.endBroadcast(this);

```

from here: [https://www.wowza.com/docs/how-to-build-a-basic-app-with-gocoder-sdk-for-android#add-broadcast-monitoring-callbacks](https://www.wowza.com/docs/how-to-build-a-basic-app-with-gocoder-sdk-for-android#add-broadcast-monitoring-callbacks)

---

<div class="post-metadata">

**Author:** ![Scott\_Hooten1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_hooten1/32/524_2.png) [@Scott\_Hooten1](https://community.wowza.com/u/Scott_Hooten1)\
**Post date:** [March 10, 2020, 3:05am UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/13 "2020-03-10T03:05:20Z")

</div>

Yes, that was attempted.

---

<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:** [March 10, 2020, 2:25pm UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/14 "2020-03-10T14:25:24Z")

</div>

Ok, I’ll have an engineer take a look. Thanks for the communication.

---

<div class="post-metadata">

**Author:** ![Scott\_Hooten1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_hooten1/32/524_2.png) [@Scott\_Hooten1](https://community.wowza.com/u/Scott_Hooten1)\
**Post date:** [March 10, 2020, 11:10pm UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/15 "2020-03-10T23:10:42Z")

</div>

Hi Rose, Any word from the engineer?

---

<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:** [March 10, 2020, 11:18pm UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/16 "2020-03-10T23:18:41Z")

</div>

I just sent another message to have someone reach out to you with an idea since we may not be the best SDK for this. Sorry they didn’t do it yet!

---

<div class="post-metadata">

**Author:** ![Scott\_Hooten1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_hooten1/32/524_2.png) [@Scott\_Hooten1](https://community.wowza.com/u/Scott_Hooten1)\
**Post date:** [March 11, 2020, 1:10am UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/17 "2020-03-11T01:10:55Z")

</div>

Im a bit all-in on the sdk, built everything around the gocoder sdk and the wowza streaming engine, so hope we can make it work. When we do broadcasts with our app using the camera phone (which works perfectly), the app does almost everything the same (creates new stream id, streams to the wowza server, finishes the stream) except when when using OBS the stream comes from there instead of the phones camera. So, we should be able to work this out.

---

<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:** [March 11, 2020, 8:32pm UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/18 "2020-03-11T20:32:49Z")

</div>

Scott, please check your email as the engineer sent you important information last night regarding the SDK. You may need to search your spam. The email was from Jamie Sherry at Wowza. Thanks.

---

<div class="post-metadata">

**Author:** ![Scott\_Hooten1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_hooten1/32/524_2.png) [@Scott\_Hooten1](https://community.wowza.com/u/Scott_Hooten1)\
**Post date:** [March 12, 2020, 2:05pm UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/19 "2020-03-12T14:05:00Z")

</div>

Its hard to believe that there would be no way to tell the Wowza server to shut down a stream. Our app’s feature set is 99% done, just need to fix this one bug. Hoping you can help me, since were pretty much married to wowza at this point. 🙂

---

<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:** [March 12, 2020, 2:23pm UTC](https://community.wowza.com/t/how-can-i-stop-streaming/54727/20 "2020-03-12T14:23:32Z")

</div>

No spam posts.

[Next page](https://community.wowza.com/t/how-can-i-stop-streaming/54727.md?page=2)
