개요
Cast 수신기에서 미디어 재생을 제어하는 클래스입니다.
이 객체의 인스턴스는 GCKSession::remoteMediaClient 속성으로 사용할 수 있습니다.
- 다음 이후:
- 3.0
NSObject를 상속합니다.
인스턴스 메서드 요약 | |
(void) | - addListener: |
이 객체의 리스너 목록에 리스너를 추가합니다. 더보기 | |
(void) | - removeListener: |
이 객체의 리스너 목록에서 리스너를 삭제합니다. 더보기 | |
(GCKRequest *) | - loadMediaWithLoadRequestData: |
요청 데이터가 있는 미디어 항목 또는 대기열의 로드를 로드하고 재생을 시작합니다. 더보기 | |
(GCKRequest *) | - loadMedia: |
기본 옵션으로 새 미디어 항목을 로드하고 재생을 시작합니다. 더보기 | |
(GCKRequest *) | - loadMedia:withOptions: |
지정된 옵션으로 새 미디어 항목을 로드하고 재생을 시작합니다. 더보기 | |
(GCKRequest *) | - loadMedia:autoplay: |
새 미디어 항목을 로드하고 선택적으로 재생을 시작합니다. 더보기 | |
(GCKRequest *) | - loadMedia:autoplay:playPosition: |
새 미디어 항목을 로드하고 선택적으로 재생을 시작합니다. 더보기 | |
(GCKRequest *) | - loadMedia:autoplay:playPosition:customData: |
새 미디어 항목을 로드하고 선택적으로 재생을 시작합니다. 더보기 | |
(GCKRequest *) | - loadMedia:autoplay:playPosition:activeTrackIDs: |
새 미디어 항목을 로드하고 선택적으로 재생을 시작합니다. 더보기 | |
(GCKRequest *) | - loadMedia:autoplay:playPosition:activeTrackIDs:customData: |
새 미디어 항목을 로드하고 선택적으로 재생을 시작합니다. 더보기 | |
(GCKRequest *) | - setPlaybackRate: |
현재 미디어 세션의 재생 속도를 설정합니다. 더보기 | |
(GCKRequest *) | - setPlaybackRate:customData: |
현재 미디어 세션의 재생 속도를 설정합니다. 더보기 | |
(GCKRequest *) | - setActiveTrackIDs: |
활성 트랙을 설정합니다. 더보기 | |
(GCKRequest *) | - setTextTrackStyle: |
텍스트 트랙 스타일을 설정합니다. 더보기 | |
(GCKRequest *) | - pause |
현재 미디어 항목의 재생을 일시중지합니다. 더보기 | |
(GCKRequest *) | - pauseWithCustomData: |
현재 미디어 항목의 재생을 일시중지합니다. 더보기 | |
(GCKRequest *) | - stop |
현재 미디어 항목의 재생을 중지합니다. 더보기 | |
(GCKRequest *) | - stopWithCustomData: |
현재 미디어 항목의 재생을 중지합니다. 더보기 | |
(GCKRequest *) | - play |
현재 미디어 항목의 재생을 시작 (또는 다시 시작)합니다. 더보기 | |
(GCKRequest *) | - playWithCustomData: |
현재 미디어 항목의 재생을 시작 (또는 다시 시작)합니다. 더보기 | |
(GCKRequest *) | - skipAd |
재생 중인 광고를 건너뛰라는 요청을 보냅니다. 더보기 | |
(GCKRequest *) | - seekWithOptions: |
현재 미디어 항목 내에서 새 위치를 찾습니다. 더보기 | |
(GCKRequest *) | - seekToTimeInterval: |
현재 미디어 항목 내에서 새 위치를 찾습니다. 더보기 | |
(GCKRequest *) | - seekToTimeInterval:resumeState: |
현재 미디어 항목 내에서 새 위치를 찾습니다. 더보기 | |
(GCKRequest *) | - seekToTimeInterval:resumeState:customData: |
현재 미디어 항목 내에서 새 위치를 찾습니다. 더보기 | |
(GCKRequest *) | - queueFetchItemIDs |
큐의 항목 ID 목록을 요청합니다. 더보기 | |
(GCKRequest *) | - queueFetchItemsForIDs: |
지정된 항목 ID가 있는 대기열 항목의 전체 정보를 요청합니다. 더보기 | |
(GCKRequest *) | - queueLoadItems:startIndex:repeatMode: |
미디어 항목의 새 대기열을 로드하고 선택적으로 재생을 시작합니다. 더보기 | |
(GCKRequest *) | - queueLoadItems:startIndex:repeatMode:customData: |
미디어 항목의 새 대기열을 로드하고 선택적으로 재생을 시작합니다. 더보기 | |
(GCKRequest *) | - queueLoadItems:startIndex:playPosition:repeatMode:customData: |
미디어 항목의 새 대기열을 로드하고 선택적으로 재생을 시작합니다. 더보기 | |
(GCKRequest *) | - queueLoadItems:withOptions: |
미디어 항목의 새 대기열을 로드하고 선택적으로 재생을 시작합니다. 더보기 | |
(GCKRequest *) | - queueInsertItems:beforeItemWithID: |
새 미디어 항목 목록을 대기열에 삽입합니다. 더보기 | |
(GCKRequest *) | - queueInsertItems:beforeItemWithID:customData: |
새 미디어 항목 목록을 대기열에 삽입합니다. 더보기 | |
(GCKRequest *) | - queueInsertItem:beforeItemWithID: |
큐에 단일 항목을 삽입하는 편리한 메서드입니다. 더보기 | |
(GCKRequest *) | - queueInsertAndPlayItem:beforeItemWithID: |
큐에 단일 항목을 삽입하고 현재 항목으로 만드는 편리한 메서드입니다. 더보기 | |
(GCKRequest *) | - queueInsertAndPlayItem:beforeItemWithID:playPosition:customData: |
큐에 단일 항목을 삽입하고 현재 항목으로 만드는 편리한 메서드입니다. 더보기 | |
(GCKRequest *) | - queueUpdateItems: |
큐를 업데이트합니다. 더보기 | |
(GCKRequest *) | - queueUpdateItems:customData: |
큐를 업데이트합니다. 더보기 | |
(GCKRequest *) | - queueRemoveItemsWithIDs: |
대기열에서 미디어 항목 목록을 삭제합니다. 더보기 | |
(GCKRequest *) | - queueRemoveItemsWithIDs:customData: |
대기열에서 미디어 항목 목록을 삭제합니다. 더보기 | |
(GCKRequest *) | - queueRemoveItemWithID: |
큐에서 단일 항목을 삭제하는 편리한 메서드입니다. 더보기 | |
(GCKRequest *) | - queueReorderItemsWithIDs:insertBeforeItemWithID: |
대기열의 미디어 항목 목록을 재정렬합니다. 더보기 | |
(GCKRequest *) | - queueReorderItemsWithIDs:insertBeforeItemWithID:customData: |
대기열의 미디어 항목 목록을 재정렬합니다. 더보기 | |
(GCKRequest *) | - queueMoveItemWithID:beforeItemWithID: |
큐에서 단일 항목을 이동하는 편리한 메서드입니다. 더보기 | |
(GCKRequest *) | - queueJumpToItemWithID: |
큐에서 지정된 ID가 있는 항목으로 이동합니다. 더보기 | |
(GCKRequest *) | - queueJumpToItemWithID:customData: |
큐에서 지정된 ID가 있는 항목으로 이동합니다. 더보기 | |
(GCKRequest *) | - queueJumpToItemWithID:playPosition:customData: |
큐에서 지정된 ID가 있는 항목으로 이동합니다. 더보기 | |
(GCKRequest *) | - queueNextItem |
대기열의 다음 항목으로 이동합니다. 더보기 | |
(GCKRequest *) | - queuePreviousItem |
대기열의 이전 항목으로 이동합니다. 더보기 | |
(GCKRequest *) | - queueSetRepeatMode: |
큐 반복 모드를 설정합니다. 더보기 | |
(GCKRequest *) | - setStreamVolume: |
스트림 볼륨을 설정합니다. 더보기 | |
(GCKRequest *) | - setStreamVolume:customData: |
스트림 볼륨을 설정합니다. 더보기 | |
(GCKRequest *) | - setStreamMuted: |
스트림 음소거 여부를 설정합니다. 더보기 | |
(GCKRequest *) | - setStreamMuted:customData: |
스트림 음소거 여부를 설정합니다. 더보기 | |
(GCKRequest *) | - requestStatus |
수신자로부터 업데이트된 미디어 상태 정보를 요청합니다. 더보기 | |
(NSTimeInterval) | - approximateStreamPosition |
마지막으로 수신된 스트림 정보와 업데이트 후 경과된 실제 경과 시간을 기준으로 계산된 대략적인 스트림 위치를 반환합니다. 더보기 | |
(NSTimeInterval) | - approximateLiveSeekableRangeStart |
마지막으로 수신된 스트림 정보와 해당 업데이트 이후 경과된 실제 경과 시간으로 계산된 탐색 가능한 범위의 대략적인 시작 위치를 반환합니다. 더보기 | |
(NSTimeInterval) | - approximateLiveSeekableRangeEnd |
마지막으로 수신된 스트림 정보와 해당 업데이트 이후 경과된 실제 경과 시간으로 계산된 탐색 가능한 범위의 대략적인 종료 위치를 반환합니다. 더보기 | |
(void) | - notifyDidStartMediaSession |
미디어 세션이 시작될 때마다, 즉 새 미디어가 원격 플레이어에 성공적으로 로드된 직후에 서브클래스에서 호출합니다. 더보기 | |
(void) | - notifyDidUpdateMediaStatus |
클라이언트의 mediaStatus 객체가 변경될 때마다 서브클래스에 의해 호출됩니다. 더보기 | |
(void) | - notifyDidUpdateQueue |
클라이언트에서 관리하는 미디어 큐가 변경될 때마다 서브클래스에서 호출합니다. 더보기 | |
(void) | - notifyDidUpdatePreloadStatus |
클라이언트 GCKMediaStatus의 GCKMediaStatus::preloadedItemID가 변경될 때마다 서브클래스에 의해 호출됩니다. 더보기 | |
(void) | - notifyDidUpdateMetadata |
메타데이터가 변경될 때마다 서브클래스에 의해 호출됩니다. 더보기 | |
(void) | - notifyDidReceiveQueueItemIDs: |
미디어 큐 항목 ID 목록이 수신될 때마다 서브클래스에서 호출합니다. 더보기 | |
(void) | - notifyDidInsertQueueItemsWithIDs:beforeItemWithID: |
연속된 큐 항목 시퀀스가 큐에 삽입될 때마다 서브클래스에서 호출합니다. 더보기 | |
(void) | - notifyDidUpdateQueueItemsWithIDs: |
대기열에서 기존 대기열 항목이 업데이트될 때마다 서브클래스에서 호출합니다. 더보기 | |
(void) | - notifyDidRemoveQueueItemsWithIDs: |
큐의 연속 시퀀스가 큐에서 삭제될 때마다 서브클래스에서 호출합니다. 더보기 | |
(void) | - notifyDidReceiveQueueItems: |
큐 항목이 수신될 때마다 서브클래스에서 호출합니다. 더보기 | |
속성 요약 | |
BOOL | connected |
이 객체가 세션에 연결되어 있는지 여부를 나타내는 플래그입니다. 더보기 | |
GCKMediaStatus * | mediaStatus |
미디어 제어 채널에서 보고한 현재 미디어 상태입니다. 더보기 | |
GCKMediaQueue * | mediaQueue |
미디어 대기열 더보기 | |
NSTimeInterval | timeSinceLastMediaStatusUpdate |
마지막 미디어 상태 업데이트가 수신된 후 경과한 시간입니다. 더보기 | |
BOOL | playingLiveStream |
이 클라이언트가 실시간 스트림을 재생하는지 여부를 나타내는 플래그입니다. 더보기 | |
id < GCKRemoteMediaClientAdInfoParserDelegate > | adInfoParserDelegate |
GCKMediaStatus 객체의 맞춤 데이터에서 광고 시점 정보를 추출할 수 있는 대리자 더보기 | |
메서드 세부정보
- (void) addListener: | (id< GCKRemoteMediaClientListener >) | listener |
이 객체의 리스너 목록에 리스너를 추가합니다.
추가된 리스너는 약하게 유지되므로 예상치 못한 할당 해제를 방지하기 위해 유지해야 합니다.
- Parameters
-
listener The listener to add.
- (void) removeListener: | (id< GCKRemoteMediaClientListener >) | listener |
이 객체의 리스너 목록에서 리스너를 삭제합니다.
- Parameters
-
listener The listener to remove.
- (GCKRequest *) loadMediaWithLoadRequestData: | (GCKMediaLoadRequestData *) | requestData |
요청 데이터가 있는 미디어 항목 또는 대기열의 로드를 로드하고 재생을 시작합니다.
- Parameters
-
requestData Describes the media load request.
- 반환 값
- 이 요청을 추적하기 위한 GCKRequest 객체입니다.
- 다음 이후:
- 4.4.1
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo |
기본 옵션으로 새 미디어 항목을 로드하고 재생을 시작합니다.
단일 옵션이 있거나 큐에 추가 옵션이 있는 큐를 지원하는 고급 로드 명령어인 loadMediaWithLoadRequestData:를 대신 사용하는 것이 좋습니다.
- Parameters
-
mediaInfo Describes the media item to load.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
withOptions: | (GCKMediaLoadOptions *) | options | |
지정된 옵션으로 새 미디어 항목을 로드하고 재생을 시작합니다.
단일 옵션이 있거나 큐에 추가 옵션이 있는 큐를 지원하는 고급 로드 명령어인 loadMediaWithLoadRequestData:를 대신 사용하는 것이 좋습니다.
- Parameters
-
mediaInfo Describes the media item to load. options The load options for this request.
- 반환 값
- 이 요청을 추적하기 위한 GCKRequest 객체입니다.
- 다음 이후:
- 4.0
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
새 미디어 항목을 로드하고 선택적으로 재생을 시작합니다.
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- Deprecated:
- loadMediaWithLoadRequestData:를 사용합니다.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
새 미디어 항목을 로드하고 선택적으로 재생을 시작합니다.
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- Deprecated:
- loadMediaWithLoadRequestData:를 사용합니다.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (nullable id) | customData | |
새 미디어 항목을 로드하고 선택적으로 재생을 시작합니다.
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- Deprecated:
- loadMediaWithLoadRequestData:를 사용합니다.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
activeTrackIDs: | (nullable NSArray< NSNumber * > *) | activeTrackIDs | |
새 미디어 항목을 로드하고 선택적으로 재생을 시작합니다.
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position. activeTrackIDs An array of integers specifying the active tracks. May be nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- Deprecated:
- loadMediaWithLoadRequestData:를 사용합니다.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
activeTrackIDs: | (nullable NSArray< NSNumber * > *) | activeTrackIDs | |
customData: | (nullable id) | customData | |
새 미디어 항목을 로드하고 선택적으로 재생을 시작합니다.
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position. activeTrackIDs An array of integers specifying the active tracks. May be nil
.customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- Deprecated:
- loadMediaWithLoadRequestData:를 사용합니다.
- (GCKRequest *) setPlaybackRate: | (float) | playbackRate |
현재 미디어 세션의 재생 속도를 설정합니다.
- Parameters
-
playbackRate The new playback rate.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- 다음 이후:
- 4.0
- (GCKRequest *) setPlaybackRate: | (float) | playbackRate | |
customData: | (nullable id) | customData | |
현재 미디어 세션의 재생 속도를 설정합니다.
- Parameters
-
playbackRate The new playback rate, which must be between GCKMediaLoadOptions::kGCKMediaMinPlaybackRate and GCKMediaLoadOptions::kGCKMediaMaxPlaybackRate. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- 다음 이후:
- 4.0
- (GCKRequest *) setActiveTrackIDs: | (nullable NSArray< NSNumber * > *) | activeTrackIDs |
활성 트랙을 설정합니다.
현재 미디어 상태가 없으면 요청이 실패합니다.
- Parameters
-
activeTrackIDs An array of integers specifying the active tracks. May be empty or nil
to disable any currently active tracks.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) setTextTrackStyle: | (nullable GCKMediaTextTrackStyle *) | textTrackStyle |
텍스트 트랙 스타일을 설정합니다.
현재 미디어 상태가 없으면 요청이 실패합니다.
- Parameters
-
textTrackStyle The text track style. The style will not be changed if this is nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) pause |
- (GCKRequest *) pauseWithCustomData: | (nullable id) | customData |
현재 미디어 항목의 재생을 일시중지합니다.
현재 미디어 상태가 없으면 요청이 실패합니다.
- Parameters
-
customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) stop |
- (GCKRequest *) stopWithCustomData: | (nullable id) | customData |
현재 미디어 항목의 재생을 중지합니다.
현재 로드 중인 큐는 삭제됩니다. 현재 미디어 상태가 없으면 요청이 실패합니다.
- Parameters
-
customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) play |
현재 미디어 항목의 재생을 시작 (또는 다시 시작)합니다.
스트림 시작 시 항상 재생이 시작됩니다. 현재 미디어 상태가 없으면 요청이 실패합니다.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) playWithCustomData: | (nullable id) | customData |
현재 미디어 항목의 재생을 시작 (또는 다시 시작)합니다.
스트림 시작 시 항상 재생이 시작됩니다. 현재 미디어 상태가 없으면 요청이 실패합니다.
- Parameters
-
customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) skipAd |
- (GCKRequest *) seekWithOptions: | (GCKMediaSeekOptions *) | options |
현재 미디어 항목 내에서 새 위치를 찾습니다.
현재 미디어 상태가 없으면 요청이 실패합니다.
- Parameters
-
options The seek options for the request.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- 다음 이후:
- 4.0
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position |
현재 미디어 항목 내에서 새 위치를 찾습니다.
현재 미디어 상태가 없으면 요청이 실패합니다.
- Parameters
-
position The new position from the beginning of the stream.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- Deprecated:
- SeekWithOptions:.를 사용하세요.
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position | |
resumeState: | (GCKMediaResumeState) | resumeState | |
현재 미디어 항목 내에서 새 위치를 찾습니다.
현재 미디어 상태가 없으면 요청이 실패합니다.
- Parameters
-
position The new position interval from the beginning of the stream. resumeState The action to take after the seek operation has finished.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- Deprecated:
- SeekWithOptions:.를 사용하세요.
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position | |
resumeState: | (GCKMediaResumeState) | resumeState | |
customData: | (nullable id) | customData | |
현재 미디어 항목 내에서 새 위치를 찾습니다.
현재 미디어 상태가 없으면 요청이 실패합니다.
- Parameters
-
position The new position from the beginning of the stream. resumeState The action to take after the seek operation has finished. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- Deprecated:
- SeekWithOptions:.를 사용하세요.
- (GCKRequest *) queueFetchItemIDs |
큐의 항목 ID 목록을 요청합니다.
결과는 대리자 GCKRemoteMediaClientDelegate::remoteMediaClient:didReceiveQueueItemIDs:에 전달됩니다.
- 반환 값
- 이 요청을 추적하기 위한 GCKRequest 객체입니다.
- 다음 이후:
- 4.1.
- (GCKRequest *) queueFetchItemsForIDs: | (NSArray< NSNumber * > *) | queueItemIDs |
지정된 항목 ID가 있는 대기열 항목의 전체 정보를 요청합니다.
결과는 대리자 GCKRemoteMediaClientDelegate::remoteMediaClient:didReceiveQueueItems:에 전달됩니다.
- 반환 값
- 이 요청을 추적하기 위한 GCKRequest 객체입니다.
- 다음 이후:
- 4.1.
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
미디어 항목의 새 대기열을 로드하고 선택적으로 재생을 시작합니다.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.startIndex The index of the item in the items array that should be played first. repeatMode The repeat mode for playing the queue.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- Deprecated:
- loadMediaWithLoadRequestData:를 사용합니다.
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
customData: | (nullable id) | customData | |
미디어 항목의 새 대기열을 로드하고 선택적으로 재생을 시작합니다.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.startIndex The index of the item in the items array that should be played first. repeatMode The repeat mode for playing the queue. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- Deprecated:
- loadMediaWithLoadRequestData:를 사용합니다.
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
playPosition: | (NSTimeInterval) | playPosition | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
customData: | (nullable id) | customData | |
미디어 항목의 새 대기열을 로드하고 선택적으로 재생을 시작합니다.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.startIndex The index of the item in the items array that should be played first. playPosition The initial playback position for the item when it is first played, relative to the beginning of the stream. This value is ignored when the same item is played again, for example when the queue repeats, or the item is later jumped to. In those cases the item's startTime is used. repeatMode The repeat mode for playing the queue. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- Deprecated:
- loadMediaWithLoadRequestData:를 사용합니다.
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
withOptions: | (GCKMediaQueueLoadOptions *) | options | |
미디어 항목의 새 대기열을 로드하고 선택적으로 재생을 시작합니다.
단일 옵션이 있거나 큐에 추가 옵션이 있는 큐를 지원하는 고급 로드 명령어인 loadMediaWithLoadRequestData:를 대신 사용하는 것이 좋습니다.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.options The load options used to load the queue items, as defined by GCKMediaQueueLoadOptions
- 다음 이후:
- 4.3.1.
- (GCKRequest *) queueInsertItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
새 미디어 항목 목록을 대기열에 삽입합니다.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to insert. Must not be nil
or empty.beforeItemID The ID of the item that will be located immediately after the inserted list. If the value is kGCKMediaQueueInvalidItemID, the inserted list will be appended to the end of the queue.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queueInsertItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
customData: | (nullable id) | customData | |
새 미디어 항목 목록을 대기열에 삽입합니다.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to insert. Must not be nil
or empty.beforeItemID ID of the item that will be located immediately after the inserted list. If the value is kGCKMediaQueueInvalidItemID, the inserted list will be appended to the end of the queue. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queueInsertItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
큐에 단일 항목을 삽입하는 편리한 메서드입니다.
- Parameters
-
item The item to insert. beforeItemID The ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queueInsertAndPlayItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
큐에 단일 항목을 삽입하고 현재 항목으로 만드는 편리한 메서드입니다.
- Parameters
-
item The item to insert. beforeItemID The ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queueInsertAndPlayItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (nullable id) | customData | |
큐에 단일 항목을 삽입하고 현재 항목으로 만드는 편리한 메서드입니다.
- Parameters
-
item The item to insert. beforeItemID The ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue. playPosition The initial playback position for the item when it is first played, relative to the beginning of the stream. This value is ignored when the same item is played again, for example when the queue repeats, or the item is later jumped to. In those cases the item's startTime is used. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queueUpdateItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems |
- (GCKRequest *) queueUpdateItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
customData: | (nullable id) | customData | |
큐를 업데이트합니다.
- Parameters
-
queueItems The list of updated items. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queueRemoveItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs |
대기열에서 미디어 항목 목록을 삭제합니다.
따라서 대기열이 비워지면 현재 미디어 세션이 종료됩니다.
- Parameters
-
itemIDs An array of media item IDs identifying the items to remove. Must not be nil
or empty.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queueRemoveItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs | |
customData: | (nullable id) | customData | |
대기열에서 미디어 항목 목록을 삭제합니다.
따라서 대기열이 비워지면 현재 미디어 세션이 종료됩니다.
- Parameters
-
itemIDs An array of media item IDs identifying the items to remove. Must not be nil
or empty.customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queueRemoveItemWithID: | (NSUInteger) | itemID |
큐에서 단일 항목을 삭제하는 편리한 메서드입니다.
- Parameters
-
itemID The ID of the item to remove.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queueReorderItemsWithIDs: | (NSArray< NSNumber * > *) | queueItemIDs | |
insertBeforeItemWithID: | (NSUInteger) | beforeItemID | |
대기열의 미디어 항목 목록을 재정렬합니다.
- Parameters
-
queueItemIDs An array of media item IDs identifying the items to reorder. Must not be nil
or empty.beforeItemID ID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the reordered list will be appended at the end of the queue.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queueReorderItemsWithIDs: | (NSArray< NSNumber * > *) | queueItemIDs | |
insertBeforeItemWithID: | (NSUInteger) | beforeItemID | |
customData: | (nullable id) | customData | |
대기열의 미디어 항목 목록을 재정렬합니다.
- Parameters
-
queueItemIDs An array of media item IDs identifying the items to reorder. Must not be nil
or empty.beforeItemID The ID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the reordered list will be moved to the end of the queue. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queueMoveItemWithID: | (NSUInteger) | itemID | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
큐에서 단일 항목을 이동하는 편리한 메서드입니다.
- Parameters
-
itemID The ID of the item to move. beforeItemID The ID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the item will be moved to the end of the queue.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID |
큐에서 지정된 ID가 있는 항목으로 이동합니다.
- Parameters
-
itemID The ID of the item to jump to.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID | |
customData: | (nullable id) | customData | |
큐에서 지정된 ID가 있는 항목으로 이동합니다.
- Parameters
-
itemID The ID of the item to jump to. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (nullable id) | customData | |
큐에서 지정된 ID가 있는 항목으로 이동합니다.
- Parameters
-
itemID The ID of the item to jump to. playPosition The initial playback position for the item when it is first played, relative to the beginning of the stream. This value is ignored when the same item is played again, for example when the queue repeats, or the item is later jumped to. In those cases the item's startTime is used. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queueNextItem |
대기열의 다음 항목으로 이동합니다.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queuePreviousItem |
대기열의 이전 항목으로 이동합니다.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) queueSetRepeatMode: | (GCKMediaRepeatMode) | repeatMode |
- (GCKRequest *) setStreamVolume: | (float) | volume |
스트림 볼륨을 설정합니다.
현재 미디어 세션이 없으면 요청이 실패합니다.
- Parameters
-
volume The new volume, in the range [0.0 - 1.0].
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) setStreamVolume: | (float) | volume | |
customData: | (nullable id) | customData | |
스트림 볼륨을 설정합니다.
현재 미디어 세션이 없으면 요청이 실패합니다.
- Parameters
-
volume The new volume, in the range [0.0 - 1.0]. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) setStreamMuted: | (BOOL) | muted |
스트림 음소거 여부를 설정합니다.
현재 미디어 세션이 없으면 요청이 실패합니다.
- Parameters
-
muted Whether the stream should be muted or unmuted.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) setStreamMuted: | (BOOL) | muted | |
customData: | (nullable id) | customData | |
스트림 음소거 여부를 설정합니다.
현재 미디어 세션이 없으면 요청이 실패합니다.
- Parameters
-
muted Whether the stream should be muted or unmuted. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (GCKRequest *) requestStatus |
수신자로부터 업데이트된 미디어 상태 정보를 요청합니다.
- 반환 값
- 이 요청을 추적하는 GCKRequest 객체입니다.
- (NSTimeInterval) approximateStreamPosition |
마지막으로 수신된 스트림 정보와 업데이트 후 경과된 실제 경과 시간을 기준으로 계산된 대략적인 스트림 위치를 반환합니다.
채널이 연결되어 있지 않거나 현재 로드된 미디어가 없으면 0을 반환합니다.
- (NSTimeInterval) approximateLiveSeekableRangeStart |
마지막으로 수신된 스트림 정보와 해당 업데이트 이후 경과된 실제 경과 시간으로 계산된 탐색 가능한 범위의 대략적인 시작 위치를 반환합니다.
채널이 연결되어 있지 않거나 현재 로드된 미디어가 없으면 0을 반환합니다. 스트림이 실시간 스트림이 아니거나 검색 가능한 범위가 없는 경우 kGCKInvalidTimeInterval
를 반환합니다.
- 다음 이후:
- 4.4.1
- (NSTimeInterval) approximateLiveSeekableRangeEnd |
마지막으로 수신된 스트림 정보와 해당 업데이트 이후 경과된 실제 경과 시간으로 계산된 탐색 가능한 범위의 대략적인 종료 위치를 반환합니다.
채널이 연결되어 있지 않거나 현재 로드된 미디어가 없으면 0을 반환합니다. 스트림이 실시간 스트림이 아니거나 검색 가능한 범위가 없는 경우 kGCKInvalidTimeInterval
를 반환합니다.
- 다음 이후:
- 4.4.1
- (void) notifyDidStartMediaSession |
미디어 세션이 시작될 때마다, 즉 새 미디어가 원격 플레이어에 성공적으로 로드된 직후에 서브클래스에서 호출합니다.
카테고리 GCKRemoteMediaClient(Protected)에서 제공합니다.
- (void) notifyDidUpdateMediaStatus |
클라이언트의 mediaStatus 객체가 변경될 때마다 서브클래스에 의해 호출됩니다.
카테고리 GCKRemoteMediaClient(Protected)에서 제공합니다.
- (void) notifyDidUpdateQueue |
클라이언트에서 관리하는 미디어 큐가 변경될 때마다 서브클래스에서 호출합니다.
카테고리 GCKRemoteMediaClient(Protected)에서 제공합니다.
- (void) notifyDidUpdatePreloadStatus |
클라이언트 GCKMediaStatus의 GCKMediaStatus::preloadedItemID가 변경될 때마다 서브클래스에 의해 호출됩니다.
카테고리 GCKRemoteMediaClient(Protected)에서 제공합니다.
- (void) notifyDidUpdateMetadata |
메타데이터가 변경될 때마다 서브클래스에 의해 호출됩니다.
카테고리 GCKRemoteMediaClient(Protected)에서 제공합니다.
- (void) notifyDidReceiveQueueItemIDs: | (NSArray< NSNumber * > *) | itemIDs |
미디어 큐 항목 ID 목록이 수신될 때마다 서브클래스에서 호출합니다.
- Parameters
-
itemIDs The list of queue item IDs.
- 다음 이후:
- 4.1.
카테고리 GCKRemoteMediaClient(Protected)에서 제공합니다.
- (void) notifyDidInsertQueueItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs | |
beforeItemWithID: | (GCKMediaQueueItemID) | beforeItemID | |
연속된 큐 항목 시퀀스가 큐에 삽입될 때마다 서브클래스에서 호출합니다.
- Parameters
-
itemIDs The list of queue item IDs identifying the items that were inserted. beforeItemID The ID of the queue item in front of which the new items were inserted, or kGCKInvalidQueueItemID if the items were appended to the end of the queue.
- 다음 이후:
- 4.1.
카테고리 GCKRemoteMediaClient(Protected)에서 제공합니다.
- (void) notifyDidUpdateQueueItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs |
대기열에서 기존 대기열 항목이 업데이트될 때마다 서브클래스에서 호출합니다.
- Parameters
-
itemIDs The list of queue item IDs identifying the items that were updated.
- 다음 이후:
- 4.1.
카테고리 GCKRemoteMediaClient(Protected)에서 제공합니다.
- (void) notifyDidRemoveQueueItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs |
큐의 연속 시퀀스가 큐에서 삭제될 때마다 서브클래스에서 호출합니다.
- Parameters
-
itemIDs The list of queue item IDs identifying the items that were removed.
- 다음 이후:
- 4.1.
카테고리 GCKRemoteMediaClient(Protected)에서 제공합니다.
- (void) notifyDidReceiveQueueItems: | (NSArray< GCKMediaQueueItem * > *) | items |
큐 항목이 수신될 때마다 서브클래스에서 호출합니다.
- Parameters
-
items The list of queue items.
- 다음 이후:
- 4.1.
카테고리 GCKRemoteMediaClient(Protected)에서 제공합니다.
부동산 세부정보
|
readnonatomicassign |
이 객체가 세션에 연결되어 있는지 여부를 나타내는 플래그입니다.
|
readnonatomicstrong |
미디어 제어 채널에서 보고한 현재 미디어 상태입니다.
|
readnonatomicstrong |
미디어 대기열
- 다음 이후:
- 4.3.4
|
readnonatomicassign |
마지막 미디어 상태 업데이트가 수신된 후 경과한 시간입니다.
미디어 상태가 아직 수신되지 않은 경우 이 값은 NAN이 됩니다.
|
readnonatomicassign |
이 클라이언트가 실시간 스트림을 재생하는지 여부를 나타내는 플래그입니다.
- 다음 이후:
- 4.4.1
|
readwritenonatomicweak |
GCKMediaStatus 객체의 맞춤 데이터에서 광고 시점 정보를 추출할 수 있는 대리자
- Deprecated:
- 대신 GCKAdBreakStatus를 사용하세요.