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 계열사의 등록 상표입니다.
  최종 업데이트: 2025-07-25(UTC)
  
  
  
    
      [[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-25(UTC)"],[],["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"]]