Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slider 跳动问题 #208

Open
jianchaoxu opened this issue Sep 10, 2019 · 5 comments
Open

slider 跳动问题 #208

jianchaoxu opened this issue Sep 10, 2019 · 5 comments

Comments

@jianchaoxu
Copy link

明哥,拖拽slider时会先跳回原先的位置,在跳回后面的位置

@weilejie
Copy link

把updateProgress函数中self.isDragingSlider = NO;放到播放器监听AVPlayerItemStatusReadyToPlay中去

@jianchaoxu
Copy link
Author

改了之后调整slider不会跟着播放进度走了

@ZQDXY
Copy link

ZQDXY commented Jul 1, 2022

  • (void)updateProgress:(UISlider *)slider{
    [self.player seekToTime:CMTimeMakeWithSeconds(slider.value, self.currentItem.currentTime.timescale) toleranceBefore:kCMTimeZero toleranceAfter:kCMTimeZero completionHandler:^(BOOL finished) {
    self.isDragingSlider = NO;
    }];
    }

@huangdaojian
Copy link

huangdaojian commented Jul 1, 2022 via email

Repository owner deleted a comment from feng1688008 Jun 19, 2023
Repository owner deleted a comment from ligangliang Jun 19, 2023
@zhengwenming
Copy link
Owner

已经解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants