Clase GCKMediaInformation
Una clase que agrega información sobre un elemento multimedia.
Hereda NSObject. Implementa <NSCopy>.
- (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 |
|
|
| |
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 contenido multimedia ni estilos 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 una pista multimedia con el ID de pista proporcionado.
- Parameters
-
trackID | The media track ID. |
- Resultado que se muestra
- El objeto GCKMediaTrack correspondiente, o
nil
si no hay una pista multimedia con el ID determinado.
El ID de contenido de esta transmisión continua.
- (NSString*) contentType |
|
readnonatomiccopy |
Es el tipo de contenido (MIME).
Los metadatos del elemento multimedia.
La lista de pausas publicitarias en este contenido.
La lista de clips de pausas publicitarias de este contenido.
- Since
- 3.3
- (NSTimeInterval) streamDuration |
|
readnonatomicassign |
Es la duración de la transmisión, en segundos o INFINITY
, si es una transmisión en vivo.
Las pistas multimedia de esta transmisión.
El estilo de la pista de texto para esta transmisión continua.
Los datos personalizados, si existen.
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: 2022-12-06 (UTC)
[null,null,["Última actualización: 2022-12-06 (UTC)"],[[["The `GCKMediaInformation` class stores details about a media item, such as its content ID, stream type, content type, metadata, stream duration, and custom data."],["It provides methods to initialize media information objects with or without media tracks and text track styles."],["Developers can access properties like `contentID`, `streamType`, `contentType`, `metadata`, `streamDuration`, and more to retrieve media information."],["It includes methods to find specific media tracks using their track IDs."],["The class inherits from `NSObject` and implements the `NSCopying` protocol."]]],[]]