-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross platform not working #281
Comments
maybe you use the same uid, and another one will be kicked out. |
i don't think so, but even if this is the case why its working for android-android and ios-ios ?
see after this i am sending a notification to other user's so that they can join the same channel. if something is missing or you need anything else then please let me know. |
which version of SDK you used. maybe you can provide the SDK log, you can refer to the |
we are using plugin version of
|
this version is too old, pls upgrade it. |
now i changed the agora_rtc_engine 3.3.2 now i am able to start stream from android and join in iOS its not working. i have checked the stream id i am passing its perfect also my android - android working & iOS- iOS not tested yet. you might encounter something i am missing or what ? |
could pls share your code about our SDK? |
for host :
for view on host :
|
for jointed user :
for view :
|
await _client.login(null, widget.channelName); why login with the |
pls refer to our example, it must work on different platforms. |
it is uid. and its working for Android - Android |
i have referred the example and changed my old code to the new latest 3.3.2. there is class changes as well as video view is also changed. |
I mean you can use our example to test on Android - iOS. |
ok will check and back to you! |
i tried with 2 android devices and it seems the example is not working for android-android audio seems playing but video is not working then i started one channel with my app and tried to join that channel from the example and that was working fine. i am not getting anything what is the issue here? |
which of example you used? |
|
pls use the |
maybe you can provide the SDK log file. |
what do you mean by sdk log file ? also i have used the |
you can refer to you should replicate the problem then pull the log file. |
worked on a first try but then again when i started it its the same as before. couldn't got the log file |
Why couldn't get the log file? |
Sorry for late response but so far i got this and i have some issues getting log files on both devices. i dont know where are they and how to check logs. ios-ios working android-android working ios(host) - Android(spectator) - working android(host) -ios(spectator) - sometimes not working |
hey if there is a function for clearCache or something like this or reseting the agora account like that would be much helpful we can try that. so far i know that first time its working perfectly but after first check android->ios seems trubling i am thinking might be possible some cache issues related to android in hosting agora rtc. |
here are the logs on android device in which i hosted the rtc session. although i couldn't find any log files in ios devices. |
@BhavyKoshti9spl Sorry for the late reply, we need the RTC SDK log too. |
Is this issue going to be fixed? This currently makes Agora unusable in production. Here can you find my sdk logs: #311 |
### host.dart
### join.dart
|
Hi Florian, //Form your iOS log, you enabled encryption Agora SDK ver 3.4.2 build 76955, built on May 11 2021 13:52:27 A couple of thing here, I would like to check on IOS and Android sides.
For follow up if needed, Regards, |
I'm using the same code to create the engine on iOS and Android. Is encryption enabled by default? Because I didn't enable it in my code. The code I'm using to create the engine:
The error occurs fairly random. Sometimes it doesn't occur at all. But there are times where this happens on every call. I will post the Android and iOS logs if I catch the error again. |
Hi Florian,
Thx, both Agora iOS and Android logs would definitely help when the faulty condition happening.
The other question I’m asking is the Agora AppId, it must be in your App config file. Please compare the values in IOS and Android one to see they’re the same or not.
For example, on Android
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="app_id" translatable="false">XXXXXXXXXXXXXX</string>>
<string name="agora_access_token" translatable="false"></string>
</resources>
On iOS,
struct KeyCenter {
static let AppId: String = "XXXXXXXXXXXXXXXXXXXX"
// assign token to nil if you have not enabled app certificate
static var Token: String? = nil
}
Regards,
..Vin
From: Florian Thiel ***@***.***>
Date: Monday, August 23, 2021 at 1:54 AM
To: AgoraIO/Agora-Flutter-SDK ***@***.***>
Cc: Vincent Su ***@***.***>, Comment ***@***.***>
Subject: Re: [AgoraIO/Agora-Flutter-SDK] Cross platform not working (#281)
I'm using the same code to create the engine on iOS and Android. Is encryption enabled by default? Because I didn't enable it in my code. The code I'm using to create the engine:
final token = (await _genAgoraToken.call({ 'trainingId': training.id })).data['token'];
_engine = await RtcEngine.create('xxx');
_engine!.setEventHandler(RtcEngineEventHandler(
joinChannelSuccess: joinChannelSuccess,
userJoined: userJoined,
userOffline: userOffline,
videoSizeChanged: videoSizeChanged,
localUserRegistered: localUserRegistered,
networkQuality: networkQuality,
error: (error) {
FirebaseCrashlytics.instance.recordFlutterError(FlutterErrorDetails(
exception: error,
library: 'agora_rtc_engine'
));
print('=== ERROR ===');
print(error);
print('=============');
},
warning: (warning) {
print('=== WARINING ===');
print(warning);
print('=============');
}
));
if (Client.instance.currentUser is Trainer)
await AgoraRtcRawdata.registerVideoFrameObserver((await _engine!.getNativeHandle())!);
// Set Video config
final config = VideoEncoderConfiguration();
config.dimensions = VideoDimensions(width: 1280, height: 720);
config.frameRate = VideoFrameRate.Fps24;
config.bitrate = 1710;
config.degradationPrefer = DegradationPreference.MaintainBalanced;
await _engine!.setVideoEncoderConfiguration(config);
await _engine!.registerLocalUserAccount('xxx', Client.instance.currentUser!.id);
await _engine!.enableAudio();
await _engine!.enableVideo();
await _engine!.joinChannelWithUserAccount(token, training.id, Client.instance.currentUser!.id);
The error occurs fairly random. Sometimes it doesn't occur at all. But there are times where this happens on every call. I will post the Android and iOS logs if I catch the error again.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAgoraIO%2FAgora-Flutter-SDK%2Fissues%2F281%23issuecomment-903570707&data=04%7C01%7Cvincent%40agora.io%7C035b018bb1084e56299608d9661360d6%7C602753743eaa49c283c3cc189d126981%7C0%7C0%7C637653056647657255%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=XhNJvPKI6g4Ez65RtEutH6%2FzWkDZdQy0IbE0OE3cwB8%3D&reserved=0>, or unsubscribe<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FASD33L2VXDLAY3763W5A3QDT6ID5ZANCNFSM4ZUR3AJA&data=04%7C01%7Cvincent%40agora.io%7C035b018bb1084e56299608d9661360d6%7C602753743eaa49c283c3cc189d126981%7C0%7C0%7C637653056647657255%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=CkTs9wYaHlUokxXKJRLWewsUch9ZkxbfaxaaMJxCmx8%3D&reserved=0>.
Triage notifications on the go with GitHub Mobile for iOS<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Cvincent%40agora.io%7C035b018bb1084e56299608d9661360d6%7C602753743eaa49c283c3cc189d126981%7C0%7C0%7C637653056647667212%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=bMkH7itQHhX0PtwcfCehPvbbRQ%2B7wtweffJbUOWLfk8%3D&reserved=0> or Android<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26utm_campaign%3Dnotification-email&data=04%7C01%7Cvincent%40agora.io%7C035b018bb1084e56299608d9661360d6%7C602753743eaa49c283c3cc189d126981%7C0%7C0%7C637653056647667212%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=8fTUZGpqvQu90TWrr8FWKGgacg%2BiY5%2FuyeVDIqkkvRk%3D&reserved=0>.
|
I don't have different config files for iOS and Android. I have one dart file which stores the AppId. So the AppId is the same on both platforms |
If you still face issues, please try upgrading to the new version to see if it works for you. |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue. |
while i create stream from the android it will be visible from the android device but not on the ios device.
same as if i create stream from the ios device then it is not visible from the android device but visible from ios device.
so mainly its not working on cross platform.
Please help.
however i am receiving all the messages from rtm but rtc seems not working on cross platform or i am missing something.
I have used this as code and implemented it.
The text was updated successfully, but these errors were encountered: