@@ -810,12 +810,12 @@ void FlutterPeerConnection::GetStats(
810
810
pc->GetStats (
811
811
receiver,
812
812
[result_ptr](const vector<scoped_refptr<MediaRTCStats>> reports) {
813
- EncodableList list;
813
+ std::vector<EncodableValue> list;
814
814
for (int i = 0 ; i < reports.size (); i++) {
815
- list.push_back (statsToMap (reports[i]));
815
+ list.push_back (EncodableValue ( statsToMap (reports[i]) ));
816
816
}
817
817
EncodableMap params;
818
- params[EncodableValue (" stats" )] = list;
818
+ params[EncodableValue (" stats" )] = EncodableValue ( list) ;
819
819
result_ptr->Success (EncodableValue (params));
820
820
},
821
821
[result_ptr](const char * error) {
@@ -828,16 +828,15 @@ void FlutterPeerConnection::GetStats(
828
828
for (auto sender : senders.std_vector ()) {
829
829
if (sender->track ()->id ().c_string () == track_id) {
830
830
found = true ;
831
- EncodableList list;
832
831
pc->GetStats (
833
832
sender,
834
833
[result_ptr](const vector<scoped_refptr<MediaRTCStats>> reports) {
835
- EncodableList list;
834
+ std::vector<EncodableValue> list;
836
835
for (int i = 0 ; i < reports.size (); i++) {
837
- list.push_back (statsToMap (reports[i]));
836
+ list.push_back (EncodablveValue ( statsToMap (reports[i]) ));
838
837
}
839
838
EncodableMap params;
840
- params[EncodableValue (" stats" )] = list;
839
+ params[EncodableValue (" stats" )] = EncodableValue ( list) ;
841
840
result_ptr->Success (EncodableValue (params));
842
841
},
843
842
[result_ptr](const char * error) {
@@ -852,12 +851,12 @@ void FlutterPeerConnection::GetStats(
852
851
} else {
853
852
pc->GetStats (
854
853
[result_ptr](const vector<scoped_refptr<MediaRTCStats>> reports) {
855
- EncodableList list;
854
+ std::vector<EncodableValue> list;
856
855
for (int i = 0 ; i < reports.size (); i++) {
857
- list.push_back (statsToMap (reports[i]));
856
+ list.push_back (EncodableValue ( statsToMap (reports[i]) ));
858
857
}
859
858
EncodableMap params;
860
- params[EncodableValue (" stats" )] = list;
859
+ params[EncodableValue (" stats" )] = EncodableValue ( list) ;
861
860
result_ptr->Success (EncodableValue (params));
862
861
},
863
862
[result_ptr](const char * error) {
0 commit comments