AliyunAETemplatePlayer
@interface AliyunAETemplatePlayer : NSObject
模板播放器 API_AVAILABLE(3.35.0)
-
delegate
Declaration
Objective-C
@property (nonatomic, weak) id<AliyunAETemplatePlayerDelegate> _Nullable delegate;
-
播放
Declaration
Objective-C
- (BOOL)start;
Return Value
成功或否
-
暂停
Declaration
Objective-C
- (BOOL)pause;
Return Value
成功或否
-
停止播放
Declaration
Objective-C
- (BOOL)stop;
Return Value
成功或否
-
seek
Declaration
Objective-C
- (BOOL)seek:(NSTimeInterval)second;
Parameters
second
时间点,单位秒
Return Value
成功或否
-
获取时长
Declaration
Objective-C
- (NSTimeInterval)duration;
Return Value
时长,单位秒
-
获取当前播放位置
Declaration
Objective-C
- (NSTimeInterval)currentTime;
Return Value
当前播放位置,单位秒
-
获取播放视图
Declaration
Objective-C
- (id)getPlayerView;
Return Value
播放视图