File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
android/src/main/java/com/oney/WebRTCModule Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ public static String statsToJSON(RTCStatsReport report) {
3535
3636 RTCStats stats = statsMap .get (key );
3737 builder
38- .append ("\" timestamp\" :\" " )
39- .append (stats .getTimestampUs ())
40- .append ("\" ,\" type\" :\" " )
38+ .append ("\" timestamp\" :" )
39+ .append (stats .getTimestampUs () / 1000.0 )
40+ .append (",\" type\" :\" " )
4141 .append (stats .getType ())
4242 .append ("\" ,\" id\" :\" " )
4343 .append (stats .getId ())
Original file line number Diff line number Diff line change @@ -339,9 +339,9 @@ - (NSString *)statsToJSON:(RTCStatisticsReport *)report
339339 [s appendString: @" \" ,{" ];
340340
341341 RTCStatistics *statistics = report.statistics [key];
342- [s appendString: @" \" timestamp\" :\" " ];
343- [s appendFormat: @" %f " , statistics.timestamp_us];
344- [s appendString: @" \" ,\" type\" :\" " ];
342+ [s appendString: @" \" timestamp\" :" ];
343+ [s appendFormat: @" %f " , statistics.timestamp_us / 1000.0 ];
344+ [s appendString: @" ,\" type\" :\" " ];
345345 [s appendString: statistics.type];
346346 [s appendString: @" \" ,\" id\" :\" " ];
347347 [s appendString: statistics.id ];
You can’t perform that action at this time.
0 commit comments