Browse Source

修改demo工程

张禹 5 years ago
parent
commit
868f421a70
1 changed files with 2 additions and 3 deletions
  1. 2 3
      iOS/QGVAPlayerDemo/QGVAPlayerDemo/ViewController.m

+ 2 - 3
iOS/QGVAPlayerDemo/QGVAPlayerDemo/ViewController.m

@@ -83,15 +83,14 @@ void qg_VAP_Logger_handler(VAPLogLevel level, const char* file, int line, const
 
 
 //vap动画
 //vap动画
 - (void)playVapx {
 - (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];
     VAPView *mp4View = [[VAPView alloc] initWithFrame:self.view.bounds];
     [self.view addSubview:mp4View];
     [self.view addSubview:mp4View];
     mp4View.center = self.view.center;
     mp4View.center = self.view.center;
     mp4View.userInteractionEnabled = YES;
     mp4View.userInteractionEnabled = YES;
     UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onImageviewTap:)];
     UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onImageviewTap:)];
     [mp4View addGestureRecognizer:tap];
     [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
 #pragma mark -  mp4 hwd delegate