Skip to content

Commit b52f283

Browse files
authored
Merge pull request #40 from GetStream/fix/use-egl-with-alpha-channel
fix: use egl configuration with alpha channel
2 parents 7a0f582 + 3deaede commit b52f283

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

22
# Changelog
33

4+
[1.0.12] - 2025-09-30
5+
* [Android] Changed the configuration used when creating EGL rendering context to one that supports alpha channel to fix an issue with Impeller blending background with video texture on some devices.
6+
47
[1.0.11] - 2025-08-13
58
* [Android] Added option to configure Android audio attributes in AudioFocusManager
69

android/src/main/java/io/getstream/webrtc/flutter/SurfaceTextureRenderer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public SurfaceTextureRenderer(String name) {
4040
}
4141

4242
public void init(final EglBase.Context sharedContext,
43-
RendererCommon.RendererEvents rendererEvents) {
44-
init(sharedContext, rendererEvents, EglBase.CONFIG_PLAIN, new GlRectDrawer());
43+
RendererCommon.RendererEvents rendererEvents) {
44+
init(sharedContext, rendererEvents, EglBase.CONFIG_RGBA, new GlRectDrawer());
4545
}
4646

4747
/**

android/src/main/java/io/getstream/webrtc/flutter/utils/EglUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public class EglUtils {
1919
public static synchronized EglBase getRootEglBase() {
2020
if (rootEglBase == null) {
2121
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
22-
rootEglBase = EglBase.createEgl10(EglBase.CONFIG_PLAIN);
22+
rootEglBase = EglBase.createEgl10(EglBase.CONFIG_RGBA);
2323
else
24-
rootEglBase = EglBase.create();
24+
rootEglBase = EglBase.create(null, EglBase.CONFIG_RGBA);
2525
}
2626

2727
return rootEglBase;

ios/stream_webrtc_flutter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
Pod::Spec.new do |s|
55
s.name = 'stream_webrtc_flutter'
6-
s.version = '1.0.11'
6+
s.version = '1.0.12'
77
s.summary = 'Flutter WebRTC plugin for iOS.'
88
s.description = <<-DESC
99
A new flutter plugin project.

macos/stream_webrtc_flutter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
Pod::Spec.new do |s|
55
s.name = 'stream_webrtc_flutter'
6-
s.version = '1.0.11'
6+
s.version = '1.0.12'
77
s.summary = 'Flutter WebRTC plugin for macOS.'
88
s.description = <<-DESC
99
A new flutter plugin project.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: stream_webrtc_flutter
22
description: Flutter WebRTC plugin for iOS/Android/Destkop/Web, based on GoogleWebRTC.
3-
version: 1.0.11
3+
version: 1.0.12
44
homepage: https://github.com/GetStream/webrtc-flutter
55
environment:
66
sdk: ">=3.3.0 <4.0.0"

0 commit comments

Comments
 (0)