use of androidx.media3.exoplayer.analytics.AnalyticsListener.EventTime in project media by androidx.
the class DefaultAnalyticsCollector method onLoadCanceled.
@Override
public final void onLoadCanceled(int windowIndex, @Nullable MediaPeriodId mediaPeriodId, LoadEventInfo loadEventInfo, MediaLoadData mediaLoadData) {
EventTime eventTime = generateMediaPeriodEventTime(windowIndex, mediaPeriodId);
sendEvent(eventTime, AnalyticsListener.EVENT_LOAD_CANCELED, listener -> listener.onLoadCanceled(eventTime, loadEventInfo, mediaLoadData));
}
use of androidx.media3.exoplayer.analytics.AnalyticsListener.EventTime in project media by androidx.
the class DefaultAnalyticsCollector method onAvailableCommandsChanged.
@Override
public void onAvailableCommandsChanged(Player.Commands availableCommands) {
EventTime eventTime = generateCurrentPlayerMediaPeriodEventTime();
sendEvent(eventTime, AnalyticsListener.EVENT_AVAILABLE_COMMANDS_CHANGED, listener -> listener.onAvailableCommandsChanged(eventTime, availableCommands));
}
use of androidx.media3.exoplayer.analytics.AnalyticsListener.EventTime in project media by androidx.
the class DefaultAnalyticsCollector method onIsPlayingChanged.
@Override
public void onIsPlayingChanged(boolean isPlaying) {
EventTime eventTime = generateCurrentPlayerMediaPeriodEventTime();
sendEvent(eventTime, AnalyticsListener.EVENT_IS_PLAYING_CHANGED, listener -> listener.onIsPlayingChanged(eventTime, isPlaying));
}
use of androidx.media3.exoplayer.analytics.AnalyticsListener.EventTime in project media by androidx.
the class DefaultAnalyticsCollector method onPlaybackStateChanged.
@Override
public final void onPlaybackStateChanged(@Player.State int playbackState) {
EventTime eventTime = generateCurrentPlayerMediaPeriodEventTime();
sendEvent(eventTime, AnalyticsListener.EVENT_PLAYBACK_STATE_CHANGED, listener -> listener.onPlaybackStateChanged(eventTime, playbackState));
}
use of androidx.media3.exoplayer.analytics.AnalyticsListener.EventTime in project media by androidx.
the class DefaultAnalyticsCollector method onSkipSilenceEnabledChanged.
@Override
public final void onSkipSilenceEnabledChanged(boolean skipSilenceEnabled) {
EventTime eventTime = generateReadingMediaPeriodEventTime();
sendEvent(eventTime, AnalyticsListener.EVENT_SKIP_SILENCE_ENABLED_CHANGED, listener -> listener.onSkipSilenceEnabledChanged(eventTime, skipSilenceEnabled));
}
Aggregations