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
typeThe type of picture in picture
pathThe resource path of picture in picture
errorThe 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
typeThe type of picture in picture
trackAdd clip to track, if track is nil will create new track at end.
errorThe 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
clipControllerThe controller of pip clip that want to be remove
erroroutput 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
clipControllerThe clip controller that need to move
toTrackThe target track
startTimeThe 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
pointThe point of preview to hit test
timeThe point of timeline to hit test
Return Value
return the topest clip controller that include timePoint and touchPoint
AliyunPipManager Class Reference