My Project

- 메인 페이지
- 클래스
- 파일들

- 파일 목록
- 파일 멤버

KollusPlayerView.h
이 파일의 문서화 페이지로 가기
1 //
2 // KollusPlayerView.h
3 // KollusSDK
4 //
5 // Created by Franky.Jung on 2014. 12. 4..
6 // Copyright (c) 2014년 Catenoid. All rights reserved.
7 //
8
9 #import <AVFoundation/AVFoundation.h>
10 #import "KollusSDK.h"
11 #import "KollusPlayerDelegate.h"
12 #import "KollusPlayerDRMDelegate.h"
13 #import "KollusPlayerLMSDelegate.h"
14 #import "KollusPlayerBookmarkDelegate.h"
15 #import "KPSection.h"
16 #import "KollusChat.h"
17
18 @class KollusContent;
19 @class KollusStorage;
20 @class KollusBookmark;
21
22 @interface KollusPlayerView : UIView
23
25 @property (nonatomic, weak) id<KollusPlayerDelegate> delegate;
27 @property (nonatomic, weak) id<KollusPlayerDRMDelegate> DRMDelegate;
29 @property (nonatomic, weak) id<KollusPlayerLMSDelegate> LMSDelegate;
31 @property (nonatomic, weak) id<KollusPlayerBookmarkDelegate> bookmarkDelegate;
32
34 @property (nonatomic, weak) KollusStorage *storage;
36 @property (nonatomic, copy) NSString *contentURL;
38 @property (nonatomic) NSString *mediaContentKey;
40 @property (nonatomic, weak, readonly) KollusContent *content;
42 @property (nonatomic, unsafe_unretained) BOOL AIRateEnable;
44 @property (nonatomic, unsafe_unretained) NSTimeInterval currentPlaybackTime;
46 @property (nonatomic, unsafe_unretained, readonly) NSTimeInterval liveDuration;
49 @property (nonatomic, unsafe_unretained) float currentPlaybackRate;
51 @property (nonatomic, strong) NSArray *bookmarks;
53 @property (nonatomic, unsafe_unretained) KollusPlayerContentMode scalingMode;
55 @property (nonatomic, unsafe_unretained) CGRect playerContentFrame;
57 @property (nonatomic, unsafe_unretained) KollusPlayerRepeatMode repeatMode;
59 @property (nonatomic, unsafe_unretained, readonly) BOOL screenConnectEnabled;
61 @property (nonatomic, unsafe_unretained, readonly) BOOL bookmarkModifyEnabled;
63 @property (nonatomic, unsafe_unretained) BOOL debug;
65 @property (nonatomic, unsafe_unretained, readonly) BOOL isPreparedToPlay;
67 @property (nonatomic, unsafe_unretained, readonly) BOOL isPlaying;
69 @property (nonatomic, unsafe_unretained, readonly) BOOL isBuffering;
71 @property (nonatomic, unsafe_unretained, readonly) BOOL isSeeking;
73 @property (nonatomic, unsafe_unretained, readonly) BOOL isScrolling;
75 @property (nonatomic, unsafe_unretained, readonly) BOOL isWaterMark;
77 @property (nonatomic, unsafe_unretained, readonly) BOOL isAudioOnly;
79 @property (nonatomic, unsafe_unretained, readonly) BOOL muteOnStart;
81 @property (nonatomic, unsafe_unretained, readonly) CGSize naturalSize;
83 @property (nonatomic, unsafe_unretained, readonly) BOOL isZoomedIn;
85 @property (nonatomic, readonly) KollusPlayerType playerType;
87 @property (nonatomic, copy) NSString *customSkin;
89 @property (nonatomic) KPSection *playSection;
91 @property (nonatomic, unsafe_unretained, readonly) NSInteger nRepeatStartTime;
93 @property (nonatomic, unsafe_unretained, readonly) NSInteger nRepeatEndTime;
95 @property (nonatomic, unsafe_unretained) BOOL audioBackgroundPlay;
97 @property (nonatomic, unsafe_unretained) BOOL lmsOffDownloadContent;
99 @property (nonatomic, unsafe_unretained) NSUInteger proxyPort;
100
102 @property (nonatomic, unsafe_unretained, readonly) BOOL intro;
104 @property (nonatomic, unsafe_unretained, readonly) BOOL seekable;
106 @property (nonatomic, unsafe_unretained, readonly) NSInteger nSecSkip;
108 @property (nonatomic, unsafe_unretained, readonly) BOOL isLive;
110 @property (nonatomic, unsafe_unretained, readonly) BOOL disablePlayRate;
113 @property (nonatomic, unsafe_unretained, readonly) NSInteger nSeekableEnd;
115 @property (nonatomic, copy, readonly) NSString *strCaptionStyle;
117 @property (nonatomic, unsafe_unretained, readonly) BOOL forceNScreen;
119 @property (nonatomic, unsafe_unretained, readonly) BOOL isThumbnailEnable;
121 @property (nonatomic, unsafe_unretained, readonly) BOOL isThumbnailSync;
123 @property (nonatomic, copy) NSString *fpsCertURL;
125 @property (nonatomic, copy) NSString *fpsDrmURL;
128 @property (nonatomic, unsafe_unretained, readonly) NSInteger nOfflineBookmarkUse;
130 @property (nonatomic, unsafe_unretained, readonly) NSInteger nOfflineBookmarkDownload;
132 @property (nonatomic, unsafe_unretained, readonly) NSInteger nOfflineBookmarkReadOnly;
133
136 @property (nonatomic, copy, readonly) NSString *strVideoWaterMark;
138 @property (nonatomic, unsafe_unretained, readonly) NSInteger nVideoWaterMarkAlpha;
140 @property (nonatomic, unsafe_unretained, readonly) NSInteger nVideoWaterMarkFontSize;
142 @property (nonatomic, copy, readonly) NSString *strVideoWaterMarkFontColor;
144 @property (nonatomic, unsafe_unretained, readonly) NSInteger nVideoWaterMarkShowTime;
146 @property (nonatomic, unsafe_unretained, readonly) NSInteger nVideoWaterMarkHideTime;
148 @property (nonatomic, copy) NSString *extraDrmParam;
150 @property (nonatomic, readonly) NSMutableArray *streamInfoList;
151
153 @property (nonatomic) KollusChat *kollusChat;
154
156 @property (nonatomic, unsafe_unretained, readonly) NSInteger nextEpisodeShowTime;
158 @property (nonatomic, copy, readonly) NSString *nextEpisodeCallbackURL;
160 @property (nonatomic, readonly) NSMutableDictionary *nextEpisodeCallbackParams;
161
167 - (id)initWithContentURL:(NSString*)url;
168
174 - (id)initWithMediaContentKey:(NSString*)mck;
175
183 - (BOOL)prepareToPlayWithMode:(KollusPlayerType)type error:(NSError**)error;
184
192 - (BOOL)playWithError:(NSError **)error;
193
201 - (BOOL)pauseWithError:(NSError **)error;
202
210 - (BOOL)stopWithError:(NSError **)error;
211
219 - (BOOL)scroll:(CGPoint)distance error:(NSError **)error;
220
227 - (BOOL)scrollStopWithError:(NSError **)error;
228
236 - (BOOL)zoom:(UIPinchGestureRecognizer*)recognizer error:(NSError **)error;
237
247 - (BOOL)addBookmark:(NSTimeInterval)position value:(NSString*)value error:(NSError **)error;
248
257 - (BOOL)removeBookmark:(NSTimeInterval)position error:(NSError **)error;
258
264 - (void)setNetworkTimeOut:(NSInteger)timeOut;
265
272 - (void)setBufferingRatio:(NSInteger)bufferingRatio;
273
274
280 - (BOOL)isOpened;
281
282
286 - (BOOL) setSkipPlay;
287
291 - (void) changeBandWidth:(int)bandWidth;
292
298 - (bool)setSubTitlePath:(char*)path;
299
305 - (bool)setSubTitleSubPath:(char*)path;
306
308 @property (nonatomic, readonly) NSMutableArray* listSubTitle;
310 @property (nonatomic, readonly) NSMutableArray* listSubTitleSub;
311
312
317 - (CGRect)getVideoPosition;
318
323 - (CGFloat)getZoomValue;
324
330 - (void)setPauseOnForeground:(BOOL)bPause;
331
337 - (void)setDisableZoomOut:(BOOL)bDisable;
338
343 - (void)setDecoder:(bool)bHW;
344
349 - (void) setAIRate:(bool)bAIRate;
350
351 @end
KollusPlayerView::nSecSkip
NSInteger nSecSkip
주어진 n초후에 skip
Definition: KollusPlayerView.h:106
KollusPlayerDelegate.h
KollusPlayerView::delegate
id< KollusPlayerDelegate > delegate
플레이어 관련 델리게이트
Definition: KollusPlayerView.h:25
KollusPlayerView
Definition: KollusPlayerView.h:22
KollusPlayerView::seekable
BOOL seekable
seek 할 수 있는지
Definition: KollusPlayerView.h:104
KollusPlayerView::nextEpisodeCallbackParams
NSMutableDictionary * nextEpisodeCallbackParams
다음 회차 재생 Params
Definition: KollusPlayerView.h:160
-[KollusPlayerView getZoomValue]
CGFloat getZoomValue()
KollusPlayerView::mediaContentKey
NSString * mediaContentKey
재생할 컨텐트 Media Content Key (Local Play)
Definition: KollusPlayerView.h:38
KollusPlayerView::streamInfoList
NSMutableArray * streamInfoList
HLS ABR Information.
Definition: KollusPlayerView.h:150
KollusPlayerView::liveDuration
NSTimeInterval liveDuration
라이브 타임쉬프트 Duration
Definition: KollusPlayerView.h:46
KollusPlayerView::proxyPort
NSUInteger proxyPort
Proxy Server Port 지정
Definition: KollusPlayerView.h:99
KollusPlayerView::AIRateEnable
BOOL AIRateEnable
AI 배속 지원 여부
Definition: KollusPlayerView.h:42
KollusPlayerView::isBuffering
BOOL isBuffering
버퍼링 진행여부
Definition: KollusPlayerView.h:69
KollusPlayerView::forceNScreen
BOOL forceNScreen
강제 이어보기
Definition: KollusPlayerView.h:117
KollusPlayerView::DRMDelegate
id< KollusPlayerDRMDelegate > DRMDelegate
DRM 정보 관련 델리게이트
Definition: KollusPlayerView.h:27
KollusPlayerView::lmsOffDownloadContent
BOOL lmsOffDownloadContent
다운로드 컨텐츠 lms off
Definition: KollusPlayerView.h:97
KollusPlayerView::fpsDrmURL
NSString * fpsDrmURL
FairPlay DRM URL.
Definition: KollusPlayerView.h:125
KollusContent
Definition: KollusContent.h:11
KollusPlayerView::contentURL
NSString * contentURL
재생할 컨텐트 URL(Stream Play)
Definition: KollusPlayerView.h:36
KollusPlayerView::nextEpisodeCallbackURL
NSString * nextEpisodeCallbackURL
다음 회차 재생 URL
Definition: KollusPlayerView.h:158
KollusBookmark
Definition: KollusBookmark.h:16
KollusPlayerView::LMSDelegate
id< KollusPlayerLMSDelegate > LMSDelegate
LMS정보 관련 델리게이트
Definition: KollusPlayerView.h:29
KPSection.h
KollusPlayerView::nVideoWaterMarkHideTime
NSInteger nVideoWaterMarkHideTime
비디오 워터마크 보이지 않는 시간
Definition: KollusPlayerView.h:146
KollusPlayerBookmarkDelegate.h
KollusPlayerView::strVideoWaterMark
NSString * strVideoWaterMark
Definition: KollusPlayerView.h:136
KollusPlayerView::isLive
BOOL isLive
Live 여부
Definition: KollusPlayerView.h:108
KollusPlayerView::nOfflineBookmarkReadOnly
NSInteger nOfflineBookmarkReadOnly
추가/삭제 사용 여부( 0:사용(기본값), 1: 사용 안함)
Definition: KollusPlayerView.h:132
KollusPlayerView::strCaptionStyle
NSString * strCaptionStyle
Partner portal 설정 값 : 자막 스타일 "bg" : 자막 배경 적용, "bg"가 아니면 사용자 설정 ...
Definition: KollusPlayerView.h:115
KollusPlayerView::isWaterMark
BOOL isWaterMark
Audio water mark 여부
Definition: KollusPlayerView.h:75
KollusPlayerView::nVideoWaterMarkAlpha
NSInteger nVideoWaterMarkAlpha
비디오 워터마크 알파 값
Definition: KollusPlayerView.h:138
KollusPlayerView::currentPlaybackTime
NSTimeInterval currentPlaybackTime
컨텐트 현재시간
Definition: KollusPlayerView.h:44
KollusStorage
Definition: KollusStorage.h:14
KollusPlayerView::nRepeatStartTime
NSInteger nRepeatStartTime
Repeat Start Time.
Definition: KollusPlayerView.h:91
KollusPlayerView::content
KollusContent * content
사용중인 컨텐츠 정보
Definition: KollusPlayerView.h:40
KollusChat
Definition: KollusChat.h:13
KollusPlayerView::bookmarks
NSArray * bookmarks
북마크 정보 배열
Definition: KollusPlayerView.h:51
KollusPlayerView::nOfflineBookmarkUse
NSInteger nOfflineBookmarkUse
Definition: KollusPlayerView.h:128
KollusPlayerView::intro
BOOL intro
인트로 여부
Definition: KollusPlayerView.h:102
KollusPlayerView::strVideoWaterMarkFontColor
NSString * strVideoWaterMarkFontColor
비디오 워터마크 칼라
Definition: KollusPlayerView.h:142
KollusPlayerView::isScrolling
BOOL isScrolling
화면이동중 여부
Definition: KollusPlayerView.h:73
KollusPlayerView::isPreparedToPlay
BOOL isPreparedToPlay
재생준비 완료여부
Definition: KollusPlayerView.h:65
KollusPlayerView::bookmarkModifyEnabled
BOOL bookmarkModifyEnabled
북마크 수정권한 여부
Definition: KollusPlayerView.h:61
KollusPlayerView::isThumbnailSync
BOOL isThumbnailSync
썸네일 다운로드 방식(sync, async)
Definition: KollusPlayerView.h:121
KollusPlayerView::currentPlaybackRate
float currentPlaybackRate
Definition: KollusPlayerView.h:49
KollusPlayerView::isAudioOnly
BOOL isAudioOnly
오디오 컨텐트 여부
Definition: KollusPlayerView.h:77
KollusPlayerView::storage
KollusStorage * storage
KollusStorage 포인터
Definition: KollusPlayerView.h:34
KollusPlayerDRMDelegate.h
KollusPlayerView::nVideoWaterMarkFontSize
NSInteger nVideoWaterMarkFontSize
비디오 워터마크 폰트 크기
Definition: KollusPlayerView.h:140
KollusPlayerView::playerContentFrame
CGRect playerContentFrame
플레이어 화면 영역
Definition: KollusPlayerView.h:55
KollusPlayerView::screenConnectEnabled
BOOL screenConnectEnabled
화면출력 허용여부
Definition: KollusPlayerView.h:59
-[KollusPlayerView getVideoPosition]
CGRect getVideoPosition()
KollusPlayerView::nSeekableEnd
NSInteger nSeekableEnd
Definition: KollusPlayerView.h:113
KollusPlayerView::isThumbnailEnable
BOOL isThumbnailEnable
썸네일 사용 여부
Definition: KollusPlayerView.h:119
KollusPlayerView::isPlaying
BOOL isPlaying
재생중 여부
Definition: KollusPlayerView.h:67
KollusPlayerView::fpsCertURL
NSString * fpsCertURL
FairPlay 인증 URL.
Definition: KollusPlayerView.h:123
KollusPlayerView::disablePlayRate
BOOL disablePlayRate
배속 컨트롤 가능 여부
Definition: KollusPlayerView.h:110
KollusPlayerView::muteOnStart
BOOL muteOnStart
시작시 mute 여부
Definition: KollusPlayerView.h:79
KollusPlayerView::isZoomedIn
BOOL isZoomedIn
Zoom in 여부
Definition: KollusPlayerView.h:83
KollusPlayerView::audioBackgroundPlay
BOOL audioBackgroundPlay
백그라운드 오디오파일 재생
Definition: KollusPlayerView.h:95
KollusPlayerView::playSection
KPSection * playSection
미리보기 정보
Definition: KollusPlayerView.h:89
-[KollusPlayerView setSkipPlay]
BOOL setSkipPlay()
KollusPlayerView::listSubTitle
NSMutableArray * listSubTitle
자막 파일 리스트
Definition: KollusPlayerView.h:308
KollusPlayerView::customSkin
NSString * customSkin
플레이어 스킨정보 JSON Data
Definition: KollusPlayerView.h:87
KollusPlayerView::naturalSize
CGSize naturalSize
원본컨텐츠 영상사이즈
Definition: KollusPlayerView.h:81
KollusPlayerView::extraDrmParam
NSString * extraDrmParam
동적 drm 파라메터
Definition: KollusPlayerView.h:148
KollusChat.h
KollusPlayerView::scalingMode
KollusPlayerContentMode scalingMode
컨텐트 출력 모드
Definition: KollusPlayerView.h:53
KollusPlayerLMSDelegate.h
KollusPlayerView::nOfflineBookmarkDownload
NSInteger nOfflineBookmarkDownload
1: 인덱스만 다운로드, 2: 인덱스/북마크 모두 다운로드
Definition: KollusPlayerView.h:130
KollusPlayerView::nVideoWaterMarkShowTime
NSInteger nVideoWaterMarkShowTime
비디오 워터마크 보이는 시간
Definition: KollusPlayerView.h:144
KollusPlayerView::isSeeking
BOOL isSeeking
탐색중 여부
Definition: KollusPlayerView.h:71
KollusPlayerView::debug
BOOL debug
디버그 로그 출력여부
Definition: KollusPlayerView.h:63
KollusPlayerView::playerType
KollusPlayerType playerType
플레이어 타입
Definition: KollusPlayerView.h:85
KollusPlayerView::nextEpisodeShowTime
NSInteger nextEpisodeShowTime
다음 회차 재생 Show Time
Definition: KollusPlayerView.h:156
KollusPlayerView::repeatMode
KollusPlayerRepeatMode repeatMode
전체반복 모드
Definition: KollusPlayerView.h:57
-[KollusPlayerView isOpened]
BOOL isOpened()
KollusPlayerView::nRepeatEndTime
NSInteger nRepeatEndTime
Repeat End Time.
Definition: KollusPlayerView.h:93
KPSection
Definition: KPSection.h:11
KollusPlayerView::kollusChat
KollusChat * kollusChat
라이브 채팅
Definition: KollusPlayerView.h:153
KollusSDK.h
KollusPlayerView::listSubTitleSub
NSMutableArray * listSubTitleSub
서브자막 파일 리스트
Definition: KollusPlayerView.h:310
KollusPlayerView::bookmarkDelegate
id< KollusPlayerBookmarkDelegate > bookmarkDelegate
Bookmark 관련 델리게이트
Definition: KollusPlayerView.h:31