We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec31b95 commit 1e91431Copy full SHA for 1e91431
samples/media/video/src/main/java/com/example/platform/media/video/TransformerVideoComposition.kt
@@ -173,9 +173,9 @@ class TransformerVideoComposition : Fragment() {
173
174
if (binding.imageChip.isChecked) {
175
val image = EditedMediaItem.Builder(
176
- MediaItem.fromUri(URI_IMAGE),
+ // Show the image for 3 seconds in the composition
177
+ MediaItem.Builder().setUri(URI_IMAGE).setImageDurationMs(3_000).build(),
178
)
- .setDurationUs(3_000_000) // Show the image for 3 seconds in the composition
179
.setFrameRate(30)
180
.build()
181
0 commit comments