AliyunAETemplatePlayer

@interface AliyunAETemplatePlayer : NSObject

* A class that defines player for template API_AVAILABLE(3.35.0)

  • * The delegate.

    Declaration

    Objective-C

    @property (nonatomic, weak) id<AliyunAETemplatePlayerDelegate> _Nullable delegate;
  • * Start

    Declaration

    Objective-C

    - (BOOL)start;

    Return Value

    YES or NO

  • * Pause

    Declaration

    Objective-C

    - (BOOL)pause;

    Return Value

    YES or NO

  • * Stop play.

    Declaration

    Objective-C

    - (BOOL)stop;

    Return Value

    YES or NO

  • * Seek.

    Declaration

    Objective-C

    - (BOOL)seek:(NSTimeInterval)second;

    Parameters

    second

    Position in second

    Return Value

    YES or NO

  • * Get duration.

    Declaration

    Objective-C

    - (NSTimeInterval)duration;

    Return Value

    Duration in second.

  • * Get current time.

    Declaration

    Objective-C

    - (NSTimeInterval)currentTime;

    Return Value

    Current time in second.

  • * Get player view.

    Declaration

    Objective-C

    - (id)getPlayerView;

    Return Value

    View.