Comments (6)
Yes sorry for the delayed response. I was really busy these past few days. Yes, it seems to be working just fine now.
@maxxfrazer Thanks a lot for the help. I really appreciate it.
from videouikit-flutter.
addressed in AgoraIO-Community/agora-token-service#22
@waqadArshad to save yourself time, it might be easier to use Postman, or a similar tool for checking that your token server is running properly.
from videouikit-flutter.
The token is being generated when I am using the link in a browser. The thing is that there is no documentation stating, how that link is being used by the Agora UI Kit. I mean which parameters are being placed where inside the link, is not documented at all.
from videouikit-flutter.
@maxxfrazer and I think you should at least wait for the Author's answer before closing an issue.
from videouikit-flutter.
The correct URL for you and your colleague is:
"https://nikah----match.herokuapp.com"
This project is all open source, corresponding code is here:
https://github.com/AgoraIO-Community/Flutter-UIKit/blob/829db279ad14a4af6828cb522ca96b8c2a3dd9d4/lib/controllers/session_controller.dart#L631
I'd suggest modifying the local copy of that to print out the full URL that it uses, just to check. If it comes back with anything other than "https://nikah----match.herokuapp.com/rtc/test/publisher/uid/0"
, then we will have an issue.
This is a small dart script that uses the same code and prints the token correctly:
import 'package:http/http.dart' as http;
import 'dart:convert';
void main(List<String> arguments) {
getToken(
tokenUrl: "https://nikah----match.herokuapp.com",
channelName: "test",
uid: 0,
);
}
Future<void> getToken({
String? tokenUrl,
String? channelName,
int uid = 0,
}) async {
final response = await http
.get(Uri.parse('$tokenUrl/rtc/$channelName/publisher/uid/$uid'));
if (response.statusCode == 200) {
print(jsonDecode(response.body)['rtcToken']);
} else {
print(response.reasonPhrase);
print('Failed to generate the token : ${response.statusCode}');
}
}
from videouikit-flutter.
No answer from author… closing issue again
from videouikit-flutter.
Related Issues (20)
- Error in Thread 4 on xcode 17 HOT 1
- How i can add videowatermark in agora ui kit because i am able to add WatermarkOptions HOT 1
- [FEATURE] how can i implement floating window functionality with agora.
- BUG: Not receiving any Audio in Calls - Video is working fine HOT 3
- [FEATURE] Custom Loading Widget
- Please upgrade the package to support lints 3.0.0 HOT 1
- [BUG] disabledVideoWidget not working when layoutType is Layout.oneToOne
- Reduce AppSize After Integration of Agora UIKit HOT 1
- Upper FPS
- [BUG] HOT 3
- Importing issue. HOT 1
- Agora UI Kit is not compiling HOT 7
- compileReleaseKotlin Error HOT 1
- [BUG] How Can I Properly end a call? HOT 1
- If user mute/unmute audio main user window disappeared[BUG]
- Screen Sharing stop in between and required advance features (overlay and some what customisation)
- Show error on floating mood [BUG] HOT 1
- Integration with ActiveFence
- Live Broadcasting
- [BUG] oneToOne Layout Camera preview doesnt turn off for local user
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from videouikit-flutter.