Kelas GCKMediaInformation
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Class yang menggabungkan informasi tentang item media.
Mewarisi NSObject, <NSWriting>, dan <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 |
|
|
| |
Tidak digunakan lagi.
Gunakan GCKMediaInformationBuilder untuk menginisialisasi objek 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 . |
- Sejak
- 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 |
|
|
| |
Tidak digunakan lagi.
Gunakan GCKMediaInformationBuilder untuk menginisialisasi objek 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 |
|
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.
URL konten yang akan diputar.
- Sejak
- 4.3.4
- (NSString*) contentType |
|
readnonatomiccopy |
Daftar jeda iklan dalam konten ini.
Daftar klip jeda iklan dalam konten ini.
- Sejak
- 3,3
- (NSTimeInterval) streamDuration |
|
readnonatomicassign |
Durasi streaming, dalam detik, atau INFINITY
jika itu adalah live stream.
Trek media untuk streaming ini.
Gaya trek teks untuk streaming ini.
Deep link untuk media seperti yang digunakan oleh Asisten Google, jika ada.
- Sejak
- 4,0
- (NSTimeInterval) startAbsoluteTime |
|
readnonatomicassign |
Waktu epoch, dalam detik, waktu mulai live stream.
Untuk live stream yang memiliki waktu mulai yang diketahui, misalnya acara TV live atau pertandingan olahraga, acara tersebut adalah waktu dimulainya acara. Jika tidak, waktu mulai dari rentang live yang dapat dicari saat streaming dimulai.
- Sejak
- 4.4.1
Format segmen audio HLS.
- Sejak
- 4.6.0
Format segmen video HLS.
- Sejak
- 4.6.0
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 2023-12-02 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Informasi yang saya butuhkan tidak ada"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Terlalu rumit/langkahnya terlalu banyak"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Sudah usang"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Masalah terjemahan"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Masalah kode / contoh"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Lainnya"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Mudah dipahami"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Memecahkan masalah saya"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Lainnya"
}]
{
"last_modified": "Terakhir diperbarui pada 2023-12-02 UTC.",
"state": ""
}