StarPlayerSliderView

Objective-C

@interface StarPlayerSliderView : UIView

@property (nonatomic, weak) id<StarPlayerSliderViewDelegate> delegate;        //target delegate

@property (nonatomic, readonly) BOOL isDraging;     //프로그레스 드레그 여부

/**
 * 플레이어 재생가능 시간
 * @param duration 시간
 */
- (void)setPlayDuration:(CGFloat)duration;
/**
 * 구간반복 모드
 * @param mode 여부
 */
- (void)setRepeatMode:(BOOL)mode;

/**
 * 구간반복 최소 value
 */
- (CGFloat)getRepeatMinValue;

/**
 * 구간반복 최대 value
 */
- (CGFloat)getRepeatMaxValue;

/**
 * slider 드래그 여부
 */
- (BOOL)isSliderDragging;

/**
 * 재생 프로그레스 변경
 * @param value 프로그레스 값
 */
- (void)changePlayProgressWithValue:(CGFloat)value;
/**
 * 다운로드 프로그레스 변경 (스트리밍)
 * 스트리밍중 다운로드된 버퍼용량을 프로그레스로 표시
 * @param value 프로그레스 값
 */
- (void)changeDownloadProgressWithValue:(CGFloat)value;

/**
 * 프로그레스 초기화
 * 재생,다운로드,구간반복 프로그레스 초기화
 */
- (void)resetSliderProgress;

#pragma mark - Progress
/**
 * 프로그레스 height 조정
 * @param height 높이값
 */
- (void)setProgressViewHeight:(CGFloat)height;

/**
 * 재생 프로그레스 색상 조정
 * Default color (EC3C43)
 * @param color 색상
 */
- (void)setProgressPlayViewColor:(UIColor*)color;

/**
 * 다운로드 프로그레스 색상 조정 (스트리밍)
 * Default color (AAAAAA)
 * @param color 색상
 */
- (void)setProgressDownloadViewColor:(UIColor*)color;

/**
 * 백그라운드 프로그레스 색상 조정
 * Default color (FFFFFF)
 * @param color 색상
 */
- (void)setProgressBackgroundViewColor:(UIColor*)color;

#pragma mark - Thumb
/**
 * 재생 Thumb image 변경
 * @param image default image
 * @param pressedImage pressedImage
 */
- (void)setThumbPlayImage:(UIImage*)image pressedImage:(UIImage*)pressedImage;
/**
 * 구간반복 Thumb Min image 변경
 * @param image default image
 * @param pressedImage pressedImage
 */
- (void)setThumbRepeatMinImage:(UIImage*)image pressedImage:(UIImage*)pressedImage ;
/**
 * 구간반복 Thumb Max image 변경
 * @param image default image
 * @param pressedImage pressedImage
 */
- (void)setThumbRepeatMaxImage:(UIImage*)image pressedImage:(UIImage*)pressedImage;

@end

Swift

class StarPlayerSliderView

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, weak) id<StarPlayerSliderViewDelegate> delegate

    Swift

    weak var delegate: StarPlayerSliderViewDelegate! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isDraging

    Swift

    var isDraging: Int32 { get }
  • 플레이어 재생가능 시간

    Declaration

    Objective-C

    - (void)setPlayDuration:(CGFloat)duration;

    Swift

    func setPlayDuration(_ duration: Any!)

    Parameters

    duration

    시간

  • 구간반복 모드

    Declaration

    Objective-C

    - (void)setRepeatMode:(BOOL)mode;

    Swift

    func setRepeatMode(_ mode: Any!)

    Parameters

    mode

    여부

  • 구간반복 최소 value

    Declaration

    Objective-C

    - (CGFloat)getRepeatMinValue;

    Swift

    func getRepeatMinValue() -> Any!
  • 구간반복 최대 value

    Declaration

    Objective-C

    - (CGFloat)getRepeatMaxValue;

    Swift

    func getRepeatMaxValue() -> Any!
  • slider 드래그 여부

    Declaration

    Objective-C

    - (BOOL)isSliderDragging;

    Swift

    func isSliderDragging() -> Any!
  • 재생 프로그레스 변경

    Declaration

    Objective-C

    - (void)changePlayProgressWithValue:(CGFloat)value;

    Swift

    func changePlayProgress(withValue value: Any!)

    Parameters

    value

    프로그레스 값

  • 다운로드 프로그레스 변경 (스트리밍) 스트리밍중 다운로드된 버퍼용량을 프로그레스로 표시

    Declaration

    Objective-C

    - (void)changeDownloadProgressWithValue:(CGFloat)value;

    Swift

    func changeDownloadProgress(withValue value: Any!)

    Parameters

    value

    프로그레스 값

  • 프로그레스 초기화 재생,다운로드,구간반복 프로그레스 초기화

    Declaration

    Objective-C

    - (void)resetSliderProgress;

    Swift

    func resetSliderProgress()

Progress

  • 프로그레스 height 조정

    Declaration

    Objective-C

    - (void)setProgressViewHeight:(CGFloat)height;

    Swift

    func setProgressViewHeight(_ height: Any!)

    Parameters

    height

    높이값

  • 재생 프로그레스 색상 조정 Default color (EC3C43)

    Declaration

    Objective-C

    - (void)setProgressPlayViewColor:(id)color;

    Swift

    func setProgressPlayColor(_ color: Any!)

    Parameters

    color

    색상

  • 다운로드 프로그레스 색상 조정 (스트리밍) Default color (AAAAAA)

    Declaration

    Objective-C

    - (void)setProgressDownloadViewColor:(id)color;

    Swift

    func setProgressDownloadViewColor(_ color: Any!)

    Parameters

    color

    색상

  • 백그라운드 프로그레스 색상 조정 Default color (FFFFFF)

    Declaration

    Objective-C

    - (void)setProgressBackgroundViewColor:(id)color;

    Swift

    func setProgressBackgroundViewColor(_ color: Any!)

    Parameters

    color

    색상

Thumb

  • 재생 Thumb image 변경

    Declaration

    Objective-C

    - (void)setThumbPlayImage:(id)image pressedImage:(id)pressedImage;

    Swift

    func setThumbPlayImage(_ image: Any!, pressedImage: Any!)

    Parameters

    image

    default image

    pressedImage

    pressedImage

  • 구간반복 Thumb Min image 변경

    Declaration

    Objective-C

    - (void)setThumbRepeatMinImage:(id)image pressedImage:(id)pressedImage;

    Swift

    func setThumbRepeatMinImage(_ image: Any!, pressedImage: Any!)

    Parameters

    image

    default image

    pressedImage

    pressedImage

  • 구간반복 Thumb Max image 변경

    Declaration

    Objective-C

    - (void)setThumbRepeatMaxImage:(id)image pressedImage:(id)pressedImage;

    Swift

    func setThumbRepeatMaxImage(_ image: Any!, pressedImage: Any!)

    Parameters

    image

    default image

    pressedImage

    pressedImage