Skip to content

Commit

Permalink
Release 3.1.1
Browse files Browse the repository at this point in the history
- 添加 弹幕控制管理, 现在可以发弹幕了
- 播放控制支持切换为 AliVodPlayer 了
- 修复 `pausedToKeepAppearState` 失效的问题
- 修复 `ijkplayer` 播放结束后, 当前时间未刷新的问题
  • Loading branch information
changsanjiang committed Nov 15, 2019
1 parent eb5c729 commit a3cb09e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SJBaseVideoPlayer.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'SJBaseVideoPlayer'
s.version = '3.1.0'
s.version = '3.1.1'
s.summary = 'video player.'
s.description = 'https://github.com/changsanjiang/SJBaseVideoPlayer/blob/master/README.md'
s.homepage = 'https://github.com/changsanjiang/SJBaseVideoPlayer'
Expand Down
3 changes: 3 additions & 0 deletions SJBaseVideoPlayer/AliVodPlayer/Core/SJAliyunVodModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

NS_ASSUME_NONNULL_BEGIN
@interface SJAliyunVodModel : NSObject
@property (nonatomic, copy, nullable) NSString *saveDir;
@property (nonatomic) int64_t maxSize; ///< default value is 500
@property (nonatomic) int maxDuration; ///< default value is 300
@end

@interface SJAliyunVodURLModel : SJAliyunVodModel
Expand Down
8 changes: 8 additions & 0 deletions SJBaseVideoPlayer/AliVodPlayer/Core/SJAliyunVodModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
#import "SJAliyunVodModel.h"

@implementation SJAliyunVodModel
- (instancetype)init {
self = [super init];
if ( self ) {
_maxSize = 500;
_maxDuration = 300;
}
return self;
}
@end


Expand Down
3 changes: 3 additions & 0 deletions SJBaseVideoPlayer/AliVodPlayer/Core/SJAliyunVodPlayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ - (instancetype)initWithMedia:(__kindof SJAliyunVodModel *)media specifyStartTim

_player = AliyunVodPlayer.alloc.init;
_player.delegate = self;
if ( media.saveDir.length != 0 ) {
[_player setPlayingCache:YES saveDir:media.saveDir maxSize:media.maxSize maxDuration:media.maxDuration];
}

if ( [media isKindOfClass:SJAliyunVodURLModel.class] ) {
SJAliyunVodURLModel *urlMedia = media;
Expand Down
2 changes: 1 addition & 1 deletion SJBaseVideoPlayer/SJBaseVideoPlayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ + (instancetype)player {
}

+ (NSString *)version {
return @"v3.1.0";
return @"v3.1.1";
}

- (void)setVideoGravity:(SJVideoGravity)videoGravity {
Expand Down

0 comments on commit a3cb09e

Please sign in to comment.