StyleConfiguration

@objcMembers
@objc(BMPStyleConfiguration)
public final class StyleConfiguration : Configuration

Undocumented

  • Sets if the the UI should be enabled or not. Default value is true.

    Declaration

    Swift

    public var isUiEnabled: Bool { get set }
  • Set which user interface type should be used. Default value is UserInterfaceType.bitmovin on iOS and UserInterfaceType.system on tvOS. This setting only applies if StyleConfiguration#uiEnabled is set to true.

    Declaration

    Swift

    public var userInterfaceType: BMPUserInterfaceType
  • Set the CSS file that will be used for the UI. The default CSS file will be completely replaced by the CSS file set with this property.

    Declaration

    Swift

    @available(tvOS, unavailable)
    public var playerUiCss: URL
  • Set a CSS file which contains supplemental styles for the player UI. These styles will be added to the default CSS file or the CSS file set with StyleConfiguration#playerUiCss.

    Declaration

    Swift

    @available(tvOS, unavailable)
    public var supplementalPlayerUiCss: URL?
  • Sets the JS file that will be used for the UI. The default JS file will be completely replaced by the JS file set with this property.

    Declaration

    Swift

    @available(tvOS, unavailable)
    public var playerUiJs: URL
  • Determines how the video content is scaled or stretched within the parent container’s bounds. Possible values are defined in ScalingMode. Default value is ScalingMode.fit.

    Declaration

    Swift

    public var scalingMode: BMPScalingMode
  • An optional configuration object, containing configuration values which apply to the selected user interface type.

    • When UserInterfaceType.system is selected, a SystemUserInterfaceConfiguration can be set.
    • When UserInterfaceType.subtitle is selected, a SubtitleUserInterfaceConfiguration can be set.

    Declaration

    Swift

    public var userInterfaceConfiguration: UserInterfaceConfiguration?
  • Undocumented

    Declaration

    Swift

    override public init()
  • Undocumented

    Declaration

    Swift

    override public init(jsonData: [AnyHashable : Any]) throws
  • Undocumented

    Declaration

    Swift

    override public func toJsonData() -> [AnyHashable : Any]