Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageOutput consecutive images #1260

Closed
1 task
rigor789 opened this issue Apr 10, 2024 · 3 comments
Closed
1 task

ImageOutput consecutive images #1260

rigor789 opened this issue Apr 10, 2024 · 3 comments

Comments

@rigor789
Copy link

Version

Media3 1.3.1

More version details

No response

Devices that reproduce the issue

Android TV Emulator - API34

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Not tested

Reproduction steps

  1. add 2 or more consecutive images, with something like
    androidx.media3.common.MediaItem.Builder()
      .setUri("https://some-image-url")
      .setMimeType(androidx.media3.common.MimeTypes.IMAGE_JPEG)
      .setImageDurationMs(10000)
  2. call setImageOutput on the player instance and implement onImageAvailable, onDisabled
  3. prepare/play media

Expected result

  • onImageAvailable (image1)
  • wait 10 seconds
  • onImageAvailable (image2)
  • wait 10 seconds
  • onDisabled

Actual result

  • onImageAvailable (image1)
  • wait 10 seconds
  • onImageAvailabel (image2)
  • onDisabled

Media

Not applicable (any image media)

Bug Report

@microkatz
Copy link
Contributor

Hi @rigor789,

Thanks for reporting your issue. This is a known issue that was presented in this Github ticket as well, #1017 and so I will close as duplicate. Feel free to ask your questions in that thread if you need additional help while we figure out a solution to onDisabled problem.

@microkatz microkatz closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2024
@microkatz
Copy link
Contributor

Duplicate of #1017

@microkatz microkatz marked this as a duplicate of #1017 Apr 12, 2024
@microkatz microkatz reopened this Apr 12, 2024
@rigor789
Copy link
Author

Hi @microkatz, sure thing! I have seen that issue but didn't realize it was describing the same scenario, your suggestion to use the onMediaItemTransition is something we'll try next, thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants