GCKMedia정보 클래스
미디어 항목에 관한 정보를 집계하는 클래스입니다.
NSObject, <NS copy> 및 <NSSecureCoding>을 상속합니다.
- (instancetype) initWithContentID: |
|
(NSString *) |
contentID |
streamType: |
|
(GCKMediaStreamType) |
streamType |
contentType: |
|
(NSString *) |
contentType |
metadata: |
|
(nullable GCKMediaMetadata *) |
metadata |
adBreaks: |
|
(nullable NSArray< GCKAdBreakInfo * > *) |
adBreaks |
adBreakClips: |
|
(nullable NSArray< GCKAdBreakClipInfo * > *) |
adBreakClips |
streamDuration: |
|
(NSTimeInterval) |
streamDuration |
mediaTracks: |
|
(nullable NSArray< GCKMediaTrack * > *) |
mediaTracks |
textTrackStyle: |
|
(nullable GCKMediaTextTrackStyle *) |
textTrackStyle |
customData: |
|
(nullable id) |
customData |
|
|
| |
지원이 중단되었습니다.
GCKMediaInformationBuilder를 사용하여 GCKMediaInformation 객체를 초기화합니다.
- Parameters
-
contentID | The content ID. |
streamType | The stream type. |
contentType | The content (MIME) type. |
metadata | The media item metadata. |
adBreaks | The list of ad breaks in this content. |
adBreakClips | The list of ad break clips in this content. |
streamDuration | The stream duration. |
mediaTracks | The media tracks, if any, otherwise nil . |
textTrackStyle | The text track style, if any, otherwise nil . |
customData | The custom application-specific data. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil . |
- 다음 이후:
- 4.3
- (instancetype) initWithContentID: |
|
(NSString *) |
contentID |
streamType: |
|
(GCKMediaStreamType) |
streamType |
contentType: |
|
(NSString *) |
contentType |
metadata: |
|
(nullable GCKMediaMetadata *) |
metadata |
streamDuration: |
|
(NSTimeInterval) |
streamDuration |
mediaTracks: |
|
(nullable NSArray< GCKMediaTrack * > *) |
mediaTracks |
textTrackStyle: |
|
(nullable GCKMediaTextTrackStyle *) |
textTrackStyle |
customData: |
|
(nullable id) |
customData |
|
|
| |
지원이 중단되었습니다.
GCKMediaInformationBuilder를 사용하여 GCKMediaInformation 객체를 초기화합니다.
- Parameters
-
contentID | The content ID. |
streamType | The stream type. |
contentType | The content (MIME) type. |
metadata | The media item metadata. |
streamDuration | The stream duration. |
mediaTracks | The media tracks, if any, otherwise nil . |
textTrackStyle | The text track style, if any, otherwise nil . |
customData | The custom application-specific data. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil . |
- (nullable GCKMediaTrack *) mediaTrackWithID: |
|
(NSInteger) |
trackID |
|
지정된 트랙 ID가 있는 미디어 트랙을 검색합니다.
- Parameters
-
trackID | The media track ID. |
- 반환 값
- 일치하는 GCKMediaTrack 객체 또는 지정된 ID를 가진 미디어 트랙이 없는 경우
nil
입니다.
재생할 콘텐츠의 URL입니다.
- 다음 이후:
- 4.3.4
- (NSString*) contentType |
|
readnonatomiccopy |
이 콘텐츠의 광고 시점 클립 목록입니다.
- 다음 이후:
- 3.3
- (NSTimeInterval) streamDuration |
|
readnonatomicassign |
스트림의 길이(초) 또는 INFINITY
(실시간 스트림인 경우)입니다.
Google 어시스턴트에서 사용하는 미디어의 딥 링크입니다(있는 경우).
- 다음 이후:
- 4.0
- (NSTimeInterval) startAbsoluteTime |
|
readnonatomicassign |
실시간 스트림 시작 시간의 에포크 시간(초)입니다.
실시간 TV 프로그램 또는 스포츠 게임과 같이 시작 시간이 알려진 실시간 스트림의 경우 이벤트가 시작된 에포크 시간이 됩니다. 그렇지 않으면 스트리밍이 시작되었을 때 실시간 검색 가능 범위의 시작 시간이 됩니다.
- 다음 이후:
- 4.4.1
HLS 오디오 세그먼트의 형식입니다.
- 다음 이후:
- 4.6.0
HLS 동영상 세그먼트의 형식입니다.
- 다음 이후:
- 4.6.0
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2023-12-02(UTC)
[null,null,["최종 업데이트: 2023-12-02(UTC)"],[[["The `GCKMediaInformation` class stores details about a media item, like content ID, URL, type, metadata, stream duration, and more."],["It includes properties for ad breaks, ad break clips, media tracks, text track style, and custom data."],["Two deprecated initializers are listed, with a recommendation to use `GCKMediaInformationBuilder` instead."],["The `mediaTrackWithID:` method helps find a specific media track using its ID."],["Several properties provide detailed information about the media, such as content ID, URL, stream type, metadata, ad breaks, stream duration, and custom data."]]],["The `GCKMediaInformation` class aggregates data about a media item, including its `contentID`, `contentURL`, `streamType`, and `contentType`. It also includes media metadata, such as `metadata`, `adBreaks`, `adBreakClips`, `streamDuration`, and `mediaTracks`. Actions include initializing the media item using deprecated methods, searching for a media track by its ID with `mediaTrackWithID:`, and accessing properties, which includes properties like the `textTrackStyle`, `entity`, `VMAP`, `startAbsoluteTime`, `hlsSegmentFormat`, `hlsVideoSegmentFormat`, and custom data (`customData`).\n"]]