BCOVPUIBasicControlView Class Reference

Inherits from UIView
Declared in BCOVPUIBasicControlView.h

Overview

Basic controls view.

  backgroundView

The background view for the controls. This view has a subview of class UIVisualEffectView with a dark blur effect.

@property (nonatomic, weak, readonly) UIView *backgroundView

Discussion

The background view for the controls. This view has a subview of class UIVisualEffectView with a dark blur effect.

Declared In

BCOVPUIBasicControlView.h

  layout

The layout used organize the controls.

@property (nonatomic, copy) BCOVPUIControlLayout *layout

Discussion

The layout used organize the controls.

Declared In

BCOVPUIBasicControlView.h

  playbackButton

The playback button

@property (nonatomic, weak, readonly) BCOVPUIButton *playbackButton

Discussion

The playback button

Declared In

BCOVPUIBasicControlView.h

  jumpBackButton

The jump back button

@property (nonatomic, weak, readonly) BCOVPUIButton *jumpBackButton

Discussion

The jump back button

Declared In

BCOVPUIBasicControlView.h

  currentTimeLabel

The current time (elapsed) label

@property (nonatomic, weak, readonly) UILabel *currentTimeLabel

Discussion

The current time (elapsed) label

Declared In

BCOVPUIBasicControlView.h

  timeSeparatorLabel

The time separator label

@property (nonatomic, weak, readonly) UILabel *timeSeparatorLabel

Discussion

The time separator label

Declared In

BCOVPUIBasicControlView.h

  durationLabel

The duration label

@property (nonatomic, weak, readonly) UILabel *durationLabel

Discussion

The duration label

Declared In

BCOVPUIBasicControlView.h

  progressSlider

The progress slider

@property (nonatomic, weak, readonly) BCOVPUISlider *progressSlider

Discussion

The progress slider

Declared In

BCOVPUIBasicControlView.h

  closedCaptionButton

The closed caption button

@property (nonatomic, weak, readonly) UIButton *closedCaptionButton

Discussion

The closed caption button

Declared In

BCOVPUIBasicControlView.h

  screenModeButton

The screen mode (fullscreen) button

@property (nonatomic, weak, readonly) BCOVPUIButton *screenModeButton

Discussion

The screen mode (fullscreen) button

Declared In

BCOVPUIBasicControlView.h

  video360Button

Only appears on iPhone devices

@property (nonatomic, weak, readonly) BCOVPUIButton *video360Button

Discussion

Only appears on iPhone devices

Declared In

BCOVPUIBasicControlView.h

  externalRouteView

The external route (airplay) button

@property (nonatomic, weak, readonly) MPVolumeView *externalRouteView

Discussion

The external route (airplay) button

Declared In

BCOVPUIBasicControlView.h

  liveButton

The “go to live” button

@property (nonatomic, weak, readonly) BCOVPUIButton *liveButton

Discussion

The “go to live” button

Declared In

BCOVPUIBasicControlView.h

  closedCaptionEnabled

Yes if the closedCaptionButton is visible. No if invisible.

@property (nonatomic, readonly, getter=isClosedCaptionEnabled) BOOL closedCaptionEnabled

Discussion

Yes if the closedCaptionButton is visible. No if invisible.

Declared In

BCOVPUIBasicControlView.h

  externalRouteEnabled

Yes if the externalRouteView is visible. No if invisible.

@property (nonatomic, assign, readonly, getter=isExternalRouteEnabled) BOOL externalRouteEnabled

Discussion

Yes if the externalRouteView is visible. No if invisible.

Declared In

BCOVPUIBasicControlView.h

  advertisingMode

Set to YES to change the control view’s UI to the advertising state.

@property (nonatomic, readwrite) BOOL advertisingMode

Discussion

Set to YES to change the control view’s UI to the advertising state.

Declared In

BCOVPUIBasicControlView.h

+ layoutViewWithControlFromTag:width:elasticity:

Convenience factory method for creating a layout view with a subview determined by the specified tag. Layout views are bundled into arrays and used to create a BCOVPUIControlLayout instance.

+ (BCOVPUILayoutView *)layoutViewWithControlFromTag:(BCOVPUIViewTag)tag width:(CGFloat)width elasticity:(CGFloat)elasticity

Parameters

tag

A tag value indicating the desired control or empty layout view.

width

The minimum width of the new layout view. Pass kBCOVPUILayoutUseDefaultValue to use the default width for the specific control.

elasticity

The relative amount that a layout view can expand to fill space. Elasticity is relative to other layout views.

Return Value

A BCOVPUILayoutView instance initialized with a subview specified by the tag, width, and elasticity.

Discussion

Convenience factory method for creating a layout view with a subview determined by the specified tag. Layout views are bundled into arrays and used to create a BCOVPUIControlLayout instance.

Declared In

BCOVPUIBasicControlView.h

+ basicControlViewWithVODLayout

Convenience factory method to create a control view with a control layout for Video On Demand streams.

+ (instancetype)basicControlViewWithVODLayout

Return Value

A BCOVPUIBasicControlView instance initialzed with a control layout for Video On Demand streams.

Discussion

Convenience factory method to create a control view with a control layout for Video On Demand streams.

Declared In

BCOVPUIBasicControlView.h

+ basicControlViewWithLiveLayout

Convenience factory method to create a control view with a control layout for live video streams.

+ (instancetype)basicControlViewWithLiveLayout

Return Value

A BCOVPUIBasicControlView instance initialzed with a control layout for live video streams.

Discussion

Convenience factory method to create a control view with a control layout for live video streams.

Declared In

BCOVPUIBasicControlView.h

+ basicControlViewWithLiveDVRLayout

Convenience factory method to create a control view with a control layout for live DVR video streams.

+ (instancetype)basicControlViewWithLiveDVRLayout

Return Value

A BCOVPUIBasicControlView instance initialzed with a control layout for live DVR video streams.

Discussion

Convenience factory method to create a control view with a control layout for live DVR video streams.

Declared In

BCOVPUIBasicControlView.h

– enableControls:

Enable or disable all the standard controls

- (void)enableControls:(BOOL)enabled

Parameters

enabled

YES to enable; NO to disable.

Discussion

Enable or disable all the standard controls

Declared In

BCOVPUIBasicControlView.h

– setFontSizeForLabels:

Updates all label components with the specified font size.

- (void)setFontSizeForLabels:(CGFloat)fontSize

Parameters

fontSize

The font size to update components with.

Discussion

Updates all label components with the specified font size.

Declared In

BCOVPUIBasicControlView.h

– setFontSizeForButtons:

Updates all button components with the specified font size.

- (void)setFontSizeForButtons:(CGFloat)fontSize

Parameters

fontSize

The font size to update components with.

Discussion

Updates all button components with the specified font size.

Declared In

BCOVPUIBasicControlView.h

– setTextColorForLabels:

Updates all label components with the specified font color.

- (void)setTextColorForLabels:(UIColor *)textColor

Parameters

textColor

The font size to update components with.

Discussion

Updates all label components with the specified font color.

Declared In

BCOVPUIBasicControlView.h

– setTitleColorForButtons:forState:

Updates all button components with the specified color for state.

- (void)setTitleColorForButtons:(UIColor *)titleColor forState:(UIControlState)state

Parameters

titleColor

The color of the title to set.

state

Controls state to set.

Discussion

Updates all button components with the specified color for state.

Declared In

BCOVPUIBasicControlView.h

+ createPUIControlItemWithViewTag:

Constructs the UI control item with the specified tag. Returned object may be a BCOVPUIButton, BCOVPUISlider, UILabel, or MPVolumeView depending on the specified tag. This method is typically only used by layoutViewWithControlFromTag:width:elasticity: to create the control placed inside a BCOVPUILayoutView. Default styles will be applied.

+ (UIView *)createPUIControlItemWithViewTag:(BCOVPUIViewTag)tag

Parameters

tag

The tag to construct.

Return Value

Initialized UI component.

Discussion

Constructs the UI control item with the specified tag. Returned object may be a BCOVPUIButton, BCOVPUISlider, UILabel, or MPVolumeView depending on the specified tag. This method is typically only used by layoutViewWithControlFromTag:width:elasticity: to create the control placed inside a BCOVPUILayoutView. Default styles will be applied.

Declared In

BCOVPUIBasicControlView.h