TKVideoViewController Class Reference
| Inherits from | UIViewController |
| Declared in | TKVideoViewController.h TKVideoViewController.m |
Properties
player
The AVPlayer object.
@property (nonatomic, strong) AVPlayer *playerDeclared In
TKVideoViewController.hshouldLoop
A flag to set to have the video play over and over again.
@property (nonatomic, assign) BOOL shouldLoopDeclared In
TKVideoViewController.hInstance Methods
initWithVideoTitle:ofType:
Initializes a video view controller that will load the given NSURL object.
- (instancetype)initWithVideoTitle:(NSString *)title ofType:(NSString *)typeParameters
- title
A
NSStringof the video file name.
- type
A
NSStringof the video file extension.
Return Value
An initialized TKVideoViewController object or nil if the object couldn’t be created.
Declared In
TKVideoViewController.hpause
A flag to set to have the video play over and over again.
- (void)pauseDeclared In
TKVideoViewController.hplay
A flag to set to have the video play over and over again.
- (void)playDeclared In
TKVideoViewController.hplayerItemDidReachEnd:
A notification that the player did reach the end of the video.
- (void)playerItemDidReachEnd:(NSNotification *)notificationParameters
- notification
The
NSNotificationobject that called the method.
Declared In
TKVideoViewController.hrestart
A flag to set to have the video play over and over again.
- (void)restartDeclared In
TKVideoViewController.h