AliyunPipManager

@interface AliyunPipManager : NSObject

* API_AVAILABLE(3.25.0) The manager of picture in picture

  • * API_AVAILABLE(3.25.0) The controller of track

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSArray<AliyunPipTrackController *> *trackControllers;
  • * API_AVAILABLE(3.25.0) Add pip clip

    Declaration

    Objective-C

    - (AliyunPipClipController *)addClipWithType:(AliyunPipClipType)type
                                            path:(NSString *)path
                                           error:(NSError **)error;

    Parameters

    type

    The type of picture in picture

    path

    The resource path of picture in picture

    error

    The output param, error message. if no error will be nil.

    Return Value

    The controller of pip controller

  • * API_AVAILABLE(3.25.0) Add pip clip to track

    Declaration

    Objective-C

    - (AliyunPipClipController *)addClipWithModel:(AliyunPipClip *)clip
                                          toTrack:(AliyunPipTrackController *)track
                                            error:(NSError **)error;

    Parameters

    type

    The type of picture in picture

    track

    Add clip to track, if track is nil will create new track at end.

    error

    The output param, error message, if no error will be nil.

    Return Value

    The Controller of pip controller

  • * API_AVAILABLE(3.25.0) Delete pip clip

    Declaration

    Objective-C

    - (BOOL)removePipClipController:(AliyunPipClipController *)clipController
                              error:(NSError **)error;

    Parameters

    clipController

    The controller of pip clip that want to be remove

    error

    output param

    Return Value

    Success or Fail

  • * API_AVAILABLE(3.25.0) Move pip clip

    Declaration

    Objective-C

    - (BOOL)movePipClipController:(AliyunPipClipController *)clipController
                          toTrack:(AliyunPipTrackController *)toTrack
                    withStartTime:(NSTimeInterval)startTime;

    Parameters

    clipController

    The clip controller that need to move

    toTrack

    The target track

    startTime

    The target startTime

    Return Value

    Success of Fail

  • * API_AVAILABLE(3.25.0) Hittest for pip clip controller

    Declaration

    Objective-C

    - (AliyunPipClipController *)hitTest:(CGPoint)point
                                withTime:(NSTimeInterval)time;

    Parameters

    point

    The point of preview to hit test

    time

    The point of timeline to hit test

    Return Value

    return the topest clip controller that include timePoint and touchPoint