fix getLastReceivedStatistics method in react-native
This commit is contained in:
parent
24e471de9e
commit
2fd7097e23
2
react-native/src/index.js
vendored
2
react-native/src/index.js
vendored
@ -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…
Reference in New Issue
Block a user