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.
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
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
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.
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
Looking into this for you…
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:
-
Don’t I need to care about token when I’m working with GoCoder SDK? ( iOS and android )
-
If I don’t need to care about token, how can I work with the tokens generated by us using GoCoder SDK?
-
Where can I find detailed documentation for working with token authorization using GoCoder SDK?
Sorry for many questions.
Thank you.
Waiting for a clear response from our SDK team and will post soon for you. Thanks for your patience.
Do a REST API call to get the token auth, then in the SDK code append the returned auth value.
Like this:
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
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
And I couldn’t find where to set the URL like in your reply.
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
Now I want to go back to my previous question:
-
Don’t I need to care about token when I’m working with GoCoder SDK? ( iOS and android )
-
If I don’t need to care about token, how can I work with the tokens generated by us using GoCoder SDK?
-
Where can I find detailed documentation for working with token authorization using GoCoder SDK?
Thank you for replying to my continuous questions.