BCOVTVProgressView Class Reference
Inherits from | UIView |
---|---|
Declared in | BCOVTVProgressView.h |
Overview
A subclass of UIView that provides a “buffered” track with markers for advertising or generic use, plus an “advertising mode” used to display progress of advertisements.
trackHeight
Height of the track area Default value is 10.
@property (nonatomic, readwrite) CGFloat trackHeight
Discussion
Height of the track area Default value is 10.
Declared In
BCOVTVProgressView.h
progress
The amount of video progress, in seconds.
@property (nonatomic, readwrite) double progress
Discussion
The amount of video progress, in seconds.
Declared In
BCOVTVProgressView.h
bufferProgress
The amount of buffer, in seconds.
@property (nonatomic, readwrite) double bufferProgress
Discussion
The amount of buffer, in seconds.
Declared In
BCOVTVProgressView.h
duration
The duration (in seconds) that the progress view represents. The default value is 30, but should be set to the length of its associated video. The duration will be set automatically for the progress view installed into the TV Player UI at playerView.controlsView.progressView.
@property (nonatomic, readwrite) double duration
Discussion
The duration (in seconds) that the progress view represents. The default value is 30, but should be set to the length of its associated video. The duration will be set automatically for the progress view installed into the TV Player UI at playerView.controlsView.progressView.
Declared In
BCOVTVProgressView.h
bumperModeActive
Set to YES to change the progress view’s UI to the bumper mode. In bumper mode this hides the buffer indicator and markers, and sets the min/max track colors to bumperMinimumTrackTintColor and bumperMaximumTrackTintColor.
@property (nonatomic, readwrite) BOOL bumperModeActive
Discussion
Set to YES to change the progress view’s UI to the bumper mode. In bumper mode this hides the buffer indicator and markers, and sets the min/max track colors to bumperMinimumTrackTintColor and bumperMaximumTrackTintColor.
Declared In
BCOVTVProgressView.h
advertisingMode
Set to YES to change the progress view’s UI to the advertising mode. In advertising mode this hides the buffer indicator and markers, and sets the min/max track colors to advertisingMinimumTrackTintColor and advertisingMaximumTrackTintColor.
@property (nonatomic, readwrite) BOOL advertisingMode
Discussion
Set to YES to change the progress view’s UI to the advertising mode. In advertising mode this hides the buffer indicator and markers, and sets the min/max track colors to advertisingMinimumTrackTintColor and advertisingMaximumTrackTintColor.
Declared In
BCOVTVProgressView.h
minimumTrackTintColor
The tint color used for the minimum track area representing normal video progress. The default minimum track color is magenta. Set to nil to restore the default color.
@property (nonatomic) UIColor *minimumTrackTintColor
Discussion
The tint color used for the minimum track area representing normal video progress. The default minimum track color is magenta. Set to nil to restore the default color.
Declared In
BCOVTVProgressView.h
maximumTrackTintColor
The tint color used for the maximum track area representing normal video progress. The default advertising minimum track color is dark gray. Set to nil to restore the default color.
@property (nonatomic) UIColor *maximumTrackTintColor
Discussion
The tint color used for the maximum track area representing normal video progress. The default advertising minimum track color is dark gray. Set to nil to restore the default color.
Declared In
BCOVTVProgressView.h
bufferProgressTintColor
The tint color used for the buffered area. The default buffer track color is white. Set to nil to restore the default color.
@property (nonatomic) UIColor *bufferProgressTintColor
Discussion
The tint color used for the buffered area. The default buffer track color is white. Set to nil to restore the default color.
Declared In
BCOVTVProgressView.h
bumperMinimumTrackTintColor
The tint color used for the minimum track area when in bumper mode. The default bumper minimum track color is purple.
@property (nonatomic) UIColor *bumperMinimumTrackTintColor
Discussion
The tint color used for the minimum track area when in bumper mode. The default bumper minimum track color is purple.
Declared In
BCOVTVProgressView.h
bumperMaximumTrackTintColor
The tint color used for the maximum track area when in bumper mode. The default bumper minimum track color is dark gray.
@property (nonatomic) UIColor *bumperMaximumTrackTintColor
Discussion
The tint color used for the maximum track area when in bumper mode. The default bumper minimum track color is dark gray.
Declared In
BCOVTVProgressView.h
advertisingMinimumTrackTintColor
The tint color used for the minimum track area when in advertising mode. This color is also used for ad markers in normal mode. The default advertising minimum track color is yellow. Set to nil to restore the default color.
@property (nonatomic) UIColor *advertisingMinimumTrackTintColor
Discussion
The tint color used for the minimum track area when in advertising mode. This color is also used for ad markers in normal mode. The default advertising minimum track color is yellow. Set to nil to restore the default color.
Declared In
BCOVTVProgressView.h
advertisingMaximumTrackTintColor
The tint color used for the maximum track area when in advertising mode. The default advertising minimum track color is dark gray. Set to nil to restore the default color.
@property (nonatomic) UIColor *advertisingMaximumTrackTintColor
Discussion
The tint color used for the maximum track area when in advertising mode. The default advertising minimum track color is dark gray. Set to nil to restore the default color.
Declared In
BCOVTVProgressView.h
minimumTrackAdMarkerColor
Ad marker color for the minimum track, the side of the progress view to the left of the current time indicator. The default value (used when minimumTrackMarkerColor is nil) is RGB(0.425, 0.075, 0.26).
@property (nonatomic) UIColor *minimumTrackAdMarkerColor
Discussion
Ad marker color for the minimum track, the side of the progress view to the left of the current time indicator. The default value (used when minimumTrackMarkerColor is nil) is RGB(0.425, 0.075, 0.26).
Declared In
BCOVTVProgressView.h
bufferTrackAdMarkerColor
Ad marker color for the buffer track. The default value (used when bufferTrackMarkerColor is nil) is white.
@property (nonatomic) UIColor *bufferTrackAdMarkerColor
Discussion
Ad marker color for the buffer track. The default value (used when bufferTrackMarkerColor is nil) is white.
Declared In
BCOVTVProgressView.h
maximumTrackAdMarkerColor
Ad marker color for the maximum track, the far right side of the progress view. The default value (used when bufferTrackMarkerColor is nil) is white.
@property (nonatomic) UIColor *maximumTrackAdMarkerColor
Discussion
Ad marker color for the maximum track, the far right side of the progress view. The default value (used when bufferTrackMarkerColor is nil) is white.
Declared In
BCOVTVProgressView.h
minimumTrackMarkerColor
Marker color for the minimum track, the side of the progress view to the left of the current time indicator when the progress view is focused. The default value (used when minimumTrackMarkerColor is nil) is RGB(0.425, 0.075, 0.26).
@property (nonatomic) UIColor *minimumTrackMarkerColor
Discussion
Marker color for the minimum track, the side of the progress view to the left of the current time indicator when the progress view is focused. The default value (used when minimumTrackMarkerColor is nil) is RGB(0.425, 0.075, 0.26).
Declared In
BCOVTVProgressView.h
minimumTrackMarkerUnfocusedColor
Marker color for the minimum track, the side of the progress view to the left of the current time indicator when the progress view is unfocused. The default value (used when minimumTrackMarkerUnfocusedColor is nil) is white with 0.25 alpha.
@property (nonatomic) UIColor *minimumTrackMarkerUnfocusedColor
Discussion
Marker color for the minimum track, the side of the progress view to the left of the current time indicator when the progress view is unfocused. The default value (used when minimumTrackMarkerUnfocusedColor is nil) is white with 0.25 alpha.
Declared In
BCOVTVProgressView.h
bufferTrackMarkerColor
Marker color for the buffer track. The default value (used when bufferTrackMarkerColor is nil) is white.
@property (nonatomic) UIColor *bufferTrackMarkerColor
Discussion
Marker color for the buffer track. The default value (used when bufferTrackMarkerColor is nil) is white.
Declared In
BCOVTVProgressView.h
maximumTrackMarkerColor
Marker color for the maximum track, the far right side of the progress view. The default value (used when bufferTrackMarkerColor is nil) is white.
@property (nonatomic) UIColor *maximumTrackMarkerColor
Discussion
Marker color for the maximum track, the far right side of the progress view. The default value (used when bufferTrackMarkerColor is nil) is white.
Declared In
BCOVTVProgressView.h
– addMarkerAt:duration:isAd:color:
Add a marker that will be displayed on the progress view at a specific location.
- (void)addMarkerAt:(double)position duration:(double)duration isAd:(BOOL)isAd color:(UIColor *)color
Parameters
position |
The location (in seconds) in the progress view where the marker should be placed. See the “duration” property for related details. |
---|---|
duration |
The duration in seconds represented by the marker; can be set to zero to draw the smallest size marker (a circle). |
isAd |
YES indicates this marker represents an ad. NO indicates this is a generic marker (drawn in white by default). Generally you should pass NO for this value since ad markers are removed and re-added each time you advance to a new session. |
color |
A UIColor that will be used to draw the marker. Can be set to nil. |
Discussion
Add a marker that will be displayed on the progress view at a specific location.
Declared In
BCOVTVProgressView.h
– removeMarkerAtPosition:
Remove all markers at the specified position.
- (void)removeMarkerAtPosition:(double)position
Parameters
position |
The location in the progress view (in seconds) of the marker to be removed. |
---|
Discussion
Remove all markers at the specified position.
Declared In
BCOVTVProgressView.h
– requestFocus
Request that this BCOVTVProgressView becomes focused.
- (void)requestFocus
Discussion
Request that this BCOVTVProgressView becomes focused.
Declared In
BCOVTVProgressView.h