-
Notifications
You must be signed in to change notification settings - Fork 666
Description
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
Line 617 in 1fb1cf9
| EditedMediaItem.Builder(mediaItem) |
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
media/libraries/test_utils/src/main/java/androidx/media3/test/utils/TestSpeedProvider.java
Line 29 in bfe5930
| 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
- You will email the zip file produced by
adb bugreportto android-media-github@google.com after filing this issue.