MobilePlayerConfig
public class MobilePlayerConfig
Holds player configuration values.
-
Watermark configuration.
Declaration
Swift
public let watermarkConfig: WatermarkConfig?
-
Top controls bar configuration.
Declaration
Swift
public let topBarConfig: BarConfig
-
Bottom controls bar configuration.
Declaration
Swift
public let bottomBarConfig: BarConfig
-
Initializes with default values.
Declaration
Swift
public convenience init()
-
Initializes using a configuration JSON file.
- parameters:
- fileURL: URL indicating the location of the configuration file.
Declaration
Swift
public convenience init(fileURL: NSURL)
Parameters
fileURL
URL indicating the location of the configuration file.
- parameters:
-
Initializes using a dictionary.
- Key for
watermarkConfig
is"watermark"
and its value should be a watermark configuration dictionary. - Key for
topBarConfig
is"topBar"
and its value should be a bar configuration dictionary. Key for
bottomBarConfig
is"bottomBar"
and its value should be a bar configuration dictionary.parameters:
- dictionary: Configuration dictionary.
Declaration
Swift
public init(dictionary: [String: AnyObject])
Parameters
dictionary
Configuration dictionary.
- Key for