这是indexloc提供的服务,不要输入任何密码
Skip to content

MediaMetaData returns null values if player is set to Player.REPEAT_MODE_ONE (Same as Legacy issue #9458 at ExoPlayer repository) #1007

@amirkazemzade

Description

@amirkazemzade

Version

Media3 1.2.1

More version details

No response

Devices that reproduce the issue

AVD Pixel 8 Pro API 34
AVD Pixel 8 Pro API 33
AVD Pixel 3a API 28
Galaxy A50 with Android 11

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

  1. Open PlayerActivity at androidx/media3/demo/main/PlayerActivity.java
  2. Add player.setRepeatMode(Player.REPEAT_MODE_ONE); after player = playerBuilder.build(); at line 279
  3. Build and run the demo app
  4. Go down to Misc list
  5. Press Google Play (MP3) to play
  6. Seek the seek-bar to the almost end of it ( for example at the 00:56 )
  7. Let the playback continue to end the current item and then repeat the playback.

Expected result

The artwork picture of the item remains the same.

Actual result

The artwork disappears. As I inspected in debug mode, all metadata values but the title are null in the second playback.

Media

video_2024-01-20_10-59-33.mp4

Bug Report

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions