Skip to content

Add ImageOutput support to Playerview #1144

Description

@pawaom

Image is not rendered in Exoplayer Playerview

I want to display image as video

I have referred this

I am trying this code

val playlist: MutableList<MediaItem> = mutableListOf<MediaItem>()
val mediaItem =   MediaItem.Builder().setImageDurationMs(30000).setUri("content://media/external/images/media/1000005827").build()  playlist.add(mediaItem)
player = ExoPlayer.Builder(this).build()
       playerView = findViewById(R.id.player_view)
       player.addMediaItems(playlist)
       playerView.player = player
       player.prepare()
player.play()

this creates a blank video with the duration 30000 but nothing is rendered , I have tried multiple images but nothing is rendered,

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions