Search in sources :

Example 6 with TrackSelectionArray

use of androidx.media3.common.TrackSelectionArray in project media by androidx.

the class DefaultAnalyticsCollector method onTracksChanged.

@Override
// Implementing and calling deprecate listener method
@SuppressWarnings("deprecation")
public final void onTracksChanged(TrackGroupArray trackGroups, TrackSelectionArray trackSelections) {
    EventTime eventTime = generateCurrentPlayerMediaPeriodEventTime();
    sendEvent(eventTime, AnalyticsListener.EVENT_TRACKS_CHANGED, listener -> listener.onTracksChanged(eventTime, trackGroups, trackSelections));
}
Also used : EventTime(androidx.media3.exoplayer.analytics.AnalyticsListener.EventTime)

Aggregations

TrackSelectionArray (androidx.media3.common.TrackSelectionArray)4 TrackGroupArray (androidx.media3.common.TrackGroupArray)3 AnalyticsListener (androidx.media3.exoplayer.analytics.AnalyticsListener)3 Timeline (androidx.media3.common.Timeline)2 TrackGroup (androidx.media3.common.TrackGroup)2 TrackSelection (androidx.media3.common.TrackSelection)2 TracksInfo (androidx.media3.common.TracksInfo)2 SinglePeriodTimeline (androidx.media3.exoplayer.source.SinglePeriodTimeline)2 ActionSchedule (androidx.media3.test.utils.ActionSchedule)2 ExoPlayerTestRunner (androidx.media3.test.utils.ExoPlayerTestRunner)2 FakeMediaSource (androidx.media3.test.utils.FakeMediaSource)2 FakeTimeline (androidx.media3.test.utils.FakeTimeline)2 NoUidTimeline (androidx.media3.test.utils.NoUidTimeline)2 TestExoPlayerBuilder (androidx.media3.test.utils.TestExoPlayerBuilder)2 Test (org.junit.Test)2 SuppressLint (android.annotation.SuppressLint)1 Nullable (androidx.annotation.Nullable)1 MediaItem (androidx.media3.common.MediaItem)1 MediaMetadata (androidx.media3.common.MediaMetadata)1 Metadata (androidx.media3.common.Metadata)1