You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forgive me if this is fixed, I am waiting for 1.4.0-alpha02 to be released in a stable release. #1352.
I wrote a test that uses very short audio files. One is 7.34kB and the other is 7.15kB. They are both mp3 files and they trigger onMediaItemTransition about only 10% of the time.
This is the listener code
override fun onMediaItemTransition(mediaItem: MediaItem?, reason: Int) {
super.onMediaItemTransition(mediaItem, reason)
if (reason == MEDIA_ITEM_TRANSITION_REASON_AUTO) {
val id = mediaItem!!.mediaId.toLong()
observedCounts[id] = (observedCounts[id] ?: 0L) + 1
countDownLatch.countDown()
}
}
Attach listeners that override onMediaItemTransition to the Player. One listener adds one of two very short mp3 files every time the current one finishes, and the other listener will not get triggered every time one of the files is finished playing.
Expected result
onMediaItemTransition to be triggered every time a file finishes playing.
Actual result
onMediaItemTransition is not triggered every time a file finishes playing.
Media
I will have to wait until I can access the files to post them.
Version
Media3 1.2.0
More version details
Forgive me if this is fixed, I am waiting for 1.4.0-alpha02 to be released in a stable release. #1352.
I wrote a test that uses very short audio files. One is 7.34kB and the other is 7.15kB. They are both mp3 files and they trigger onMediaItemTransition about only 10% of the time.
This is the listener code
I add media item this way
Devices that reproduce the issue
Pixel 8 running Android 14
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
Attach listeners that override onMediaItemTransition to the Player. One listener adds one of two very short mp3 files every time the current one finishes, and the other listener will not get triggered every time one of the files is finished playing.
Expected result
onMediaItemTransition to be triggered every time a file finishes playing.
Actual result
onMediaItemTransition is not triggered every time a file finishes playing.
Media
I will have to wait until I can access the files to post them.
Bug Report
adb bugreport
to android-media-github@google.com after filing this issue.The text was updated successfully, but these errors were encountered: