Code Monkey home page Code Monkey logo

agora-group-calling's People

Contributors

meherdeep avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

agora-group-calling's Issues

response.statusCode gives 404?

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');
}

}

Issue with uploading to iOS device

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!

<unknown>:0: error: could not build Objective-C module 'agora_rtc_engine'

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:

  1. Create a new flutter project
  2. Copy and paste your lib folder into the new project
  3. Copy and paste your pubspec.yaml dependencies into the new project and run get pub
  4. Add required permission to info.plist
  5. Run project on flutter iPhone simulator

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.

Video not showing

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.

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.