File tree 1 file changed +2
-2
lines changed
media/libmediaplayerservice/nuplayer
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -553,7 +553,6 @@ void NuPlayerDriver::updateMetrics(const char *where) {
553
553
// getDuration() uses mLock
554
554
int duration_ms = -1 ;
555
555
getDuration (&duration_ms);
556
- mAnalyticsItem ->setInt64 (kPlayerDuration , duration_ms);
557
556
558
557
mPlayer ->updateInternalTimers ();
559
558
@@ -575,13 +574,14 @@ void NuPlayerDriver::updateMetrics(const char *where) {
575
574
// we also avoid any races within mAnalyticsItem machinery
576
575
Mutex::Autolock autoLock (mMetricsLock );
577
576
577
+ mAnalyticsItem ->setInt64 (kPlayerDuration , duration_ms);
578
+
578
579
mAnalyticsItem ->setInt64 (kPlayerPlaying , (playingTimeUs+500 )/1000 );
579
580
580
581
if (mRebufferingEvents != 0 ) {
581
582
mAnalyticsItem ->setInt64 (kPlayerRebuffering , (rebufferingTimeUs+500 )/1000 );
582
583
mAnalyticsItem ->setInt32 (kPlayerRebufferingCount , rebufferingEvents);
583
584
mAnalyticsItem ->setInt32 (kPlayerRebufferingAtExit , rebufferingAtExit);
584
-
585
585
}
586
586
587
587
mAnalyticsItem ->setCString (kPlayerDataSourceType , mPlayer ->getDataSourceType ());
You can’t perform that action at this time.
0 commit comments