Kelas GCKHLSVideoSegment
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Class yang menyediakan helper untuk mengonversi antara GCKHLSVideoSegmentFormat
dan NSString
.
Mewarisi NSObject.
Metode helper untuk mengonversi dari GCKHLSVideoSegmentFormat
ke NSString
.
- Hasil
- NSString Nilai string yang sesuai dengan
GCKHLSVideoSegmentFormat
. nil
untuk GCKHLSVideoSegmentFormatUndefined
dan nilai enum yang tidak valid.
- Sejak
- 4.6.0
Metode helper untuk mengonversi dari to
GCKHLSVidoeSegmentFormat
.
Perbandingannya tidak peka huruf besar/kecil.
- Hasil
- GCKHLSVideoSegmentFormat Nilai enum
GCKHLSVideoSegmentFormat
yang sesuai. GCKHLSVideoSegmentFormatUndefined
untuk string yang tidak valid.
- 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.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2023-12-02 UTC."],[[["The `GCKHLSVideoSegment` class provides helper methods for converting between `GCKHLSVideoSegmentFormat` and `NSString`."],["`mapHLSVideoSegmentFormatToString:` converts a `GCKHLSVideoSegmentFormat` enum value to its corresponding string representation."],["`mapHLSVideoSegmentFormatStringToEnum:` converts a string representation of a video segment format to its corresponding `GCKHLSVideoSegmentFormat` enum value."],["These helper methods were introduced in version 4.6.0 of the framework."]]],["The `GCKHLSVideoSegment` class provides methods to convert between `GCKHLSVideoSegmentFormat` and `NSString`. The `mapHLSVideoSegmentFormatToString:` method converts a `GCKHLSVideoSegmentFormat` to its corresponding `NSString` representation, returning `nil` for undefined or invalid values. Conversely, `mapHLSVideoSegmentFormatStringToEnum:` converts an `NSString` to a `GCKHLSVideoSegmentFormat` enum, handling comparisons in a case-insensitive manner and returning `GCKHLSVideoSegmentFormatUndefined` for invalid strings.\n"]]