GCKMediaInformation クラス
    
    
      
    
    
      
      コレクションでコンテンツを整理
    
    
      
      必要に応じて、コンテンツの保存と分類を行います。
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
メディア アイテムに関する情報を集約するクラスです。
 
NSObject、<NSCopying>、<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 
 
 
 
VMAP リクエストの構成(存在する場合)。
詳しくは、デジタル動画広告配信テンプレート 4.0 をご覧ください。nil でない場合、広告に関連する他のすべてのフィールドは無視されます。
- 開始:
 - 4.3.4 
 
 
 
  
  
      
        
          | - (NSTimeInterval) startAbsoluteTime | 
         
       
   | 
  
readnonatomicassign   | 
  
 
ライブ ストリームの開始時間のエポック時間(秒)です。
ライブテレビ番組やスポーツの試合など、開始時間がわかっているライブ配信の場合は、イベントが開始したエポック時刻になります。それ以外の場合は、ストリーミングの開始時のシーク可能なライブ範囲の開始時間になります。
- 開始:
 - 4.4.1 
 
 
 
 
  
  
  
 
  
    
    
    
  
  
  特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
  最終更新日 2025-07-25 UTC。
  
  
  
    
      [null,null,["最終更新日 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"]]