use of com.android.ims.internal.IImsVideoCallProvider in project android_frameworks_opt_telephony by LineageOS.
the class ImsPhoneCallTracker method setVideoCallProvider.
@UnsupportedAppUsage
private void setVideoCallProvider(ImsPhoneConnection conn, ImsCall imsCall) throws RemoteException {
IImsVideoCallProvider imsVideoCallProvider = imsCall.getCallSession().getVideoCallProvider();
if (imsVideoCallProvider != null) {
// TODO: Remove this when we can better formalize the format of session modify requests.
boolean useVideoPauseWorkaround = mPhone.getContext().getResources().getBoolean(com.android.internal.R.bool.config_useVideoPauseWorkaround);
ImsVideoCallProviderWrapper imsVideoCallProviderWrapper = new ImsVideoCallProviderWrapper(imsVideoCallProvider);
if (useVideoPauseWorkaround) {
imsVideoCallProviderWrapper.setUseVideoPauseWorkaround(useVideoPauseWorkaround);
}
conn.setVideoProvider(imsVideoCallProviderWrapper);
imsVideoCallProviderWrapper.registerForDataUsageUpdate(this, EVENT_VT_DATA_USAGE_UPDATE, imsCall);
imsVideoCallProviderWrapper.addImsVideoProviderCallback(conn);
}
}
Aggregations