VKPlayerViewController Class Reference
Inherits from | UIViewController |
---|---|
Declared in | VKPlayerViewController.h |
Overview
A Player object which is subclass of UIViewController, it’s useful for showing video in full screen in a easy and practical way like Apple’s native API “MPMovieViewController”
– initWithURLString:decoderOptions:
Init Player View Controller with url & protocol options. For ex: rtsp protocol has transport layer options, this can be used like below [NSDictionary dictionaryWithObject:@“udp” forKey:@“rtsp_transport”] for more info please see http://iosvideokit/documentation/#RTSP_OPTIONS
- (id)initWithURLString:(NSString *)urlString decoderOptions:(NSDictionary *)options
Parameters
urlString |
The location of the file or remote stream url. If it’s a file then it must be located either in your app directory or on a remote server |
---|---|
options |
Streaming options according to the used protocol |
Return Value
VKPlayerViewController object
Declared In
VKPlayerViewController.h
barTitle
The bar title of Video Player
@property (nonatomic, retain) NSString *barTitle
Declared In
VKPlayerViewController.h
statusBarHidden
Specify YES to hide status bar, default is NO
@property (nonatomic, assign, getter=isStatusBarHidden) BOOL statusBarHidden
Declared In
VKPlayerViewController.h
delegate
Set your Parent View Controller as delegate If you want to be notified for state changes of VKPlayerViewController
@property (nonatomic, assign) id<VKPlayerViewControllerDelegate> delegate
Declared In
VKPlayerViewController.h
allowAirPlay
Specify YES to show video in extended screen, default is NO
@property (nonatomic, assign) BOOL allowAirPlay
Declared In
VKPlayerViewController.h
fillScreen
Specify YES to fit video frames fill to the player view, default is NO
@property (nonatomic, assign) BOOL fillScreen
Declared In
VKPlayerViewController.h
enableICYMetadata
Specify YES to enable metadata information for http shoutcast/icy protocols, default is NO.
@property (nonatomic, assign) BOOL enableICYMetadata
Declared In
VKPlayerViewController.h
recordingEnabled
Specify YES to enable recording functionality, default is NO
@property (nonatomic, assign, getter=isRecordingEnabled) BOOL recordingEnabled
Declared In
VKPlayerViewController.h
username
If license-form is not accessible, fill this parameter with your username taken from our server
@property (nonatomic, retain) NSString *username
Declared In
VKPlayerViewController.h
secret
If license-form is not accessible, fill this parameter with your secret taken from our server
@property (nonatomic, retain) NSString *secret
Declared In
VKPlayerViewController.h