You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created live streaming on agora android. Before opening the live activity I always check from server if token is valid and if no generate new token using the agora php SDK like below.
And call rtcEngine().renewToken("tokeFromServer..."); then also set the channel name which I used in generating token 'config().setChannelName(liveName);, yet it doesn't work except when i add the token in string_config.xml. I also tried adding the token which I generated from agora server to a static string then pass it tortcEngine().renewToken("tokeFromServerStatic");` but it seems not working.
Please how do I renewToken before starting live?
The text was updated successfully, but these errors were encountered:
@peterujah just generate a new token every time, renewToken is used if you have already joined channel, while the live broadcasting is so long that it exceeds the expire time you set for the original token, there will be a tokenWillExpire callback from sdk and then you call renewToken to renew it while in channel.
This is usually not needed, just generate a new token every time.
I created live streaming on agora android. Before opening the live activity I always check from server if token is valid and if no generate new token using the agora php SDK like below.
And call
rtcEngine().renewToken("tokeFromServer...");
then also set the channel name which I used in generating token 'config().setChannelName(liveName);, yet it doesn't work except when i add the token in
string_config.xml. I also tried adding the token which I generated from agora server to a static string then pass it to
rtcEngine().renewToken("tokeFromServerStatic");` but it seems not working.Please how do I renewToken before starting live?
The text was updated successfully, but these errors were encountered: