Tus Die
Tus Die

Reputation: 49

How to remove MediaItem after playing in Media3 ExoPlayer

I need callback that send event when was played ONE MediaItem (not all) Something like "OnNextMediaItemPlayCallback"

I had tried to find callback, but find one only for ALL MEDIA HAS BEEN PLAYED.

I need to remove media item when media item was played.

Upvotes: 0

Views: 396

Answers (1)

Tus Die
Tus Die

Reputation: 49

See the detecting transitions documentation:

Then playback transitions to another media item, or starts repeating the same media item, Listener.onMediaItemTransition(MediaItem, @MediaItemTransitionReason) is called

Upvotes: -1

Related Questions