meherdeep / agora-group-calling Goto Github PK
View Code? Open in Web Editor NEWA quickstart guide to making your own group video calling application using flutter
A quickstart guide to making your own group video calling application using flutter
I am using this function to get the token, passing a random channel name but it gives error 404?
Future getToken() async {
final response = await http.get(
Uri.parse(baseUrl + '/rtc/' + widget.channelName + '/publisher/uid/' + uid.toString()
// To add expiry time uncomment the below given line with the time in seconds
// + '?expiry=45'
),
);
if (response.statusCode == 200) {
setState(() {
token = response.body;
token = jsonDecode(token)['rtcToken'];
});
} else {
print('Failed to fetch the token');
}
}
Hi Meher,
When I am trying to run this app on my iOS device using Xcode, I received the following error:
Module 'agora_rtc_engine' not found
Do you know how to go about this?
And can I check with you which flutter and dart version you are using?
Thanks!
Hi Meher,
I cloned your project and ran it on flutter and it works completely fine. So I tried to duplicate some of the codes but I met with some error message.
Steps included to reproduce this error:
However, when I run the project on flutter, I'm met with the following error messages. Can you kindly advise me on what am I missing or doing wrongly? Your help is greatly appreciated!
Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 4.7s
Failed to build iOS app
Error output from Xcode build:
↳
objc[73438]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1fc65e518) and ?? (0x12afe82b8). One of the two will be used. Which one is undefined.
objc[73438]: Class AMSupportURLSession is implemented in both ?? (0x1fc65e568) and ?? (0x12afe8308). One of the two will be used. Which one is undefined.
** BUILD FAILED **
Xcode's output:
↳
warning: [CP] Unable to find matching .xcframework slice in '/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/AgoraRtcEngine_iOS/AgoraAIDenoiseExtension.xcframework AgoraAIDenoiseExtension framework ios-armv7_arm64 ios-x86_64-simulator' for the current build architectures (arm64 x86_64 i386).
warning: [CP] Unable to find matching .xcframework slice in '/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/AgoraRtcEngine_iOS/AgoraRtcKit.xcframework AgoraRtcKit framework ios-x86_64-simulator ios-armv7_arm64' for the current build architectures (arm64 x86_64 i386).
warning: [CP] Unable to find matching .xcframework slice in '/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/AgoraRtcEngine_iOS/Agoraffmpeg.xcframework Agoraffmpeg framework ios-armv7_arm64 ios-x86_64-simulator' for the current build architectures (arm64 x86_64 i386).
warning: [CP] Unable to find matching .xcframework slice in '/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/AgoraRtcEngine_iOS/AgoraCore.xcframework AgoraCore framework ios-armv7_arm64 ios-x86_64-simulator' for the current build architectures (arm64 x86_64 i386).
warning: [CP] Unable to find matching .xcframework slice in '/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/AgoraRtcEngine_iOS/AgoraSoundTouch.xcframework AgoraSoundTouch framework ios-x86_64-simulator ios-armv7_arm64' for the current build architectures (arm64 x86_64 i386).
warning: [CP] Unable to find matching .xcframework slice in '/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/AgoraRtcEngine_iOS/Agorafdkaac.xcframework Agorafdkaac framework ios-x86_64-simulator ios-armv7_arm64' for the current build architectures (arm64 x86_64 i386).
warning: [CP] Unable to find matching .xcframework slice in '/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/AgoraRtcEngine_iOS/AgoraDav1dExtension.xcframework AgoraDav1dExtension framework ios-x86_64-simulator ios-armv7_arm64' for the current build architectures (arm64 x86_64 i386).
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/agora_rtc_engine-umbrella.h"
^
/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:9: note: in file included from /Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:
#import "AgoraRtcEngineKit.h"
^
/Users/troylee/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-3.3.3/ios/Classes/Base/AgoraRtcEngineKit.h:9:9: error: 'AgoraRtcKit/AgoraRtcEngineKit.h' file not found
#import <AgoraRtcKit/AgoraRtcEngineKit.h>
^
<unknown>:0: error: could not build Objective-C module 'agora_rtc_engine'
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/agora_rtc_engine-umbrella.h"
^
/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:9: note: in file included from /Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:
#import "AgoraRtcEngineKit.h"
^
/Users/troylee/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-3.3.3/ios/Classes/Base/AgoraRtcEngineKit.h:9:9: error: 'AgoraRtcKit/AgoraRtcEngineKit.h' file not found
#import <AgoraRtcKit/AgoraRtcEngineKit.h>
^
<unknown>:0: error: could not build Objective-C module 'agora_rtc_engine'
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/agora_rtc_engine-umbrella.h"
^
/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:9: note: in file included from /Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:
#import "AgoraRtcEngineKit.h"
^
/Users/troylee/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-3.3.3/ios/Classes/Base/AgoraRtcEngineKit.h:9:9: error: 'AgoraRtcKit/AgoraRtcEngineKit.h' file not found
#import <AgoraRtcKit/AgoraRtcEngineKit.h>
^
<unknown>:0: error: could not build Objective-C module 'agora_rtc_engine'
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/agora_rtc_engine-umbrella.h"
^
/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:9: note: in file included from /Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:
#import "AgoraRtcEngineKit.h"
^
/Users/troylee/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-3.3.3/ios/Classes/Base/AgoraRtcEngineKit.h:9:9: error: 'AgoraRtcKit/AgoraRtcEngineKit.h' file not found
#import <AgoraRtcKit/AgoraRtcEngineKit.h>
^
<unknown>:0: error: could not build Objective-C module 'agora_rtc_engine'
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/agora_rtc_engine-umbrella.h"
^
/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:9: note: in file included from /Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:
#import "AgoraRtcEngineKit.h"
^
/Users/troylee/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-3.3.3/ios/Classes/Base/AgoraRtcEngineKit.h:9:9: error: 'AgoraRtcKit/AgoraRtcEngineKit.h' file not found
#import <AgoraRtcKit/AgoraRtcEngineKit.h>
^
<unknown>:0: error: could not build Objective-C module 'agora_rtc_engine'
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/agora_rtc_engine-umbrella.h"
^
/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:9: note: in file included from /Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:
#import "AgoraRtcEngineKit.h"
^
/Users/troylee/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-3.3.3/ios/Classes/Base/AgoraRtcEngineKit.h:9:9: error: 'AgoraRtcKit/AgoraRtcEngineKit.h' file not found
#import <AgoraRtcKit/AgoraRtcEngineKit.h>
^
<unknown>:0: error: could not build Objective-C module 'agora_rtc_engine'
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/agora_rtc_engine-umbrella.h"
^
/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:9: note: in file included from /Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:
#import "AgoraRtcEngineKit.h"
^
/Users/troylee/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-3.3.3/ios/Classes/Base/AgoraRtcEngineKit.h:9:9: error: 'AgoraRtcKit/AgoraRtcEngineKit.h' file not found
#import <AgoraRtcKit/AgoraRtcEngineKit.h>
^
<unknown>:0: error: could not build Objective-C module 'agora_rtc_engine'
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/agora_rtc_engine-umbrella.h"
^
/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:9: note: in file included from /Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:
#import "AgoraRtcEngineKit.h"
^
/Users/troylee/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-3.3.3/ios/Classes/Base/AgoraRtcEngineKit.h:9:9: error: 'AgoraRtcKit/AgoraRtcEngineKit.h' file not found
#import <AgoraRtcKit/AgoraRtcEngineKit.h>
^
<unknown>:0: error: could not build Objective-C module 'agora_rtc_engine'
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/agora_rtc_engine-umbrella.h"
^
/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:9: note: in file included from /Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:
#import "AgoraRtcEngineKit.h"
^
/Users/troylee/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-3.3.3/ios/Classes/Base/AgoraRtcEngineKit.h:9:9: error: 'AgoraRtcKit/AgoraRtcEngineKit.h' file not found
#import <AgoraRtcKit/AgoraRtcEngineKit.h>
^
<unknown>:0: error: could not build Objective-C module 'agora_rtc_engine'
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/agora_rtc_engine-umbrella.h"
^
/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:9: note: in file included from /Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:
#import "AgoraRtcEngineKit.h"
^
/Users/troylee/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-3.3.3/ios/Classes/Base/AgoraRtcEngineKit.h:9:9: error: 'AgoraRtcKit/AgoraRtcEngineKit.h' file not found
#import <AgoraRtcKit/AgoraRtcEngineKit.h>
^
<unknown>:0: error: could not build Objective-C module 'agora_rtc_engine'
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/agora_rtc_engine-umbrella.h"
^
/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:9: note: in file included from /Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:
#import "AgoraRtcEngineKit.h"
^
/Users/troylee/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-3.3.3/ios/Classes/Base/AgoraRtcEngineKit.h:9:9: error: 'AgoraRtcKit/AgoraRtcEngineKit.h' file not found
#import <AgoraRtcKit/AgoraRtcEngineKit.h>
^
<unknown>:0: error: could not build Objective-C module 'agora_rtc_engine'
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/agora_rtc_engine-umbrella.h"
^
/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:9: note: in file included from /Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:
#import "AgoraRtcEngineKit.h"
^
/Users/troylee/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-3.3.3/ios/Classes/Base/AgoraRtcEngineKit.h:9:9: error: 'AgoraRtcKit/AgoraRtcEngineKit.h' file not found
#import <AgoraRtcKit/AgoraRtcEngineKit.h>
^
<unknown>:0: error: could not build Objective-C module 'agora_rtc_engine'
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/agora_rtc_engine-umbrella.h"
^
/Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:9: note: in file included from /Users/troylee/AndroidStudioProjects/okepos_app/ios/Pods/Target Support Files/agora_rtc_engine/agora_rtc_engine-umbrella.h:14:
#import "AgoraRtcEngineKit.h"
^
/Users/troylee/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-3.3.3/ios/Classes/Base/AgoraRtcEngineKit.h:9:9: error: 'AgoraRtcKit/AgoraRtcEngineKit.h' file not found
#import <AgoraRtcKit/AgoraRtcEngineKit.h>
^
<unknown>:0: error: could not build Objective-C module 'agora_rtc_engine'
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'AgoraRtcEngine_iOS' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Flutter' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.
Both permission handler and Agora plugin need to be updated otherwise it doesnt work
I have followed the project and channel setup instructions found here
https://docs.agora.io/en/Video/run_demo_live_flutter?platform=Flutter
The app is running and it throws the following error.
W/GENP.0 (29450): type=1400 audit(0.0:225475): avc: denied { search } for name="thermal" dev="sysfs" ino=28010 scontext=u:r:untrusted_app_27:s0:c214,c256,c512,c768 tcontext=u:object_r:sysfs_therm:s0 tclass=dir permissive=0
E/libc (29450): Access denied finding property "net.dns1"
E/libc (29450): Access denied finding property "net.dns2"
E/libc (29450): Access denied finding property "net.dns3"
E/libc (29450): Access denied finding property "net.dns4"
The video streaming view is black, But the controls are working fine.
App closes immediately when trying to join a call
For me at least it only worked after I added the token also described here: https://docs.agora.io/en/Video/start_call_flutter?platform=Flutter.
Also I needed to add some entries in the Info.plist
for iOS.
Could open a PR if wanted.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.