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();
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user