TextureGroup / Texture

Smooth asynchronous user interfaces for iOS apps.
https://texturegroup.org/
Other
8.02k stars 1.29k forks source link

ASVideoNode is blinking when changes the asset (video) #849

Open CavalcanteLeo opened 6 years ago

CavalcanteLeo commented 6 years ago

I have a ViewController with a ASVideoNode, and added some gesture on it, When you swipe left or right, it changes the video to the next/prev.

But when I change the asset, the video goes to the last frame, and blink, then it changes the asset to the next video

I created an exemple of this issue

Download the project example: ASVideoNode.zip

#pragma mark - Load Video
-(void)loadVideo{
    NSURL * bundle = [[NSBundle mainBundle] bundleURL];
    NSURL * file = [NSURL URLWithString:self.videos[self.videoIndex]  relativeToURL:bundle];
    NSURL * absoluteFile = [file absoluteURL];
    AVAsset *asset = [AVAsset assetWithURL:absoluteFile];
    self.videoNode.asset = asset;
    [self.videoNode play];
}

Does anyone can help me?

Thanks in advance

CavalcanteLeo commented 6 years ago

any help?

CavalcanteLeo commented 6 years ago

Please! anyone?

pawansn commented 6 years ago

Same issue here...