PAGMovie Class Reference
Inherits from | PAGImage : NSObject |
---|---|
Declared in | PAGMovie.h |
+ MakeFromFile:
Creates a PAGMovie from the video path, Return null if the file doesn’t exist, or it isn’t a valid video file. PAGMovie supports the mov,mp4,m4a,3gp,3g2 and mj2 container formats, and it supports the H264 and H265 encoding formats.
+ (PAGMovie *)MakeFromFile:(NSString *)path
Declared In
PAGMovie.h
+ MakeFromFile:startTime:duration:speed:volume:
Creates a PAGMovie from the video path, Return null if the file doesn’t exist, or it isn’t a valid video fileļ¼or the start time is more than the origin duration of this movie. PAGMovie supports the mov,mp4,m4a,3gp,3g2 and mj2 container formats, and it supports the H264 and H265 encoding formats.
+ (PAGMovie *)MakeFromFile:(NSString *)path startTime:(NSInteger)startTime duration:(NSInteger)duration speed:(CGFloat)speed volume:(CGFloat)volume
Parameters
startTime |
the start time of the movie in microseconds. |
---|---|
duration |
the duration of the movie in microseconds. |
speed |
the speed of the movie. |
volume |
the volume of the movie, which is usually in the range [0.0 - 1.0]. |
Discussion
If the duration and startTime are set to -1, the video will use the full length.
Declared In
PAGMovie.h
– duration
Returns the duration of this movie in microseconds, it applies the speed of PAGMovie.
- (NSInteger)duration
Declared In
PAGMovie.h