From 68df02930b11cbe7a7b2c0dcd71b09c504a710df Mon Sep 17 00:00:00 2001 From: Daniel Novak Date: Tue, 29 Aug 2023 20:54:31 +0200 Subject: [PATCH] Fix onFirstFrameRendered() not called in VideoTextureViewRenderer --- .../io/getstream/webrtc/android/ui/VideoTextureViewRenderer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream-webrtc-android-ui/src/main/kotlin/io/getstream/webrtc/android/ui/VideoTextureViewRenderer.kt b/stream-webrtc-android-ui/src/main/kotlin/io/getstream/webrtc/android/ui/VideoTextureViewRenderer.kt index 434d87e1..bcd7112e 100644 --- a/stream-webrtc-android-ui/src/main/kotlin/io/getstream/webrtc/android/ui/VideoTextureViewRenderer.kt +++ b/stream-webrtc-android-ui/src/main/kotlin/io/getstream/webrtc/android/ui/VideoTextureViewRenderer.kt @@ -145,7 +145,7 @@ public open class VideoTextureViewRenderer @JvmOverloads constructor( * Updates the frame data and notifies [rendererEvents] about the changes. */ private fun updateFrameData(videoFrame: VideoFrame) { - if (isFirstFrameRendered) { + if (!isFirstFrameRendered) { rendererEvents?.onFirstFrameRendered() isFirstFrameRendered = true }