Open CavalcanteLeo opened 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
any help?
Please! anyone?
Same issue here...
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
Does anyone can help me?
Thanks in advance