You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User 1 and User 2 joins the channel using joinChannelWithUserAccount
User 1 is from flutter web cant hear User 2 from unity but User 2 can hear User 1.
When speaking to the microphone using User 2 an error appears in User 1 saying "safeEmit event:user-info-updated error Error: TypeError: "{USERID}": type 'String' is not a subtype of type 'num?'"
Expected results
User 1(flutterweb) and User 2(unity) can hear each other
Actual results
User 1(flutterweb) can hear User 2(unity), but User 2(unity) can hear User 1(flutterweb)
joining of user in unity
// Enable the video module.
RtcEngine.EnableVideo();
RtcEngine.EnableAudio();
RtcEngine.EnableLocalVideo(false);
RtcEngine.EnableLocalAudio(true);
safeEmit event:user-info-updated error Error: TypeError: "{USERID}": type 'String' is not a subtype of type 'num?'
Flutter Doctor output
Doctor output
[Paste your output here]
The text was updated successfully, but these errors were encountered:
danilo1998271
changed the title
Error: TypeError: "E7ZX7w0XMzPIWEa4obLwL6aeDiH2": type 'String' is not a subtype of type 'num
Agora flutterweb Error: TypeError: "E7ZX7w0XMzPIWEa4obLwL6aeDiH2": type 'String' is not a subtype of type 'num
Jun 19, 2024
danilo1998271
changed the title
Agora flutterweb Error: TypeError: "E7ZX7w0XMzPIWEa4obLwL6aeDiH2": type 'String' is not a subtype of type 'num
Agora flutterweb Error: TypeError: "{USERID}": type 'String' is not a subtype of type 'num
Jun 19, 2024
@danilo1998271 When using a string uid, there is no issue with web-to-web communication. However, problems may arise when communicating between web and native platforms. It is recommended to use a numerical uid to avoid these issues.
Maybe we will fix this issues in the feature.
Version of the agora_rtc_engine
^6.3.2
Platforms affected
Steps to reproduce
Expected results
User 1(flutterweb) and User 2(unity) can hear each other
Actual results
User 1(flutterweb) can hear User 2(unity), but User 2(unity) can hear User 1(flutterweb)
Code sample
Code sample
[Paste your code here]
Screenshots or Video
joining of user in flutter web
_joinChannel() async {
isLiveSession.value = true;
await [
Permission.microphone,
].request();
if (kDebugMode) {
print("Agora RTC: joining channel");
}
await _engine.joinChannelWithUserAccount(
token: rtcToken,
channelId: rtcChannelName,
userAccount: authC.getUid(),
options: const ChannelMediaOptions(
publishScreenTrack: false,
publishSecondaryScreenTrack: true,
publishCameraTrack: false,
publishMicrophoneTrack: true,
publishScreenCaptureAudio: true,
publishScreenCaptureVideo: true,
publishRhythmPlayerTrack: true,
publishMediaPlayerAudioTrack: true,
publishMixedAudioTrack: true,
publishCustomAudioTrack: true,
autoSubscribeAudio: true,
enableAudioRecordingOrPlayout: true,
clientRoleType: ClientRoleType.clientRoleBroadcaster,
),
);
await _engine.adjustRecordingSignalVolume(100);
await _engine.adjustPlaybackSignalVolume(100);
await _engine.muteLocalAudioStream(false);
sessionStatusText.value = "Audio-only $sessionTypeText is running.";
}
joining of user in unity
// Enable the video module.
RtcEngine.EnableVideo();
RtcEngine.EnableAudio();
RtcEngine.EnableLocalVideo(false);
RtcEngine.EnableLocalAudio(true);
RtcEngine.SetParameters("{"che.audio.keep.audiosession": true}");
placeHolder.gameObject.SetActive(true);
placeHolder.text = "Joining session...";
remoteViewcover.SetActive(true);
LiveSessionPanel.SetActive(true);
// Set the user role as audience.
RtcEngine.SetClientRole(CLIENT_ROLE_TYPE.CLIENT_ROLE_BROADCASTER);
Debug.Log("Agora: Joining channel");
RtcEngine.RegisterLocalUserAccount(_appID, userId);
// Join a channel.
RtcEngine.JoinChannelWithUserAccount(token, channelName, userId);
RtcEngine.MuteLocalAudioStream(true);
Logs
safeEmit event:user-info-updated error Error: TypeError: "{USERID}": type 'String' is not a subtype of type 'num?'
Flutter Doctor output
Doctor output
[Paste your output here]
The text was updated successfully, but these errors were encountered: