개요
미디어 대기열 항목을 나타내는 클래스입니다.
이 객체의 인스턴스는 변경할 수 없습니다.
이 클래스는 발신자 애플리케이션과 수신자 애플리케이션 간의 양방향 통신에 사용됩니다. 전송자는 수신기 애플리케이션에 미디어 항목 목록을 로드하거나 삽입하도록 이를 구성합니다. 수신자의 GCKMediaStatus에는 이 클래스의 인스턴스로 표현된 항목 목록도 포함됩니다.
로드되면 수신기는 동일한 미디어가 여러 번 로드되더라도 각 GCKMediaQueueItem에 고유한 항목 ID를 할당합니다.
NSObject를 상속합니다. <NSCopying>을 구현합니다.
인스턴스 메서드 요약 | |
(instancetype) | - initWithMediaInformation:autoplay:startTime:preloadTime:activeTrackIDs:customData: |
지정된 속성으로 새 GCKMediaQueueItem을 생성합니다. 더보기 | |
(instancetype) | - initWithMediaInformation:autoplay:startTime:playbackDuration:preloadTime:activeTrackIDs:customData: |
지정된 이니셜라이저입니다. 더보기 | |
(void) | - clearItemID |
상품 ID를 삭제 (할당 해제)합니다. 더보기 | |
(instancetype) | - mediaQueueItemModifiedWithBlock: |
지정된 블록에 의해 수정된 이 GCKMediaQueueItem의 복사본을 반환합니다. 더보기 | |
숙박 시설 요약 | |
GCKMediaInformation * | mediaInformation |
이 항목과 연결된 미디어 정보입니다. 더보기 | |
NSUInteger | itemID |
상품 ID 또는 아직 할당되지 않은 경우 kGCKMediaQueueInvalidItemID 더보기 | |
BOOL | autoplay |
항목이 대기열의 현재 항목이 될 때 자동으로 재생을 시작해야 하는지 여부입니다. 더보기 | |
NSTimeInterval | startTime |
항목의 시작 시간(초)입니다. 더보기 | |
NSTimeInterval | playbackDuration |
항목의 재생 시간(초)입니다. 스트림의 실제 시간을 사용해야 하는 경우 INFINITY 입니다. 더보기 | |
NSTimeInterval | preloadTime |
수신자가 이 항목의 사전 로드를 시작해야 하는 이전 항목이 종료되기 전 시간(초)입니다. 더보기 | |
NSArray< NSNumber * > * | activeTrackIDs |
이 항목의 활성 트랙 ID입니다. 더보기 | |
id | customData |
이 항목과 연결된 맞춤 데이터(있는 경우)입니다. 더보기 | |
메소드 세부정보
- (instancetype) initWithMediaInformation: | (GCKMediaInformation *) | mediaInformation | |
autoplay: | (BOOL) | autoplay | |
startTime: | (NSTimeInterval) | startTime | |
preloadTime: | (NSTimeInterval) | preloadTime | |
activeTrackIDs: | (NSArray< NSNumber * > *__nullable) | activeTrackIDs | |
customData: | (id __nullable) | customData | |
지정된 속성으로 새 GCKMediaQueueItem을 생성합니다.
자세한 내용은 해당 속성의 문서를 참고하세요.
- Parameters
-
mediaInformation The media information for the item. autoplay The autoplay state for this item. startTime The start time of the item, in seconds. May be kGCKInvalidTimeInterval if this item refers to a live stream or if the default start time should be used. preloadTime The preload time for the item, in seconds. May be kGCKInvalidTimeInterval to indicate no preload time. activeTrackIDs The active track IDs for the item. May be nil
.customData Any custom data to associate with the item. May be nil
.
- (instancetype) initWithMediaInformation: | (GCKMediaInformation *) | mediaInformation | |
autoplay: | (BOOL) | autoplay | |
startTime: | (NSTimeInterval) | startTime | |
playbackDuration: | (NSTimeInterval) | playbackDuration | |
preloadTime: | (NSTimeInterval) | preloadTime | |
activeTrackIDs: | (NSArray< NSNumber * > *__nullable) | activeTrackIDs | |
customData: | (id __nullable) | customData | |
지정된 이니셜라이저입니다.
지정된 속성으로 새 GCKMediaQueueItem을 생성합니다. 자세한 내용은 해당 속성의 문서를 참고하세요.
- Parameters
-
mediaInformation The media information for the item. autoplay The autoplay state for this item. startTime The start time of the item, in seconds. May be kGCKInvalidTimeInterval if this item refers to a live stream or if the default start time should be used. playbackDuration The playback duration of the item, in seconds. May be kGCKInvalidTimeInterval to indicate no preload time. preloadTime The preload time for the item, in seconds. activeTrackIDs The active track IDs for the item. May be nil
.customData Any custom data to associate with the item. May be nil
.
- (void) clearItemID |
상품 ID를 삭제 (할당 해제)합니다.
기존 인스턴스를 재사용하기 위해 호출해야 합니다(예: 대기열에 다시 추가).
- (instancetype) mediaQueueItemModifiedWithBlock: | (void(^)(GCKMediaQueueItemBuilder *builder)) | block |
지정된 블록에 의해 수정된 이 GCKMediaQueueItem의 복사본을 반환합니다.
- Parameters
-
block A block that receives a GCKMediaQueueItemBuilder which can be used to modify attributes of the copy. It is not necessary to call the builder's build (GCKMediaQueueItemBuilder) method within the block, as this method will do that automatically when the block completes.
- 반환 값
- 이 항목의 수정된 사본입니다.
숙박 시설 세부정보
|
readnonatomicstrong |
이 항목과 연결된 미디어 정보입니다.
|
readnonatomicassign |
상품 ID 또는 아직 할당되지 않은 경우 kGCKMediaQueueInvalidItemID
|
readnonatomicassign |
항목이 대기열의 현재 항목이 될 때 자동으로 재생을 시작해야 하는지 여부입니다.
NO
인 경우 이 항목에 도달하면 대기열이 일시중지됩니다. 기본값은 YES
입니다.
|
readnonatomicassign |
항목의 시작 시간(초)입니다.
기본값은 kGCKInvalidTimeInterval이며, 이는 시작 시간이 설정되지 않았음을 나타냅니다.
|
readnonatomicassign |
항목의 재생 시간(초)입니다. 스트림의 실제 시간을 사용해야 하는 경우 INFINITY
입니다.
|
readnonatomicassign |
수신자가 이 항목의 사전 로드를 시작해야 하는 이전 항목이 종료되기 전 시간(초)입니다.
기본값은 kGCKInvalidTimeInterval이며, 이는 미리 로드 시간이 설정되지 않았음을 나타냅니다.
|
readnonatomicstrong |
이 항목의 활성 트랙 ID입니다.
|
readnonatomicstrong |
이 항목과 연결된 맞춤 데이터(있는 경우)입니다.