GCKHLSVideoSegment Class
Stay organized with collections
Save and categorize content based on your preferences.
Class that provides helpers to convert between GCKHLSVideoSegmentFormat
and NSString
.
Inherits NSObject.
Helper method to convert from GCKHLSVideoSegmentFormat
to NSString
.
- Returns
- NSString The string value corresponding to
GCKHLSVideoSegmentFormat
. nil
for GCKHLSVideoSegmentFormatUndefined
and invalid enum values.
- Since
- 4.6.0
Helper method to convert from to
GCKHLSVidoeSegmentFormat
.
The comparison is case insensitive.
- Returns
- GCKHLSVideoSegmentFormat The corresponding
GCKHLSVideoSegmentFormat
enum value. GCKHLSVideoSegmentFormatUndefined
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 `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"]]