Code Monkey home page Code Monkey logo

Comments (14)

Meherdeep avatar Meherdeep commented on July 20, 2024 1

Yes, because the join channel function is using int uid for now. You can fork the repo and change the code accordingly.

from videouikit-flutter.

rlee1990 avatar rlee1990 commented on July 20, 2024

@Meherdeep any way to allow this? Or am I doing something wrong?

from videouikit-flutter.

Meherdeep avatar Meherdeep commented on July 20, 2024

@rlee1990 How are you generating your token?

from videouikit-flutter.

rlee1990 avatar rlee1990 commented on July 20, 2024

This is my token code:
I am using a firebase function. I can confirm a token is then created.

const channelId = data.channelId;
    const uid = data.uid;
    const isPublisher = data.isPublisher;

    const token = RtcTokenBuilder.buildTokenWithAccount(AGORA_APP_ID, AGORA_Cert, channelId, uid, isPublisher ? RtcRole.PUBLISHER : RtcRole.SUBSCRIBER, privilegeExpiredTs);
    return {'token': token};

from videouikit-flutter.

Meherdeep avatar Meherdeep commented on July 20, 2024

What error are you getting when you pass this token value to the tempToken parameter?

from videouikit-flutter.

rlee1990 avatar rlee1990 commented on July 20, 2024

Here is the error:
I/flutter (30663): onError: ErrorCode.InvalidToken
and the token: 006c1cc6f30444b4f628686efa644547e6eIAA5xEJgq23CIWylNCxs6X/m0cXu9iuh7ptIEXHaoWYrp6mNqbngNHC4IgBG8Wc8Oh7fYAQAAQDK2t1gAgDK2t1gAwDK2t1gBADK2t1g

@Meherdeep

from videouikit-flutter.

rlee1990 avatar rlee1990 commented on July 20, 2024

If I use this temp token that I generated from the site it works:
006c1cc6f30444b4f628686efa644547e6eIADA/q8OQEAzczW2w9TsLkEOjA03nn7sYYGBmjQMWCi9HqmNqbkAAAAAEACqPfBqTCHfYAEAAQBLId9g

from videouikit-flutter.

Meherdeep avatar Meherdeep commented on July 20, 2024

@rlee1990 Are you generating this using String uid?

from videouikit-flutter.

rlee1990 avatar rlee1990 commented on July 20, 2024

Yes I am @Meherdeep could that be the issue?

from videouikit-flutter.

rlee1990 avatar rlee1990 commented on July 20, 2024

Thanks will do.

from videouikit-flutter.

rlee1990 avatar rlee1990 commented on July 20, 2024

@Meherdeep My fork worked I only added an option for the string uid and still keep everything else if you want to use that when your looking to add it in.

from videouikit-flutter.

holy-dev avatar holy-dev commented on July 20, 2024

what should be the url in the tokenUrl: ""?

I'm using node to generate token, to generate token the URL goes something like this: site.com/generate_token?channel=test&uid=120&role=subscriber

from videouikit-flutter.

maxxfrazer avatar maxxfrazer commented on July 20, 2024

@holy-dev The token URL takes the base url of your token server, but it expects endpoint to match that found in the example token server here:
https://github.com/AgoraIO-Community/agora-token-service#rtc-token

from videouikit-flutter.

holy-dev avatar holy-dev commented on July 20, 2024

@maxxfrazer thanks, I solved it. The url format is hardcoded in the plugin.

from videouikit-flutter.

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.