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