Fixed issue preventing reinvite with video

This commit is contained in:
Sylvain Berfini 2021-03-24 14:27:55 +01:00
parent e97a68dda5
commit f2893093d1

View file

@ -347,15 +347,17 @@ public class CallManager {
Log.e("[Call Manager] Remote has low bandwidth, won't be able to do video");
return false;
}
if (call.getCurrentParams().videoEnabled()) {
Log.e("[Call Manager] Video is already enabled");
return false;
}
CallParams params = core.createCallParams(call);
if (params.videoEnabled()) return false;
// Check if video possible regarding bandwidth limitations
mBandwidthManager.updateWithProfileSettings(params);
// Abort if not enough bandwidth...
if (!params.videoEnabled()) {
Log.e("[Call Manager] Video can't be enabled");
return false;
}