Troubleshooting

Common issues and their solutions when working with ConoStream SDK.

Connection Issues

Cannot connect to room

Symptoms: Connection fails, timeout, or error callback received.

Solutions:

// Debug connection
Log.d("ConoStream", "URL: " + serverUrl);
Log.d("ConoStream", "Token: " + token.substring(0, 20) + "...");

Token expired error

Solution: Generate a new token from your backend before connecting. Tokens typically expire after 1 hour.

Audio Issues

Audio plays through earpiece instead of speaker

Cause: SDK defaults to call mode (earpiece).

Solution: Configure audio AFTER room connects:

manager.connect(url, token, new ConoStreamEventListener() {
    @Override
    public void onConnected() {
        // IMPORTANT: Configure audio after connection
        manager.configureAudioForSpeaker();
    }
});

No audio from remote participants

Solutions:

Echo or feedback

Solutions:

Video Issues

Black screen on video view

Solutions:

Video freezes

Solutions:

Camera switch doesn't work

// Ensure camera is enabled first
if (videoHelper.isCameraEnabled()) {
    videoHelper.switchCamera();
}

PK Battle Issues

Opponent video not showing

Solutions:

Both sides show same video

Cause: Opponent channel name is same as main room.

Solution: Ensure you're using the correct opponent's channel from your backend.

Audio continues after leaving PK

Solution: Call cleanup methods:

videoHelper.leavePkOpponentRoom();
videoHelper.cleanupPkRenderers();

Build Issues

AAR not found

// Ensure AAR is in app/libs/
implementation files('libs/conostream-android-sdk-release.aar')

Duplicate class error

Solution: Exclude duplicate dependencies:

implementation('...') {
    exclude group: 'com.google.protobuf'
}

minSdk version error

Solution: ConoStream requires minSdk 21 or higher.

Debug Logging

Enable debug logs to troubleshoot issues:

// Filter logcat by tag
adb logcat -s ConoStream:* WebRTC:*

Still Need Help?

📧

Contact support at support@conostream.nl with:
• Device model and Android version
• SDK version
• Logcat output
• Steps to reproduce the issue