use of androidx.media3.exoplayer.analytics.AnalyticsListener.EventTime in project media by androidx.
the class DefaultAnalyticsCollector method onSeekBackIncrementChanged.
@Override
public void onSeekBackIncrementChanged(long seekBackIncrementMs) {
EventTime eventTime = generateCurrentPlayerMediaPeriodEventTime();
sendEvent(eventTime, AnalyticsListener.EVENT_SEEK_BACK_INCREMENT_CHANGED, listener -> listener.onSeekBackIncrementChanged(eventTime, seekBackIncrementMs));
}
use of androidx.media3.exoplayer.analytics.AnalyticsListener.EventTime in project media by androidx.
the class DefaultAnalyticsCollector method onCues.
@Override
public void onCues(List<Cue> cues) {
EventTime eventTime = generateCurrentPlayerMediaPeriodEventTime();
sendEvent(eventTime, AnalyticsListener.EVENT_CUES, listener -> listener.onCues(eventTime, cues));
}
use of androidx.media3.exoplayer.analytics.AnalyticsListener.EventTime in project media by androidx.
the class DefaultAnalyticsCollector method onAudioSessionIdChanged.
@Override
public final void onAudioSessionIdChanged(int audioSessionId) {
EventTime eventTime = generateReadingMediaPeriodEventTime();
sendEvent(eventTime, AnalyticsListener.EVENT_AUDIO_SESSION_ID, listener -> listener.onAudioSessionIdChanged(eventTime, audioSessionId));
}
use of androidx.media3.exoplayer.analytics.AnalyticsListener.EventTime in project media by androidx.
the class DefaultAnalyticsCollector method onMetadata.
@Override
public final void onMetadata(Metadata metadata) {
EventTime eventTime = generateCurrentPlayerMediaPeriodEventTime();
sendEvent(eventTime, AnalyticsListener.EVENT_METADATA, listener -> listener.onMetadata(eventTime, metadata));
}
use of androidx.media3.exoplayer.analytics.AnalyticsListener.EventTime in project media by androidx.
the class DefaultAnalyticsCollector method onPlayerStateChanged.
// Implementing and calling deprecated listener method.
@SuppressWarnings("deprecation")
@Override
public final void onPlayerStateChanged(boolean playWhenReady, @Player.State int playbackState) {
EventTime eventTime = generateCurrentPlayerMediaPeriodEventTime();
sendEvent(eventTime, /* eventFlag= */
C.INDEX_UNSET, listener -> listener.onPlayerStateChanged(eventTime, playWhenReady, playbackState));
}
Aggregations