Google utilizza la tecnologia AI per tradurre i contenuti nella tua lingua preferita. Le traduzioni generate dall'AI potrebbero contenere errori.
Classe GCKMediaInformation
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Una classe che aggrega informazioni su un elemento multimediale.
Eredita NSObject. Implementa <NSCopying>.
| - (instancetype) initWithContentID: |
|
(NSString *) |
contentID |
| streamType: |
|
(GCKMediaStreamType) |
streamType |
| contentType: |
|
(NSString *) |
contentType |
| metadata: |
|
(GCKMediaMetadata *__nullable) |
metadata |
| streamDuration: |
|
(NSTimeInterval) |
streamDuration |
| mediaTracks: |
|
(NSArray< GCKMediaTrack * > *__nullable) |
mediaTracks |
| textTrackStyle: |
|
(GCKMediaTextTrackStyle *__nullable) |
textTrackStyle |
| customData: |
|
(id __nullable) |
customData |
|
|
| |
Inizializzatore designato.
- 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. |
| - (instancetype) initWithContentID: |
|
(NSString *) |
contentID |
| streamType: |
|
(GCKMediaStreamType) |
streamType |
| contentType: |
|
(NSString *) |
contentType |
| metadata: |
|
(GCKMediaMetadata *__nullable) |
metadata |
| streamDuration: |
|
(NSTimeInterval) |
streamDuration |
| customData: |
|
(id __nullable) |
customData |
|
|
| |
Inizializzatore legacy; non include tracce multimediali o stile delle tracce di testo.
- Parameters
-
| contentID | The content ID. |
| streamType | The stream type. |
| contentType | The content (MIME) type. |
| metadata | The media item metadata. |
| streamDuration | The stream duration. |
| customData | Custom application-specific data. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil. |
- Deprecated:
- Utilizza l'inizializzatore designato.
| - (GCKMediaTrack *__nullable) mediaTrackWithID: |
|
(NSInteger) |
trackID |
|
Cerca una traccia multimediale con l'ID traccia specificato.
- Parameters
-
| trackID | The media track ID. |
- Resi
- L'oggetto GCKMediaTrack corrispondente o
nil se non esiste una traccia multimediale con l'ID specificato.
L'ID contenuti per questo stream.
| - (NSString*) contentType |
|
readnonatomiccopy |
Il tipo di contenuto (MIME).
I metadati dell'elemento multimediale.
L'elenco delle interruzioni pubblicitarie in questi contenuti.
L'elenco dei clip delle interruzioni pubblicitarie in questi contenuti.
- Dal
- 3.3
| - (NSTimeInterval) streamDuration |
|
readnonatomicassign |
La durata dello stream, in secondi, o INFINITY se si tratta di un live streaming.
Le tracce multimediali per questo stream.
Lo stile della traccia di testo per questo stream.
I dati personalizzati, se presenti.
[null,null,["Ultimo aggiornamento 2025-07-26 UTC."],[],["The GCKMediaInformation class aggregates data about a media item, including its content ID, stream type, and content type. Key actions include initializing with content details like `contentID`, `streamType`, `contentType`, `metadata`, `streamDuration`, `mediaTracks`, `textTrackStyle`, and `customData`. It also supports legacy initialization, excluding media/text tracks. The class facilitates searching for media tracks by ID, and provides properties for ad breaks, ad break clips, stream duration, and custom data.\n"]]