From 2fd7097e23e8e2f044751849fc18f249e41fd6e6 Mon Sep 17 00:00:00 2001 From: Taner Sener Date: Mon, 20 Dec 2021 23:16:35 +0000 Subject: [PATCH] fix getLastReceivedStatistics method in react-native --- react-native/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-native/src/index.js b/react-native/src/index.js index f0fd6ac..65e1659 100644 --- a/react-native/src/index.js +++ b/react-native/src/index.js @@ -1788,7 +1788,7 @@ export class FFmpegSession extends AbstractSession { let statistics = await this.getStatistics(); if (statistics.length > 0) { - return statistics[0]; + return statistics[statistics.length - 1]; } else { return undefined; }