Skip to content

Commit

Permalink
[Android]TansparentRendering add encodeAlpha config and etc
Browse files Browse the repository at this point in the history
  • Loading branch information
xgfd3 committed Jun 27, 2024
1 parent 0662ab7 commit d6b06d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.util.Log;
Expand Down Expand Up @@ -472,7 +471,7 @@ public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if (buttonView == switchTransparentBackground) {
engine.enableVirtualBackground(isChecked,
new VirtualBackgroundSource(VirtualBackgroundSource.BACKGROUND_COLOR,
Color.TRANSPARENT, "",
0x00000000, "",
VirtualBackgroundSource.BLUR_DEGREE_HIGH),
new SegmentationProperty());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ private void joinChannel(String channelId) {
STANDARD_BITRATE,
VideoEncoderConfiguration.ORIENTATION_MODE.valueOf(((MainApplication) getActivity().getApplication()).getGlobalSettings().getVideoEncodingOrientation())
);
config.advanceOptions.encodeAlpha = true;
engine.setVideoEncoderConfiguration(config);

engine.setExternalVideoSource(true, true, Constants.ExternalVideoSourceType.VIDEO_FRAME);
Expand Down

0 comments on commit d6b06d1

Please sign in to comment.