DKVideoPlayer icon indicating copy to clipboard operation
DKVideoPlayer copied to clipboard

playback speed limit upt0 10x.

Open zohaibmushwani opened this issue 1 year ago • 2 comments

Hi, I tried to speed up the video using this library it has a limit of max of 6.0x I need 10x speed is this possible to increase the limit?

I am developing the front end for slow-motion curve view module in android, the video needs to be played segment by segment, and the change of speed will occur after the time taken by the segment in their associated speed. if any alternative solution anyone can suggest. Thanks in advance also when I try to change the speed of video after some segments somehow 4.5x speed it does not change speed for more segments. and tried the first segments to increase the speed that case it git the speed at initial state the further change was refused.

how frequently we can change the speed and how can we increase the speed limit from 0.1x to 10x.

zohaibmushwani avatar Nov 06 '23 12:11 zohaibmushwani

I saw your video player playback speed is working around 6x but after changing the speed the seek bar is not synchronized according to the video I changed the speed of the video in runtime the 20-second current time from 20-24 seconds is changing but the seek bar in (VodControlView) is reached to end before the video ends.

zohaibmushwani avatar Nov 14 '23 11:11 zohaibmushwani

I saw your video player playback speed is working around 6x but after changing the speed the seek bar is not synchronized according to the video I changed the speed of the video in runtime the 20-second current time from 20-24 seconds is changing but the seek bar in (VodControlView) is reached to end before the video ends.

If you are using Exo , you could consider disbale the audio , just keep the video track. Then you can set the speed up to 10x.

code snippet: player.setTrackSelectionParameters( player.getTrackSelectionParameters() .buildUpon() .setTrackTypeDisabled(C.TRACK_TYPE_AUDIO, /* disabled= */ true) .build());

litianjun05090 avatar Jan 12 '24 09:01 litianjun05090