Clase GCKMediaInformation
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Es una clase que agrega información sobre un elemento multimedia.
Hereda de 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 |
|
|
| |
Es el inicializador designado.
- 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 |
|
|
| |
Inicializador heredado; no incluye pistas de medios ni estilo de pistas de texto.
- 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:
- Usa el inicializador designado.
- (GCKMediaTrack *__nullable) mediaTrackWithID: |
|
(NSInteger) |
trackID |
|
Busca un segmento de medios con el ID de segmento determinado.
- Parameters
-
trackID | The media track ID. |
- Muestra
- El objeto GCKMediaTrack coincidente o
nil
si no hay un segmento de medios con el ID determinado.
Es el ID de contenido de esta transmisión.
Es el tipo de transmisión.
- (NSString*) contentType |
|
readnonatomiccopy |
Tipo de contenido (MIME).
Son los metadatos del elemento multimedia.
Es la lista de pausas publicitarias en este contenido.
Es la lista de clips de pausas publicitarias en este contenido.
- Desde
- 3.3
- (NSTimeInterval) streamDuration |
|
readnonatomicassign |
Es la duración de la transmisión en segundos o INFINITY
si se trata de una transmisión en vivo.
Son los segmentos de medios de esta transmisión.
Es el estilo de pista de texto de esta transmisión.
Son los datos personalizados, si los hay.
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 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"],null,[]]