VLCTransportBar.h 1.23 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*****************************************************************************
 * VLC for iOS
 *****************************************************************************
 * Copyright (c) 2015 VideoLAN. All rights reserved.
 * $Id$
 *
 * Authors: Tobias Conradi <videolan # tobias-conradi.de>
 *
 * Refer to the COPYING file of the official project for license.
 *****************************************************************************/

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

16 17 18 19 20 21 22
typedef NS_ENUM(NSUInteger, VLCTransportBarHint) {
    VLCTransportBarHintNone,
    VLCTransportBarHintScanForward,
    VLCTransportBarHintJumpForward10,
    VLCTransportBarHintJumpBackward10,
};

23 24 25 26 27 28 29 30 31
IB_DESIGNABLE @interface VLCTransportBar : UIView
@property (nonatomic) IBInspectable CGFloat bufferStartFraction;
@property (nonatomic) IBInspectable CGFloat bufferEndFraction;
@property (nonatomic) IBInspectable CGFloat playbackFraction;
@property (nonatomic) IBInspectable CGFloat scrubbingFraction;
@property (nonatomic, getter=isScrubbing) IBInspectable BOOL scrubbing;

@property (nonatomic, readonly) UILabel *markerTimeLabel;
@property (nonatomic, readonly) UILabel *remainingTimeLabel;
32

33
@property (nonatomic) VLCTransportBarHint hint;
34 35 36
@end

NS_ASSUME_NONNULL_END