I am using Online Subsystem EOS(UE5.6) to create a lobby with CreateSession, and the client searches for it using FindSession and connects via JoinSession. The connection is P2P.
The parameters used when calling CreateSession are as follows:
TSharedRef SessionSettings = MakeShared();
SessionSettings->bIsLANMatch = false;
SessionSettings->NumPublicConnections = 4;
SessionSettings->bShouldAdvertise = true;
SessionSettings->bUsesPresence = true;
SessionSettings->bAllowJoinViaPresence = true;
SessionSettings->bAllowJoinViaPresenceFriendsOnly = false;
SessionSettings->bAllowInvites = true;
SessionSettings->bAllowJoinInProgress = true;
SessionSettings->bIsDedicated = false;
SessionSettings->bUseLobbiesIfAvailable = true;
SessionSettings->bUseLobbiesVoiceChatIfAvailable = true;
SessionSettings->bUsesStats = true;
Audio from the host to the client works, but audio from the client to the host does not.
Below is the log from the host side. [000...5ce] represents the client.
I believe the issue is that it shows subscribed=[No] volume=[-1.000000].
There is also an error:
“The channel has already applied in another streaming process.”
I am having trouble identifying the cause.
LogEOSSDK: LogEOSRTC: RTCRoom Participant disconnected from room. ParticipantId=[000…5ce] LocalProductUserId=[000…d5d] RoomName=[conf+1196201942]
LogEOSVoiceChat: [0000022DA0B19E30] OnChannelParticipantLeft ChannelName=[conf+1196201942] PlayerName=[000…5ce]
LogEOSSDK: LogEOSRTC: RTCAudio StopRecording. LocalProductUserId=[000…d5d] RoomName=[conf+1196201942]
LogEOSVoiceChat: [0000022DA0B19E30] OnChannelAudioInputState ChannelName=[conf+1196201942] State=[EOS_RTCAIS_Idle]
LogEOSSDK: LogEOSRTC: RTCRoom Participant connected to room. ParticipantId=[000…5ce] LocalProductUserId=[000…d5d] RoomName=[conf+1196201942]
LogEOSSDK: LogEOSRTC: RTCRoom BlockParticipantPrivate. ParticipantId=[000…5ce] State=[Blocked] LocalProductUserId=[000…d5d] RoomName=[conf+1196201942]
LogEOSSDK: LogEOSRTC: RTCAudio UpdateReceiving. Target=[000…5ce] State=[Disabled] LocalProductUserId=[000…d5d] RoomName=[conf+1196201942]
LogEOSVoiceChat: [0000022DA0B19E30] OnChannelParticipantJoined ChannelName=[conf+1196201942] PlayerName=[000…5ce]
LogEOSSDK: LogEOSRTC: RTCAudio UpdateReceiving. Target=[000…5ce] State=[Enabled] LocalProductUserId=[000…d5d] RoomName=[conf+1196201942]
LogEOSVoiceChat: [0000022DA0B19E30] OnUpdateReceiving ChannelName=[conf+1196201942] PlayerName=[000…5ce] Success
LogEOSSDK: LogEOSRTC: RTCAudio UpdatedParticipantState ParticipantId=[000…5ce] subscribed=[No] volume=[50.000000]
LogEOSVoiceChat: [0000022DA0B19E30] OnUpdateParticipantVolume ChannelName=[conf+1196201942] PlayerName=[000…5ce] Success
LogEOSSDK: LogEOSRTC: RTCRoom BlockParticipant. ParticipantId=[000…5ce] State=[Unblocked] LocalProductUserId=[000…d5d] RoomName=[conf+1196201942]
LogEOSSDK: LogEOSRTC: RTCAudio StartRecording RequestedDevice=[{default_device}] ActualDevice=[{a3ed9185-1e02-411c-b11b-05d92f25cef4}] DeviceIndex=[4294967295] Channels=[2] SampleRate=[48000] LocalProductUserId=[000…d5d] RoomName=[conf+1196201942]
LogEOSSDK: LogEOSRTC: RTCRoom queried participant’s block status. ParticipantId=[000…5ce] Result=[unblocked] LocalProductUserId=[000…d5d] RoomName=[conf+1196201942]
LogEOSSDK: LogEOSRTC: RTCAudio UpdateReceiving. Target=[000…5ce] State=[Disabled] LocalProductUserId=[000…d5d] RoomName=[conf+1196201942]
LogEOSVoiceChat: [0000022DA0B19E30] OnChannelParticipantJoined ChannelName=[conf+1196201942] PlayerName=[000…5ce]
LogEOSSDK: LogEOSRTC: RTCAudio UpdateReceiving. Target=[000…5ce] State=[Enabled] LocalProductUserId=[000…d5d] RoomName=[conf+1196201942]
LogEOSSDK: Error: LogEOSRTC: LibRTCCore: Channel with provided context is already open.
LogEOSSDK: Warning: LogEOSRTC: RTCAudio Failed to subscribe audio. ParticipantId=[000…5ce] Result=[ErrorCode=[7002] ErrorDescription=[“The channel has already applied in another streaming process”]] LocalProductUserId=[000…d5d] RoomName=[conf+1196201942]
LogEOSVoiceChat: Warning: [0000022DA0B19E30] OnUpdateReceiving ChannelName=[conf+1196201942] PlayerName=[000…5ce] failed error=[EOS_NoChange]
LogEOSSDK: LogEOSRTC: RTCAudio UpdatedParticipantState ParticipantId=[000…5ce] subscribed=[No] volume=[50.000000]
LogEOSVoiceChat: [0000022DA0B19E30] OnUpdateParticipantVolume ChannelName=[conf+1196201942] PlayerName=[000…5ce] Success
LogEOSSDK: LogEOSRTC: RTCRoom BlockParticipant. ParticipantId=[000…5ce] State=[Unblocked] LocalProductUserId=[000…d5d] RoomName=[conf+1196201942]
LogEOSSDK: LogEOSRTC: RTCRoom Participant block according to block list status and client explicit block. Result=[EOS_Success] ParticipantId=[000…5ce] InBlockList=[true] ExplicitBlock=[false] Applied=[blocked]
LogEOSSDK: LogEOSRTC: RTCRoom BlockParticipantPrivate. ParticipantId=[000…5ce] State=[Unblocked] LocalProductUserId=[000…d5d] RoomName=[conf+1196201942]
LogEOSSDK: LogEOSRTC: RTCAudio UpdatedParticipantState ParticipantId=[000…5ce] subscribed=[Yes] volume=[-1.000000]
LogEOSSDK: LogEOSRTC: RTCAudio UpdatedParticipantState ParticipantId=[000…5ce] subscribed=[No] volume=[-1.000000]