예제 #1
0
 public void OnLoadStarted(
     int sourceId,
     long length,
     int type,
     int trigger,
     Format format,
     long mediaStartTimeMs,
     long mediaEndTimeMs)
 {
     _loadStartTimeMs[sourceId] = SystemClock.ElapsedRealtime();
     if (VerboseLogUtil.IsTagEnabled(Tag))
     {
         Log.Verbose(Tag, "loadStart [" + GetSessionTimeString() + ", " + sourceId + ", " + type
                     + ", " + mediaStartTimeMs + ", " + mediaEndTimeMs + "]");
     }
 }
예제 #2
0
 public void OnLoadCompleted(
     int sourceId,
     long bytesLoaded,
     int type,
     int trigger,
     Format format,
     long mediaStartTimeMs,
     long mediaEndTimeMs,
     long elapsedRealtimeMs,
     long loadDurationMs)
 {
     if (VerboseLogUtil.IsTagEnabled(Tag))
     {
         long downloadTime = SystemClock.ElapsedRealtime() - _loadStartTimeMs[sourceId];
         Log.Verbose(Tag, "loadEnd [" + GetSessionTimeString() + ", " + sourceId + ", " + downloadTime
                     + "]");
     }
 }
예제 #3
0
 public void StartSession()
 {
     _sessionStartTimeMs = SystemClock.ElapsedRealtime();
     Log.Debug(Tag, "start [0]");
 }
예제 #4
0
 private string GetSessionTimeString()
 {
     return(GetTimeString(SystemClock.ElapsedRealtime() - _sessionStartTimeMs));
 }