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 trackHeightDiscussion
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 progressDiscussion
The amount of video progress, in seconds.
Declared In
BCOVTVProgressView.h
bufferProgress
The amount of buffer, in seconds.
@property (nonatomic, readwrite) double bufferProgressDiscussion
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 durationDiscussion
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 bumperModeActiveDiscussion
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 advertisingModeDiscussion
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 *minimumTrackTintColorDiscussion
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 *maximumTrackTintColorDiscussion
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 *bufferProgressTintColorDiscussion
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 *bumperMinimumTrackTintColorDiscussion
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 *bumperMaximumTrackTintColorDiscussion
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 *advertisingMinimumTrackTintColorDiscussion
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 *advertisingMaximumTrackTintColorDiscussion
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 *minimumTrackAdMarkerColorDiscussion
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 *bufferTrackAdMarkerColorDiscussion
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 *maximumTrackAdMarkerColorDiscussion
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. The default value (used when minimumTrackMarkerColor is nil) is RGB(0.425, 0.075, 0.26).
@property (nonatomic) UIColor *minimumTrackMarkerColorDiscussion
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
bufferTrackMarkerColor
Marker color for the buffer track. The default value (used when bufferTrackMarkerColor is nil) is white.
@property (nonatomic) UIColor *bufferTrackMarkerColorDiscussion
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 *maximumTrackMarkerColorDiscussion
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 *)colorParameters
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)positionParameters
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