From 868f421a703c1e4b454769f103f9cf23b65934af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A6=B9?= Date: Wed, 18 Nov 2020 17:10:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9demo=E5=B7=A5=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/QGVAPlayerDemo/QGVAPlayerDemo/ViewController.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iOS/QGVAPlayerDemo/QGVAPlayerDemo/ViewController.m b/iOS/QGVAPlayerDemo/QGVAPlayerDemo/ViewController.m index 220e761c..48d01b50 100644 --- a/iOS/QGVAPlayerDemo/QGVAPlayerDemo/ViewController.m +++ b/iOS/QGVAPlayerDemo/QGVAPlayerDemo/ViewController.m @@ -83,15 +83,14 @@ - (void)playVap { //vap动画 - (void)playVapx { - NSString *mp4Path = [NSString stringWithFormat:@"%@/Resource/vap_265_hvc1.mp4", [[NSBundle mainBundle] resourcePath]]; + NSString *mp4Path = [NSString stringWithFormat:@"%@/Resource/vap1.mp4", [[NSBundle mainBundle] resourcePath]]; VAPView *mp4View = [[VAPView alloc] initWithFrame:self.view.bounds]; [self.view addSubview:mp4View]; mp4View.center = self.view.center; mp4View.userInteractionEnabled = YES; UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onImageviewTap:)]; [mp4View addGestureRecognizer:tap]; - [mp4View playHWDMP4:mp4Path delegate:self]; - //[mp4View playHWDMP4:mp4Path blendMode:QGHWDTextureBlendMode_AlphaRight delegate:self]; + [mp4View playHWDMP4:mp4Path repeatCount:-1 delegate:self]; } #pragma mark - mp4 hwd delegate