# How to play a live streaming that enabled token authorization using GoCoder SDK?

**URL:** <https://community.wowza.com/t/how-to-play-a-live-streaming-that-enabled-token-authorization-using-gocoder-sdk/53536>\
**Category:** Wowza GoCoder SDK\
**Created:** [June 18, 2019, 2:48pm UTC](https://community.wowza.com/t/how-to-play-a-live-streaming-that-enabled-token-authorization-using-gocoder-sdk/53536 "2019-06-18T14:48:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![takanobu\_sugiyama](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@takanobu\_sugiyama](https://community.wowza.com/u/takanobu_sugiyama)\
**Post date:** [June 18, 2019, 2:48pm UTC](https://community.wowza.com/t/how-to-play-a-live-streaming-that-enabled-token-authorization-using-gocoder-sdk/53536/1 "2019-06-18T14:48:48Z")

</div>

Hi,

I’m trying to create an app that plays a live streaming from Wowza Streaming Cloud, I’ve just made contact with Support for token authorization to take effect.

While I’m waiting, I tried to find a documentation which explains how to play a live streaming with token authorization using GoCoder SDK ( I’m trying for iOS now but need to work on android later ), but couldn’t find it.

Where can I find?

Thank you.

---

<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:** [June 18, 2019, 7:50pm UTC](https://community.wowza.com/t/how-to-play-a-live-streaming-that-enabled-token-authorization-using-gocoder-sdk/53536/2 "2019-06-18T19:50:44Z")

</div>

Thanks for reaching out @takanobu sugiyama. In Cloud, token authorization is disabled by default. To use it…enable it, test it, and then generate your own query parameters to secure the stream as you choose.

Here is the doc you are looking for with some code samples on how to test it. it applies to streams using the GoCoder SDK as well.

[https://www.wowza.com/docs/how-to-protect-streams-with-token-authorization-by-using-the-wowza-streaming-cloud-rest-api#generate-the-hashed-token](https://www.wowza.com/docs/how-to-protect-streams-with-token-authorization-by-using-the-wowza-streaming-cloud-rest-api#generate-the-hashed-token)

---

<div class="post-metadata">

**Author:** ![takanobu\_sugiyama](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@takanobu\_sugiyama](https://community.wowza.com/u/takanobu_sugiyama)\
**Post date:** [June 19, 2019, 2:57pm UTC](https://community.wowza.com/t/how-to-play-a-live-streaming-that-enabled-token-authorization-using-gocoder-sdk/53536/3 "2019-06-19T14:57:07Z")

</div>

Thank you for the reply @Rose Power-Wowza Community Manager

Thank you for the doc for generating hashed token, I’ll try that after the token authorization is enabled.

For playback with GoCoder SDK, I couldn’t find where to set the token.

I found this documentation to play live stream with GoCoder SDK for iOS, but doesn’t explain about token authorization:

[https://www.wowza.com/docs/how-to-play-a-live-stream-with-wowza-gocoder-sdk-for-ios](https://www.wowza.com/docs/how-to-play-a-live-stream-with-wowza-gocoder-sdk-for-ios)

But found that I can set HLS fallback URL in this doc.

So do I need to set the fallback URL and put my token in to fallback URL to use token authorization?

meaning fallback URL is always used when token authorization is enabled?

Thanks.

---

<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:** [June 19, 2019, 8:05pm UTC](https://community.wowza.com/t/how-to-play-a-live-streaming-that-enabled-token-authorization-using-gocoder-sdk/53536/4 "2019-06-19T20:05:08Z")

</div>

I’m sorry- I misunderstood your original question. I looked at your ticket and will share the response for the rest of the community.

* * *

With Token Authorization/Geo Blocking, you go through the process of sending a request with the instructions you followed. Once you have done that, you submit a support ticket just asking for your request to be processed. We can then go into the provided stream target and manually process the request. It can take up to half an hour before the request is fully processed.

[https://www.wowza.com/docs/how-to-protect-streams-with-token-authorization-by-using-the-wowza-streaming-cloud-rest-api](https://www.wowza.com/docs/how-to-protect-streams-with-token-authorization-by-using-the-wowza-streaming-cloud-rest-api)

---

<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:** [June 19, 2019, 8:27pm UTC](https://community.wowza.com/t/how-to-play-a-live-streaming-that-enabled-token-authorization-using-gocoder-sdk/53536/5 "2019-06-19T20:27:48Z")

</div>

Looking into this for you…

---

<div class="post-metadata">

**Author:** ![takanobu\_sugiyama](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@takanobu\_sugiyama](https://community.wowza.com/u/takanobu_sugiyama)\
**Post date:** [June 21, 2019, 2:55pm UTC](https://community.wowza.com/t/how-to-play-a-live-streaming-that-enabled-token-authorization-using-gocoder-sdk/53536/6 "2019-06-21T14:55:05Z")

</div>

Thank you for the response @Rose Power-Wowza Community Manager

Yes, I could confirm that token authorization is enabled for my test streaming.

So I tested playback, I could play live streaming with the testing player app.

Then I found that I can play live streaming without any changes on the app.

Now I got the following three questions:

1. Don’t I need to care about token when I’m working with GoCoder SDK? ( iOS and android )

2. If I don’t need to care about token, how can I work with the tokens generated by us using GoCoder SDK?

3. Where can I find detailed documentation for working with token authorization using GoCoder SDK?

Sorry for many questions.

Thank you.

---

<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:** [June 21, 2019, 4:45pm UTC](https://community.wowza.com/t/how-to-play-a-live-streaming-that-enabled-token-authorization-using-gocoder-sdk/53536/7 "2019-06-21T16:45:33Z")

</div>

Waiting for a clear response from our SDK team and will post soon for you. Thanks for your patience.

---

<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:** [June 21, 2019, 7:19pm UTC](https://community.wowza.com/t/how-to-play-a-live-streaming-that-enabled-token-authorization-using-gocoder-sdk/53536/8 "2019-06-21T19:19:18Z")

</div>

Do a REST API call to get the token auth, then in the SDK code append the returned auth value.

Like this:

```auto
hdnts=exp=1461972009~acl=/*~hmac=de43455a65009cbb538495e5bc70c9565a3c559406c0c7bc2a1cfeaff9344706

```

See examples here:

[https://www.wowza.com/docs/how-to-protect-a-wowza-cdn-stream-target-with-token-authorization-in-wowza-streaming-cloud#example-apple-hls-playback-url-with-token-authorization](https://www.wowza.com/docs/how-to-protect-a-wowza-cdn-stream-target-with-token-authorization-in-wowza-streaming-cloud#example-apple-hls-playback-url-with-token-authorization)

---

<div class="post-metadata">

**Author:** ![takanobu\_sugiyama](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@takanobu\_sugiyama](https://community.wowza.com/u/takanobu_sugiyama)\
**Post date:** [June 25, 2019, 3:01pm UTC](https://community.wowza.com/t/how-to-play-a-live-streaming-that-enabled-token-authorization-using-gocoder-sdk/53536/9 "2019-06-25T15:01:42Z")

</div>

Thank you for your reply @Rose Power-Wowza Community Manager

Yes, I found that documentation and that is the beginning of my question.

I created a testing app referencing this documentation:

[https://www.wowza.com/docs/how-to-connect-to-wowza-streaming-cloud-with-gocoder-sdk-for-ios](https://www.wowza.com/docs/how-to-connect-to-wowza-streaming-cloud-with-gocoder-sdk-for-ios)

And I couldn’t find where to set the URL like in your reply.

```auto
hdnts=exp=1461972009~acl=/*~hmac=de43455a65009cbb538495e5bc70c9565a3c559406c0c7bc2a1cfeaff9344706

```

Then I found that I can set a URL **as a fallback** in this documentation:

[https://www.wowza.com/docs/how-to-play-a-live-stream-with-wowza-gocoder-sdk-for-ios](https://www.wowza.com/docs/how-to-play-a-live-stream-with-wowza-gocoder-sdk-for-ios)

Now I want to go back to my previous question:

1. Don’t I need to care about token when I’m working with GoCoder SDK? ( iOS and android )

2. If I don’t need to care about token, how can I work with the tokens generated by us using GoCoder SDK?

3. Where can I find detailed documentation for working with token authorization using GoCoder SDK?

Thank you for replying to my continuous questions.
