-/** The color of the hairline. Default is light gray. To hide the hairline, just set clipsToBounds to YES, like you would do it for UIToolBar & UINavigationBar. */
-/** The custom number formatter used to format the count values. A default number formatter will be used if this property is nil. If this property is set, it takes precedence over the showsGroupingSeparators flag. */
-/** YES if the selected segment is user interaction disabled. NO if touching the segment button should still forward the actions to its targets without animating the selection indicator. Default is YES. */
- @param tintColor A color to rendered for the segment's background color.
- @param segment An index number identifying a segment in the control. It must be a number between 0 and the number of segments (numberOfSegments) minus 1; values exceeding this upper range are pinned to it.
- A segment can only have an image or a title; it can’t have both. There is no default title.
-
- @param title A string to display in the segment as its title.
- @param segment An index number identifying a segment in the control. It must be a number between 0 and the number of segments (numberOfSegments) minus 1; values exceeding this upper range are pinned to it.
- @param count A number to display in the segment as its count.
- @param segment An index number identifying a segment in the control. It must be a number between 0 and the number of segments (numberOfSegments) minus 1; values exceeding this upper range are pinned to it.
- A segment can only have an image or a title; it can’t have both. There is no default image.
-
- @param image An image object to display in the segment.
- @param segment An index number identifying a segment in the control. It must be a number between 0 and the number of segments (numberOfSegments) minus 1; values exceeding this upper range are pinned to it.
- @param enabled YES to enable the specified segment or NO to disable the segment. By default, segments are enabled.
- @param segment An index number identifying a segment in the control. It must be a number between 0 and the number of segments (numberOfSegments) minus 1; values exceeding this upper range are pinned to it.
- Returns whether the given segment is selected or not
-
- @param segment An index number identifying a segment in the control. It must be a number between 0 and the number of segments (numberOfSegments) minus 1; values exceeding this upper range are pinned to it.
- @returns Returns whether the given segment is selected or not
- @param segment An index number identifying a segment in the control. It must be a number between 0 and the number of segments (numberOfSegments) minus 1; values exceeding this upper range are pinned to it.
- @returns Returns the string (title) assigned to the receiver as content. If no title has been set, it returns nil.
- @param segment An index number identifying a segment in the control. It must be a number between 0 and the number of segments (numberOfSegments) minus 1; values exceeding this upper range are pinned to it.
- @returns Returns the number (count) assigned to the receiver as content. If no count has been set, it returns 0.
- This protocol conforms to the UIBarPositioningDelegate protocol to support the any directional decoration drawing accordingly (ie: the hairline and the selection indicator bar).
- Implement this method to position the selector indicator either at the top or bottom of the view. Default is UIBarPositionAny which means the selector indicator will be placed at the bottom. If not implemented, the value for positionForBar: will be used instead.
- NSAssert([items filteredArrayUsingPredicate:classPredicate].count == items.count, @"Cannot include different objects in the array. Please make sure to either pass an array of NSString or UIImage objects.");
- if ([abstractDotView respondsToSelector:@selector(changeActivityState:)]) {
- [abstractDotView changeActivityState:active];
- } else {
- NSLog(@"Custom view : %@ must implement an 'changeActivityState' method or you can subclass %@ to help you.", self.dotViewClass, [TAAbstractDotView class]);
- }
- } else if (self.dotImage && self.currentDotImage) {
- if (self.state==WMPlayerStatePlaying||self.state==WMPlayerStateFinished) {
-
- }else{
- [self play];
- }
- [self.loadingView stopAnimating];
- });
-}
-
-#pragma mark
-#pragma mark autoDismissControlView
--(void)autoDismissControlView{
- [self hiddenControlView];//隐藏操作栏
-}
-#pragma mark - 定时器
--(void)initTimer{
- __weak typeof(self) weakSelf = self;
- self.playbackTimeObserver = [self.player addPeriodicTimeObserverForInterval:CMTimeMakeWithSeconds(1.0, NSEC_PER_SEC) queue:dispatch_get_main_queue() /* If you pass NULL, the main queue is used. */
- /* A timescale of 1 means you can only specify whole seconds to seek to. The timescale is the number of parts per second. Use 600 for video, as Apple recommends, since it is a product of the common video frame rates like 50, 60, 25 and 24 frames per second*/