Doikki / DKVideoPlayer

Android Video Player. 安卓视频播放器,封装MediaPlayer、ExoPlayer、IjkPlayer。模仿抖音并实现预加载,列表播放,悬浮播放,广告播放,弹幕,视频水印,视频滤镜
Apache License 2.0
5.01k stars 1.03k forks source link

playback speed limit upt0 10x. #837

Open zohaibmushwani opened 10 months ago

zohaibmushwani commented 10 months ago

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 commented 10 months ago

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.

litianjun05090 commented 8 months ago

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());