fix getLastReceivedStatistics method in react-native

pull/294/head
Taner Sener 4 years ago
parent 24e471de9e
commit 2fd7097e23
  1. 2
      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;
}

Loading…
Cancel
Save