GCKHLSSegment Class
Stay organized with collections
Save and categorize content based on your preferences.
Class that provides helpers to convert between GCKHLSSegmentFormat
and NSString
.
Inherits NSObject.
Helper method to convert from GCKHLSSegmentFormat
to NSString
.
- Returns
- NSString The string value corresponding to
GCKHLSSegmentFormat
. nil
for GCKHLSSegmentFormatUndefined
and invalid enum values.
- Since
- 4.6.0
Helper method to convert from NSString
to GCKHLSSegmentFormat
.
The comparison is case insensitive.
- Returns
- GCKHLSSegmentFormat The corresponding
GCKHLSSegmentFormat
enum value. GCKHLSSegmentFormatUndefined
for invalid string.
- Since
- 4.6.0
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `GCKHLSSegment` class provides helper methods for converting between `GCKHLSSegmentFormat` and `NSString`."],["`mapHLSSegmentFormatToString:` converts a `GCKHLSSegmentFormat` value to its corresponding `NSString` representation."],["`mapHLSSegmentFormatStringToEnum:` converts an `NSString` representation of a segment format to its corresponding `GCKHLSSegmentFormat` enum value."],["Both helper methods were introduced in version 4.6.0 of the framework."]]],["The `GCKHLSSegment` class provides two helper methods for converting between `GCKHLSSegmentFormat` and `NSString`. `mapHLSSegmentFormatToString:` converts a `GCKHLSSegmentFormat` value to its corresponding string representation, returning `nil` for undefined or invalid values. `mapHLSSegmentFormatStringToEnum:` converts a string to its corresponding `GCKHLSSegmentFormat` enum value, performing a case-insensitive comparison and returning `GCKHLSSegmentFormatUndefined` for invalid strings. These methods were introduced in version 4.6.0.\n"]]