StarPlayerContentModel

Objective-C

@interface StarPlayerContentModel : NSObject <NSCopying>

@property(nonatomic, strong)    NSString        *contentUrl;        //컨텐츠 경로 (저장경로 또는 스트리밍의 경우 원본 경로)
@property(nonatomic, strong)    NSString        *originalUrl;       //원본 경로(cnd url), Event와 SCMS 기능 사용시 정보 전송용으로 필요, Event(begin_content,playing_content,end_content) 파라메터 항목 중 content_url에 해당, SCMS 파라메터 항목 중 url에 해당)
@property(nonatomic, strong)    NSString        *contentId;         //컨텐츠 id, Event와 SCMS 기능 사용시 정보 전송용으로 필요
@property(nonatomic, strong)    NSString        *contentToken;      //컨텐츠용 보안토큰
@property(nonatomic, strong)    NSString        *userId;            //사용자 id, Event와 SCMS 기능 사용시 정보 전송용으로 필요
@property(nonatomic, strong)    NSString        *spkId;             //spk id (drm packaging 된 파일의 key, 영상 decrypt를 위해 필요)

@property (nonatomic, assign)   NSUInteger      beginTime;          //영상 시작 시간(이어보기)
@property (nonatomic, assign)   NSUInteger      watchedPlayTime;    //누적 시청 시간, Event 전송시 이전 시청 시간을 더하기 위해 사용(play_time 파라메터에 해당, 동영상 총 영상 시간을 초과할 수 없음), 단위 : sec, millisec

@property(nonatomic, strong)    NSString        *referer;           //referer url, SCMS를 사용하거나(정보 전송용) 접근할 cdn 서버에 referer 보안이 적용되었을 경우에 필요

@property (nonatomic, assign)   BOOL            isHlsStreaming;    //hls스트리밍 여부(hls url에 m3u 또는 m3u8 확장자가 포함되어 있지 않다면 해당 변수를 통해 hls스트리밍 여부를 설정)

//워터마크 텍스트
@property (nonatomic, strong)   NSString        *wmText;            //워터마크 텍스트
@property (nonatomic, strong)   NSString        *wmTextColor;       //워터마크 텍스트 컬러, RGBA(16진수)
@property (nonatomic, assign)   NSUInteger      wmTextSize;         //워터마크 텍스트 사이즈
//워터마크 이미지
@property (nonatomic, strong)   NSData          *wmImage;           //워터마크 이미지 데이터
//워터마크 기타 속성
@property (nonatomic, strong)   NSString        *wmHorizontalAlign; //워터마크 수평 정렬(.LEFT, .CENTER, .RIGHT, .RANDOM)
@property (nonatomic, strong)   NSString        *wmVerticalAlign;   //워터마크 수직 정렬(.TOP, .CENTER, .BOTTOM, .RANDOM)

//트래커
@property (nonatomic, strong)   NSString        *tracker;           //트래커 데이터  ex)'5:101,804:812,949:1038' (재생된 구간 정보)

@end

Swift

class StarPlayerContentModel

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, strong)    NSString        *contentUrl
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, strong)    NSString        *originalUrl
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, strong)    NSString        *contentId
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, strong)    NSString        *contentToken
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, strong)    NSString        *userId
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, strong)    NSString        *spkId
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger beginTime

    Swift

    var beginTime: Int32 { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger watchedPlayTime

    Swift

    var watchedPlayTime: Int32 { get set }
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, strong)    NSString        *referer
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL isHlsStreaming

    Swift

    var isHlsStreaming: Int32 { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *wmText
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *wmTextColor
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger wmTextSize

    Swift

    var wmTextSize: Int32 { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) NSData *wmImage
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *wmHorizontalAlign
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *wmVerticalAlign
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *tracker