Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

[1.0.12] - 2025-09-30
* [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.
* [Android] Migrate from onSurfaceDestroyed to onSurfaceCleanup for SurfaceProducer.Callback.

[1.0.11] - 2025-08-13
* [Android] Added option to configure Android audio attributes in AudioFocusManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,20 @@ public void surfaceCreated(final TextureRegistry.SurfaceProducer producer) {
ThreadUtils.checkIsOnMainThread();
this.producer = producer;
this.producer.setCallback(
new TextureRegistry.SurfaceProducer.Callback() {
@Override
public void onSurfaceAvailable() {
// Do surface initialization here, and draw the current frame.
}
new TextureRegistry.SurfaceProducer.Callback() {
@Override
public void onSurfaceAvailable() {
// Do surface initialization here, and draw the current frame.
}

@Override
public void onSurfaceDestroyed() {
surfaceDestroyed();
}
}
);
@Override
public void onSurfaceCleanup() {
onSurfaceCleanup();
}
});
}

public void surfaceDestroyed() {
public void onSurfaceCleanup() {
ThreadUtils.checkIsOnMainThread();
final CountDownLatch completionLatch = new CountDownLatch(1);
releaseEglSurface(completionLatch::countDown);
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ description: Flutter WebRTC plugin for iOS/Android/Destkop/Web, based on GoogleW
version: 1.0.12
homepage: https://github.com/GetStream/webrtc-flutter
environment:
sdk: ">=3.3.0 <4.0.0"
flutter: ">=1.22.0"
sdk: ">=3.7.0 <4.0.0"
flutter: ">=3.28.0"

dependencies:
collection: ^1.17.0
Expand Down
Loading