Skip to content

Commit

Permalink
添加GIF功能 #20
Browse files Browse the repository at this point in the history
  • Loading branch information
changsanjiang committed Apr 12, 2018
1 parent 2eee197 commit 6a6ff89
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSUInteger, SJVideoPlayerRightViewTag) {
SJVideoPlayerRightViewTag_FilmEditing,
typedef NS_ENUM(NSUInteger, SJLightweightRightControlViewTag) {
SJLightweightRightControlViewTag_FilmEditing,
};

@protocol SJLightweightRightControlViewDelegate;
Expand All @@ -24,6 +24,6 @@ typedef NS_ENUM(NSUInteger, SJVideoPlayerRightViewTag) {
@protocol SJLightweightRightControlViewDelegate <NSObject>

@optional
- (void)rightControlView:(SJLightweightRightControlView *)view clickedBtnTag:(SJVideoPlayerRightViewTag)tag;
- (void)rightControlView:(SJLightweightRightControlView *)view clickedBtnTag:(SJLightweightRightControlViewTag)tag;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ - (void)_rightSetupView {

- (UIButton *)editingBtn {
if ( _editingBtn ) return _editingBtn;
_editingBtn = [SJUIButtonFactory buttonWithImageName:nil target:self sel:@selector(clickedBtn:) tag:SJVideoPlayerRightViewTag_FilmEditing];
_editingBtn = [SJUIButtonFactory buttonWithImageName:nil target:self sel:@selector(clickedBtn:) tag:SJLightweightRightControlViewTag_FilmEditing];
return _editingBtn;
}
@end
4 changes: 2 additions & 2 deletions SJVideoPlayer/SJLightweightControlLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,8 @@ - (SJLightweightRightControlView *)rightControlView {
return _rightControlView;
}

- (void)rightControlView:(SJLightweightRightControlView *)view clickedBtnTag:(SJVideoPlayerRightViewTag)tag {
if ( tag == SJVideoPlayerRightViewTag_FilmEditing ) {
- (void)rightControlView:(SJLightweightRightControlView *)view clickedBtnTag:(SJLightweightRightControlViewTag)tag {
if ( tag == SJLightweightRightControlViewTag_FilmEditing ) {
[self _presentFilmEditingControlView];
}
}
Expand Down
Binary file modified SJVideoPlayerProject/.DS_Store
Binary file not shown.
Binary file not shown.

0 comments on commit 6a6ff89

Please sign in to comment.