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; }