Skip to content
This repository has been archived by the owner on Sep 29, 2019. It is now read-only.

滑动slider会触发pangesture #5

Open
Akateason opened this issue May 22, 2017 · 0 comments
Open

滑动slider会触发pangesture #5

Akateason opened this issue May 22, 2017 · 0 comments

Comments

@Akateason
Copy link

Akateason commented May 22, 2017

我改动了下. 好了. 你可以改下pan设为public


- (void)progressValueChanged
{
    self.controlView.pan.enabled = FALSE ;
    float rate = self.controlView.progressSlider.value ;
    int targetIntvalue = (int)(rate * kMediaLength.intValue);
    //    NSLog(@"rate : %f",rate) ;
    //    NSLog(@"%d",targetIntvalue) ;
    VLCTime *targetTime = [[VLCTime alloc] initWithInt:targetIntvalue];
    if (![self.player isPlaying]) {
        [self.player play] ;
    }
    [self.player setTime:targetTime];
    [self.controlView autoFadeOutControlBar];
    
    //
    [NSObject cancelPreviousPerformRequestsWithTarget:self
                                             selector:@selector(openPanGesture)
                                               object:nil];
}

- (void)openPanGesture
{
    self.controlView.pan.enabled = TRUE ;
}

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

No branches or pull requests

1 participant