fix(android): clear progress handler before adding new one

This commit is contained in:
olivier bouillet 2022-12-22 08:37:31 +01:00
parent 34b23dfdbd
commit c529f1ecad

View File

@ -1070,6 +1070,7 @@ class ReactExoplayerView extends FrameLayout implements
text += "ready"; text += "ready";
eventEmitter.ready(); eventEmitter.ready();
onBuffering(false); onBuffering(false);
clearProgressMessageHandler(); // ensure there is no other message
startProgressHandler(); startProgressHandler();
videoLoaded(); videoLoaded();
if (selectTrackWhenReady && isUsingContentResolution) { if (selectTrackWhenReady && isUsingContentResolution) {