Skip to content

Commit

Permalink
修改demo工程
Browse files Browse the repository at this point in the history
  • Loading branch information
张禹 committed Nov 23, 2020
1 parent 3782aa0 commit 868f421
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions iOS/QGVAPlayerDemo/QGVAPlayerDemo/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 868f421

Please sign in to comment.