fix getLastReceivedStatistics method in react-native

This commit is contained in:
Taner Sener 2021-12-20 23:16:35 +00:00
parent 24e471de9e
commit 2fd7097e23

View File

@ -1788,7 +1788,7 @@ export class FFmpegSession extends AbstractSession {
let statistics = await this.getStatistics(); let statistics = await this.getStatistics();
if (statistics.length > 0) { if (statistics.length > 0) {
return statistics[0]; return statistics[statistics.length - 1];
} else { } else {
return undefined; return undefined;
} }