# Cannot stream live video

**URL:** <https://community.wowza.com/t/cannot-stream-live-video/52854>\
**Category:** Wowza GoCoder SDK\
**Created:** [February 14, 2019, 5:38pm UTC](https://community.wowza.com/t/cannot-stream-live-video/52854 "2019-02-14T17:38:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nguy\_n\_Ti\_n](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@Nguy\_n\_Ti\_n](https://community.wowza.com/u/Nguy_n_Ti_n)\
**Post date:** [February 14, 2019, 5:38pm UTC](https://community.wowza.com/t/cannot-stream-live-video/52854/1 "2019-02-14T17:38:32Z")

</div>

Hi everyone,

I have some problem when trying to use Wowza GoCoder SDK. I’m using sample from:

(1) iOS Sample from Github ([https://github.com/WowzaMediaSystems/gocoder-sdk-samples-ios](https://github.com/WowzaMediaSystems/gocoder-sdk-samples-ios))

(2) iOS sample from AppStore ([https://itunes.apple.com/vn/app/wowza-gocoder/id640338185?mt=8](https://itunes.apple.com/vn/app/wowza-gocoder/id640338185?mt=8))

(3) Android sample from Github ([https://github.com/WowzaMediaSystems/gocoder-sdk-samples-android](https://github.com/WowzaMediaSystems/gocoder-sdk-samples-android))

(4) Android sample from PlayStore ([https://play.google.com/store/apps/details?id=com.wowza.gocoder](https://play.google.com/store/apps/details?id=com.wowza.gocoder))

Right now I can only stream live video from sample (2), sample (1), (3), (4) return following error:

_{“level”: “error”, “code”: “NetStream.Publish.Failed”, “description”: “Not authorized to publish”, “clientid”: x.xxxxx+xx}_

Sample (3) also show me this error:

_A broadcast component reported the following error during the PREPARE\_FOR\_BROADCAST transition severity : ERROR error class : null error code : 0 description : The maximum no. of connection attempts has been reached_

(We 're using our own server).

Please let me know what this error is and how to fix it?

---

<div class="post-metadata">

**Author:** ![Jason\_Tuchler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_tuchler/32/462_2.png) [@Jason\_Tuchler](https://community.wowza.com/u/Jason_Tuchler)\
**Post date:** [April 19, 2019, 11:41pm UTC](https://community.wowza.com/t/cannot-stream-live-video/52854/2 "2019-04-19T23:41:45Z")

</div>

Hello @Nguyễn Tiến

_{“level”: “error”, “code”: “NetStream.Publish.Failed”, “description”: “Not authorized to publish”, “clientid”: x.xxxxx+xx}_

_You’ll need to add your Wowza Streaming Engine Application publish stream username/password combo to your BroadcastConfig._

_iOS:_ [https://www.wowza.com/docs/how-to-configure-a-broadcast-with-gocoder-sdk-for-ios#connection](https://www.wowza.com/docs/how-to-configure-a-broadcast-with-gocoder-sdk-for-ios#connection)

Please see username and password params.

Android: [https://www.wowza.com/docs/how-to-configure-a-broadcast-with-gocoder-sdk-for-android#connection](https://www.wowza.com/docs/how-to-configure-a-broadcast-with-gocoder-sdk-for-android#connection)

Please see setUsername and setPassword methods.

For the Playstore version of GoCoder, you’ll need to set this username / password combo in the Wowza gear icon -\> Connect to Wowza Streaming Engine -\> Source Authentication.

I would recommend testing with our free GoCoder SDK examples located [here](https://www.wowza.com/pricing/installer#gocodersdk-downloads).

Regards,

JasonT
