Klasa GCKHLSVideoSegment
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Klasa, która umożliwia pomocnikom przeprowadzanie konwersji między GCKHLSVideoSegmentFormat
a NSString
.
Dziedziczy NSObject.
Metoda pomocnicza do konwersji z GCKHLSVideoSegmentFormat
na NSString
.
- Akcje powrotne
- NSString – wartość ciągu znaków odpowiadająca
GCKHLSVideoSegmentFormat
. nil
w przypadku parametru GCKHLSVideoSegmentFormatUndefined
i nieprawidłowych wartości wyliczeniowych.
- Od
- 4.6.0
Metoda pomocnicza do konwersji z to
GCKHLSVidoeSegmentFormat
.
Wielkość liter w porównaniu nie jest rozróżniana.
- Akcje powrotne
- GCKHLSVideoSegmentFormat Odpowiednia wartość wyliczeniowa
GCKHLSVideoSegmentFormat
. GCKHLSVideoSegmentFormatUndefined
w przypadku nieprawidłowego ciągu znaków.
- Od
- 4.6.0
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGCKHLSVideoSegment\u003c/code\u003e class provides helper methods for converting between \u003ccode\u003eGCKHLSVideoSegmentFormat\u003c/code\u003e and \u003ccode\u003eNSString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003emapHLSVideoSegmentFormatToString:\u003c/code\u003e converts a \u003ccode\u003eGCKHLSVideoSegmentFormat\u003c/code\u003e enum value to its corresponding string representation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003emapHLSVideoSegmentFormatStringToEnum:\u003c/code\u003e converts a string representation of a video segment format to its corresponding \u003ccode\u003eGCKHLSVideoSegmentFormat\u003c/code\u003e enum value.\u003c/p\u003e\n"],["\u003cp\u003eThese helper methods were introduced in version 4.6.0 of the framework.\u003c/p\u003e\n"]]],["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"],null,[]]