Kelas GCKMediaInformation
Class yang menggabungkan informasi tentang item media.
Mewarisi NSObject. Mengimplementasikan <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 |
|
|
| |
Penginisialisasi yang ditentukan.
- 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 |
|
|
| |
Penginisialisasi lama; tidak menyertakan trek media atau gaya trek teks.
- 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:
- Gunakan penginisialisasi yang ditetapkan.
- (GCKMediaTrack *__nullable) mediaTrackWithID: |
|
(NSInteger) |
trackID |
|
Menelusuri trek media dengan ID trek yang diberikan.
- Parameters
-
trackID | The media track ID. |
- Hasil
- Objek GCKMediaTrack yang cocok, atau
nil
jika tidak ada trek media dengan ID yang diberikan.
ID konten untuk streaming ini.
- (NSString*) contentType |
|
readnonatomiccopy |
Daftar jeda iklan di konten ini.
Daftar klip jeda iklan dalam konten ini.
- Since
- 3,3
- (NSTimeInterval) streamDuration |
|
readnonatomicassign |
Durasi streaming, dalam detik, atau INFINITY
jika merupakan live stream.
Media melacak aliran ini.
Gaya trek teks untuk streaming ini.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2022-12-06 UTC.
[null,null,["Terakhir diperbarui pada 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."]]],[]]