Version
Media3 1.3.1
More version details
No response
Devices that reproduce the issue
Pixel 3a Emulator API 34
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
- Play any mp3 file which contains id3 tags with ids
TCON, COMM, etc.
- Check values in
onMediaMetadataChanged and onTracksChanged
override fun onTracksChanged(tracks: Tracks) {
tracks.groups.forEach { group ->
for (i in 0 until group.length) {
group.mediaTrackGroup.getFormat(i).metadata?.let { metadata ->
for (j in 0 until metadata.length()) {
metadata.get(j).let {
if (it is TextInformationFrame) {
println("${it.id} ${it.values}") // TCON [<value>]
}
if (it is CommentFrame) {
println("${it.id} ${it.text}") // COMM <value>
}
}
}
}
}
}
}
override fun onMediaMetadataChanged(mediaMetadata: MediaMetadata) {
println("genre: ${mediaMetadata.genre}") // null
println("description: ${mediaMetadata.description}") // null
}
Expected result
Value of MediaMetadata.genre is filled with TCON frame content
Value of MediaMetadata.description is filled with COMM frame content
Actual result
MediaMetadata values described above are null
Media
Sample MP3 link
Bug Report
Version
Media3 1.3.1
More version details
No response
Devices that reproduce the issue
Pixel 3a Emulator API 34
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
TCON,COMM, etc.onMediaMetadataChangedandonTracksChangedExpected result
Value of
MediaMetadata.genreis filled withTCONframe contentValue of
MediaMetadata.descriptionis filled withCOMMframe contentActual result
MediaMetadata values described above are null
Media
Sample MP3 link
Bug Report
adb bugreportto android-media-github@google.com after filing this issue.