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
I'm looking for a way to show video and images in sequence in an Exoplayer as an "interactive preview" for a Transformer export.
When using Transformer (in release 1.2.0), an EditedMediaItem can be created from an image MediaItem and added to an EditedMediaItemSequence together with some videos. After exporting the result is a video with the static image in the exported sequence with the defined framerate and time.
This does not work (or at least it is not as straightforward to do) in an Exoplayer to play in a normal playlist. A mediaItem can be created from an image and added to the exoplayer, but the exoplayer will only play video media items.
I see that there are image extractors, an ImageDecoder and an ImageRenderer, but it seems that the ImageRenderer needs an output and does not output to the same place as the videoRenderers.
Is there any way to use this ImageRenderer to output the same way as the video in the exoplayer, with effects from setVideoEffects applied on top? Or just a way to show these images from the mediaitems from the exoplayer mediasources.
Thanks!
The text was updated successfully, but these errors were encountered:
In the last release we added the building blocks for support images to Exoplayer, seen in the image extractors, ImageDecoder and an ImageRenderer you mention, but the ImageRenderer is not linked to the output surface, which is why you see that you the images do not appear on screen.
Currently to play images in exoplayer you must do the following:
Create an ImageOutput dictating where the rendered image should go (i.e. draw the bitmap to the surface) and instantiate an ImageRenderer with this imageOutput, and ensure it is built in your renderer factory. In the next release, you'll be able to set an imageOutput in the defaultRenderersFactory and have the ImageRenderer built for you.
I'm looking for a way to show video and images in sequence in an Exoplayer as an "interactive preview" for a Transformer export.
When using Transformer (in release 1.2.0), an EditedMediaItem can be created from an image MediaItem and added to an EditedMediaItemSequence together with some videos. After exporting the result is a video with the static image in the exported sequence with the defined framerate and time.
This does not work (or at least it is not as straightforward to do) in an Exoplayer to play in a normal playlist. A mediaItem can be created from an image and added to the exoplayer, but the exoplayer will only play video media items.
I see that there are image extractors, an ImageDecoder and an ImageRenderer, but it seems that the ImageRenderer needs an output and does not output to the same place as the videoRenderers.
Is there any way to use this ImageRenderer to output the same way as the video in the exoplayer, with effects from setVideoEffects applied on top? Or just a way to show these images from the mediaitems from the exoplayer mediasources.
Thanks!
The text was updated successfully, but these errors were encountered: