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

滑动slider会触发pangesture #5

Description

@Akateason

我改动了下. 好了. 你可以改下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 ;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions