Coder Social home page Coder Social logo

Comments (10)

plutoless avatar plutoless commented on August 21, 2024

which uid did you set when you generate the token?

from tools.

klestovVlad avatar klestovVlad commented on August 21, 2024

i set 0 (zero)

from tools.

plutoless avatar plutoless commented on August 21, 2024

could you pls share your appid and generate a token which expires after 24 hours, so that i can try it out from my end?

from tools.

klestovVlad avatar klestovVlad commented on August 21, 2024

Yep
appId: ad8e2ff9eaec4faf9b5a4a2d833aa9a5
token: 007eJxTYPA2kTHZvcKX99eVtfckdt//lBxUzqWVECt7qs9tVri/6gEFhsQUi1SjtDTL1MTUZJO0xDTLJNNEk0SjFAtj48REy0TT2jyBlIZARgbhZAEmRgZGBhYgBvGZwCQzmGQBk+wMBTmpqak5xYwMBgDI/SIN

from tools.

plutoless avatar plutoless commented on August 21, 2024

@klestovVlad which channel are you generating with? btw this token also works on your android?

from tools.

klestovVlad avatar klestovVlad commented on August 21, 2024

@plutoless
i genenrating with channel: pleeels
and its work well on android

from tools.

plutoless avatar plutoless commented on August 21, 2024

@klestovVlad i'm not seeing any success channel join with this channel name in our backend, how do you know that you have successfully joined the channel?
btw maybe you can also share the code you used to generate token.

from tools.

klestovVlad avatar klestovVlad commented on August 21, 2024

@plutoless
We use PHP library for token generation, code is

$token = RtcTokenBuilder2::buildTokenWithUid($appID, $appCertificate, $channel, 0, RtcTokenBuilder2::ROLE_PUBLISHER, $expireTimeInSeconds, $expireTimeInSeconds);

from tools.

klestovVlad avatar klestovVlad commented on August 21, 2024

it seems that for the web you need to send the uid from the server along with the token and use it to connect. But this scheme does not work for android. For android it ionly works when uid is set to zero

from tools.

plutoless avatar plutoless commented on August 21, 2024

@klestovVlad For android it ionly works when uid is set to zero -> this uid refers to the one you used to generate token or the one you used to join channel?

from tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.