BCOVPUIControlLayout Class Reference

Inherits from NSObject
Conforms to NSCopying
Declared in BCOVPUIBasicControlView.h

Overview

BCOVPUIControlLayout The BCOVPUIControlLayout object is created with a set of controls embedded in BCOVPUILayoutView objects with a few customizing parameters. The BCOVPUIControlLayout object is installed in a BCOVPUILayoutView for display in a player view.

  standardLayoutItems

standardLayoutItems is the array containing one or more subarrays of controls presented when the player view width is greater than compactLayoutMaximumWidth. Each subarray contains a list of BCOVPUILayoutView objects that will be presented in a BCOVPUILayoutView. Each subarray represents a control bar in the player view. standardLayoutItems typically consists of a single subarray representing a single row of controls.

@property (nonatomic, copy, readonly) NSArray *standardLayoutItems

Discussion

standardLayoutItems is the array containing one or more subarrays of controls presented when the player view width is greater than compactLayoutMaximumWidth. Each subarray contains a list of BCOVPUILayoutView objects that will be presented in a BCOVPUILayoutView. Each subarray represents a control bar in the player view. standardLayoutItems typically consists of a single subarray representing a single row of controls.

Declared In

BCOVPUIBasicControlView.h

  compactLayoutItems

compactLayoutItems is the array containing one or more subarrays of controls presented when the player view width is less than compactLayoutMaximumWidth. Each subarray contains a list of BCOVPUILayoutView objects that will be presented in a BCOVPUILayoutView. Each subarray represents a control bar in the player view. compactLayoutItems typically consists of two subarrays representing two row of controls, where each row has fewer controls to better fit the width of an iPhone screen.

@property (nonatomic, copy, readonly) NSArray *compactLayoutItems

Discussion

compactLayoutItems is the array containing one or more subarrays of controls presented when the player view width is less than compactLayoutMaximumWidth. Each subarray contains a list of BCOVPUILayoutView objects that will be presented in a BCOVPUILayoutView. Each subarray represents a control bar in the player view. compactLayoutItems typically consists of two subarrays representing two row of controls, where each row has fewer controls to better fit the width of an iPhone screen.

Declared In

BCOVPUIBasicControlView.h

  allLayoutItems

Set of all layout objects. The same object instances are typically used in both the standardLayoutItems and compactLayoutItems containers. This set contains exactly one of each and every BCOVPUILayoutView object, and is used as a convenience for iterating through every item.

@property (nonatomic, copy, readonly) NSSet *allLayoutItems

Discussion

Set of all layout objects. The same object instances are typically used in both the standardLayoutItems and compactLayoutItems containers. This set contains exactly one of each and every BCOVPUILayoutView object, and is used as a convenience for iterating through every item.

Declared In

BCOVPUIBasicControlView.h

  controlBarHeight

The vertical height of each bar of controls represented in standardLayoutItems and compactLayoutItems.

@property (nonatomic, assign) CGFloat controlBarHeight

Discussion

The vertical height of each bar of controls represented in standardLayoutItems and compactLayoutItems.

Declared In

BCOVPUIBasicControlView.h

  horizontalItemSpacing

The horizontal spacing between layout views.

@property (nonatomic, assign) CGFloat horizontalItemSpacing

Discussion

The horizontal spacing between layout views.

Declared In

BCOVPUIBasicControlView.h

  compactLayoutMaximumWidth

The maximum width of the compact controls. If the controls view is smaller than this value, the compactLayoutItems will be presented. If smaller, the standardLayoutItems will be used.

@property (nonatomic, assign) CGFloat compactLayoutMaximumWidth

Discussion

The maximum width of the compact controls. If the controls view is smaller than this value, the compactLayoutItems will be presented. If smaller, the standardLayoutItems will be used.

Declared In

BCOVPUIBasicControlView.h

– initWithStandardControls:compactControls:

Initializes a BCOVPUIControlLayout layout with default settings.

- (instancetype)initWithStandardControls:(NSArray *)standardLayoutLines compactControls:(NSArray *)compactLayoutLines

Parameters

standardLayoutLines

An array of arrays, where each sub-array corresponds to one row of controls in the player control view. Each of these sub-arrays is a list of BCOVPUILayoutView objects used in the standard width layout. Each layout view typically contains a single control element and can be created with [BCOVPUIBasicControlView layoutViewWithControlFromTag:width:elasticity:]

compactLayoutLines

An array of arrays, where each sub-array corresponds to one row of controls in the player control view. Each of these sub-arrays is a list of BCOVPUILayoutView objects used in the compact width layout (typically, portrait orientation on an iPhone).

Return Value

A BCOVPUIControlLayout instance initialized with the specified controls.

Discussion

Initializes a BCOVPUIControlLayout layout with default settings.

Declared In

BCOVPUIBasicControlView.h

+ basicVODControlLayout

Convenience factory method to create a control layout designed for video on demand.

+ (instancetype)basicVODControlLayout

Discussion

Convenience factory method to create a control layout designed for video on demand.

Declared In

BCOVPUIBasicControlView.h

+ basicLiveControlLayout

Convenience factory method to create a control layout designed for a live video.

+ (instancetype)basicLiveControlLayout

Discussion

Convenience factory method to create a control layout designed for a live video.

Declared In

BCOVPUIBasicControlView.h

+ basicLiveDVRControlLayout

Convenience factory method to create a control layout designed for live DVR playback.

+ (instancetype)basicLiveDVRControlLayout

Discussion

Convenience factory method to create a control layout designed for live DVR playback.

Declared In

BCOVPUIBasicControlView.h

+ basicAODControlLayout

Convenience factory method to create a control layout designed for audio-only playback.

+ (instancetype)basicAODControlLayout

Discussion

Convenience factory method to create a control layout designed for audio-only playback.

Declared In

BCOVPUIBasicControlView.h

+ basicLiveAudioControlLayout

Convenience factory method to create a control layout designed for live audio-only playback.

+ (instancetype)basicLiveAudioControlLayout

Discussion

Convenience factory method to create a control layout designed for live audio-only playback.

Declared In

BCOVPUIBasicControlView.h

+ basicLiveDVRAudioControlLayout

Convenience factory method to create a control layout designed for live DVR audio-only playback.

+ (instancetype)basicLiveDVRAudioControlLayout

Discussion

Convenience factory method to create a control layout designed for live DVR audio-only playback.

Declared In

BCOVPUIBasicControlView.h