Skip to content

Commit

Permalink
Update podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
changsanjiang committed Mar 21, 2018
1 parent 8cf411c commit f8cc54b
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 19 deletions.
5 changes: 5 additions & 0 deletions SJVideoPlayer.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,9 @@ s.subspec 'MoreSetting' do |ss|
ss.dependency 'SJVideoPlayer/Resource'
end

s.subspec 'LightweightControlView' do |ss|
ss.source_files = 'SJVideoPlayer/LightweightControlView/*.{h,m}'
ss.dependency 'SJVideoPlayer/Resource'
end

end
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, SJVideoPlayerCenterViewTag) {
SJVideoPlayerCenterViewTag_Failed,
SJVideoPlayerCenterViewTag_Replay,
typedef NS_ENUM(NSUInteger, SJLightweightCenterControlViewTag) {
SJLightweightCenterControlViewTag_Failed,
SJLightweightCenterControlViewTag_Replay,
};

@protocol SJLightweightCenterControlViewDelegate;
Expand All @@ -30,7 +30,7 @@ typedef NS_ENUM(NSUInteger, SJVideoPlayerCenterViewTag) {
@protocol SJLightweightCenterControlViewDelegate <NSObject>

@optional
- (void)centerControlView:(SJLightweightCenterControlView *)view clickedBtnTag:(SJVideoPlayerCenterViewTag)tag;
- (void)centerControlView:(SJLightweightCenterControlView *)view clickedBtnTag:(SJLightweightCenterControlViewTag)tag;

@end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ - (void)_centerSetupView {

- (UIButton *)failedBtn {
if ( _failedBtn ) return _failedBtn;
_failedBtn = [SJUIButtonFactory buttonWithImageName:@"" target:self sel:@selector(clickedBtn:) tag:SJVideoPlayerCenterViewTag_Failed];
_failedBtn = [SJUIButtonFactory buttonWithImageName:@"" target:self sel:@selector(clickedBtn:) tag:SJLightweightCenterControlViewTag_Failed];
return _failedBtn;
}
- (UIButton *)replayBtn {
if ( _replayBtn ) return _replayBtn;
_replayBtn = [SJUIButtonFactory buttonWithImageName:@"" target:self sel:@selector(clickedBtn:) tag:SJVideoPlayerCenterViewTag_Replay];
_replayBtn = [SJUIButtonFactory buttonWithImageName:@"" target:self sel:@selector(clickedBtn:) tag:SJLightweightCenterControlViewTag_Replay];
_replayBtn.titleLabel.numberOfLines = 0;
return _replayBtn;
}
Expand Down
6 changes: 3 additions & 3 deletions SJVideoPlayer/SJLightweightControlLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -477,13 +477,13 @@ - (SJLightweightCenterControlView *)centerControlView {
return _centerControlView;
}

- (void)centerControlView:(SJLightweightCenterControlView *)view clickedBtnTag:(SJVideoPlayerCenterViewTag)tag {
- (void)centerControlView:(SJLightweightCenterControlView *)view clickedBtnTag:(SJLightweightCenterControlViewTag)tag {
switch ( tag ) {
case SJVideoPlayerCenterViewTag_Replay: {
case SJLightweightCenterControlViewTag_Replay: {
[_videoPlayer replay];
}
break;
case SJVideoPlayerCenterViewTag_Failed: {
case SJLightweightCenterControlViewTag_Failed: {
[_videoPlayer refresh];
}
break;
Expand Down
Binary file modified SJVideoPlayerProject/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
7706E1251FF74C42006E0B56 /* slider.gif in Resources */ = {isa = PBXBuildFile; fileRef = 7706E1241FF74C42006E0B56 /* slider.gif */; };
7706FC8C20628BC3006A828B /* SJLightweightCenterControlView.m in Sources */ = {isa = PBXBuildFile; fileRef = 7706FC8B20628BC3006A828B /* SJLightweightCenterControlView.m */; };
7706FC932062A96E006A828B /* LightweightViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7706FC922062A96E006A828B /* LightweightViewController.m */; };
7706FC962062ABA8006A828B /* LightweightTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 7706FC952062ABA8006A828B /* LightweightTableViewCell.m */; };
77154E822050D040009E51D7 /* SJVideoPlayerRightControlView.m in Sources */ = {isa = PBXBuildFile; fileRef = 77154E812050D040009E51D7 /* SJVideoPlayerRightControlView.m */; };
77154E8E205255C8009E51D7 /* SJVideoPlayerFilmEditingControlView.m in Sources */ = {isa = PBXBuildFile; fileRef = 77154E8D205255C8009E51D7 /* SJVideoPlayerFilmEditingControlView.m */; };
77154E9120526391009E51D7 /* SJVideoPlayerFilmEditingResultView.m in Sources */ = {isa = PBXBuildFile; fileRef = 77154E9020526391009E51D7 /* SJVideoPlayerFilmEditingResultView.m */; };
Expand Down Expand Up @@ -104,6 +105,8 @@
7706FC8B20628BC3006A828B /* SJLightweightCenterControlView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SJLightweightCenterControlView.m; sourceTree = "<group>"; };
7706FC912062A96E006A828B /* LightweightViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LightweightViewController.h; sourceTree = "<group>"; };
7706FC922062A96E006A828B /* LightweightViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LightweightViewController.m; sourceTree = "<group>"; };
7706FC942062ABA8006A828B /* LightweightTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LightweightTableViewCell.h; sourceTree = "<group>"; };
7706FC952062ABA8006A828B /* LightweightTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LightweightTableViewCell.m; sourceTree = "<group>"; };
77154E802050D040009E51D7 /* SJVideoPlayerRightControlView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SJVideoPlayerRightControlView.h; sourceTree = "<group>"; };
77154E812050D040009E51D7 /* SJVideoPlayerRightControlView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SJVideoPlayerRightControlView.m; sourceTree = "<group>"; };
77154E8C205255C8009E51D7 /* SJVideoPlayerFilmEditingControlView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SJVideoPlayerFilmEditingControlView.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -298,6 +301,8 @@
children = (
7706FC912062A96E006A828B /* LightweightViewController.h */,
7706FC922062A96E006A828B /* LightweightViewController.m */,
7706FC942062ABA8006A828B /* LightweightTableViewCell.h */,
7706FC952062ABA8006A828B /* LightweightTableViewCell.m */,
);
path = "Lightweight_轻量级播放器";
sourceTree = "<group>";
Expand Down Expand Up @@ -408,15 +413,6 @@
path = TableView_TableHeaderIsCollectionView;
sourceTree = "<group>";
};
775C0AB720295B6D0008EDA7 /* Mask */ = {
isa = PBXGroup;
children = (
A6E6D3012028BE9B00CB9BAE /* SJVideoPlayerControlMaskView.h */,
A6E6D3002028BE9B00CB9BAE /* SJVideoPlayerControlMaskView.m */,
);
name = Mask;
sourceTree = "<group>";
};
775C0AB820295B770008EDA7 /* Model */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -476,6 +472,8 @@
779A4E7C2062568C0041D8BE /* SJVideoPlayerAnimationHeader.m */,
775C0AC420295C660008EDA7 /* UIView+SJVideoPlayerSetting.h */,
775C0AC520295C660008EDA7 /* UIView+SJVideoPlayerSetting.m */,
A6E6D3012028BE9B00CB9BAE /* SJVideoPlayerControlMaskView.h */,
A6E6D3002028BE9B00CB9BAE /* SJVideoPlayerControlMaskView.m */,
);
path = Resource;
sourceTree = "<group>";
Expand Down Expand Up @@ -698,7 +696,6 @@
775C0ABA20295B9A0008EDA7 /* ControlViews */,
775C0AB920295B8B0008EDA7 /* Preview */,
775C0AB820295B770008EDA7 /* Model */,
775C0AB720295B6D0008EDA7 /* Mask */,
);
path = ControlView;
sourceTree = "<group>";
Expand Down Expand Up @@ -930,6 +927,7 @@
779A4E6D20624E370041D8BE /* SJLightweightControlLayer.m in Sources */,
77F4EFFA204029E3004748F6 /* SJSharedVideoPlayerHelper.m in Sources */,
774B252B1FCEBA5D002113CC /* main.m in Sources */,
7706FC962062ABA8006A828B /* LightweightTableViewCell.m in Sources */,
772005772029BBC7009F0190 /* SJMoreSettingItems.m in Sources */,
775B201920465E1500264AB9 /* TableHeaderCollectionView.m in Sources */,
77033C14204E7611008F1ED5 /* DemoPlayerViewController.m in Sources */,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// LightweightTableViewCell.h
// SJVideoPlayerProject
//
// Created by BlueDancer on 2018/3/21.
// Copyright © 2018年 SanJiang. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface LightweightTableViewCell : UITableViewCell

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// LightweightTableViewCell.m
// SJVideoPlayerProject
//
// Created by BlueDancer on 2018/3/21.
// Copyright © 2018年 SanJiang. All rights reserved.
//

#import "LightweightTableViewCell.h"

@interface LightweightTableViewCell ()

@property (nonatomic, strong) UIImageView *coverImageView;
//@property (nonatomic, strong) UIImageView ;

@end

@implementation LightweightTableViewCell

@end

0 comments on commit f8cc54b

Please sign in to comment.