Closed omkarsurya closed 1 month ago
For setImageDurationMs -- Look like a duplicate of https://github.com/androidx/media/issues/1157, https://github.com/androidx/media/issues/1165, https://github.com/androidx/media/issues/1144
the question is not about being able to display an image, I am asking will there be a demo application for various image types, As there are already example provided here for various video and audio files, similarly the demo application can have examples of image files .
The demo app uses PlayerView
which doesn't currently support image output: https://github.com/androidx/media/issues/1144
When the demo app supports displaying images we can add some example image assets.
Any ideas why compose demo doesn't work with images? I tried to add MediaSourceFactory, RenderersFactory and ImageDurationMs for MediaItem. But still I see only black screen for SURFACE_TYPE_SURFACE_VIEW
. I think good example of usage images with compose will be useful.
Image support in the UI modules has been implemented in 1.4.0, there are also some example images in the demo app and we added documentation on the guide pages: https://developer.android.com/media/media3/exoplayer/images
So I think we can close this bug as done.
@AndreyMedal the compose demo is work in progress and will eventually support images too.
Provide example of MediaItem as an image in Main Demo
I recently came across the
setImageDurationMs
hereWhich allows to create a mediaitem using an image after we set the URI as an image
the main exoplayer demo provides example for various video and audio formats but there is no example for image as mediaitem
Please provide example for various image formats and specify which image formats like jpg, png etc are supported
Also is webp supported?