From c529f1ecad6a9c1d88bdce4772f337072d8b4df1 Mon Sep 17 00:00:00 2001 From: olivier bouillet Date: Thu, 22 Dec 2022 08:37:31 +0100 Subject: [PATCH 1/2] fix(android): clear progress handler before adding new one --- .../main/java/com/brentvatne/exoplayer/ReactExoplayerView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java index 05b09d7a..05f612cd 100644 --- a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +++ b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java @@ -1070,6 +1070,7 @@ class ReactExoplayerView extends FrameLayout implements text += "ready"; eventEmitter.ready(); onBuffering(false); + clearProgressMessageHandler(); // ensure there is no other message startProgressHandler(); videoLoaded(); if (selectTrackWhenReady && isUsingContentResolution) { From 5b77a5ca209ec0ddc491adba480aefd435aada0a Mon Sep 17 00:00:00 2001 From: olivier bouillet Date: Thu, 22 Dec 2022 08:39:43 +0100 Subject: [PATCH 2/2] chore: update changeLog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d1f8827..57136fca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Version 6.0.0-alpha.5 + - Android: Fix publicated progress handler causing duplicated progress event [#2972](https://github.com/react-native-video/react-native-video/pull/2972) - Feature: Add VAST support for AVOD [#2923](https://github.com/react-native-video/react-native-video/pull/2923) - Sample: Upgrade react-native version of basic sample [#2960](https://github.com/react-native-video/react-native-video/pull/2960)