这是indexloc提供的服务,不要输入任何密码
Skip to content

CompositionPlayer SeekBar and Duration is wrong when we change speed of video #2892

@omkarquest

Description

@omkarquest

Version

Media3 main branch
media 3 version 1.9.0-alpha01

More version details

CompositionPlayer SeekBar and Duration is wrong when we change speed of video

Devices that reproduce the issue

Samsung Galaxy Tab A 7 Lite

Devices that do not reproduce the issue

didNot Try.

Reproducible in the demo app?

Yes

Reproduction steps

In composition Demo app add following code

in

 val provider =
           TestSpeedProvider.createWithStartTimes(
                longArrayOf(0, 300_000L, 600_000L),
                floatArrayOf(2f, 1f,4.0f)
            )
EditedMediaItem.Builder(mediaItem).setSpeed(provider)

for TestSpeedProvider use this code

public final class TestSpeedProvider implements SpeedProvider {

I would also like to know , Can we hide the controls in composition player, and then how can we use play/pause.

Expected result

The Video Should play normally , and show the correct times

Actual result

The Video play normally , but show the incorrect time and SeekBar is also wrong.
This video shows the problem

XRecorder_20251113_01.mp4

Media

Use the Same media provided in the CompositionPlayer Demo.

Bug Report

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions