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
. More...
Helper method to convert from to
GCKHLSVidoeSegmentFormat
. More...
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."],[[["\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,["# GCKHLSVideoSegment Class\n\n[Class Methods](#pub-static-methods) \nGCKHLSVideoSegment Class Reference \n\nOverview\n--------\n\nClass that provides helpers to convert between `GCKHLSVideoSegmentFormat` and `NSString`.\n\nInherits NSObject.\n\n|------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| Class Method Summary -------------------- ||\n| (nullable NSString \\*) | + [mapHLSVideoSegmentFormatToString:](/cast/docs/reference/ios/interface_g_c_k_h_l_s_video_segment#a5823ebe93c0e7dd2478979b95b136b6c) |\n| | Helper method to convert from `GCKHLSVideoSegmentFormat` to `NSString`. [More...](#a5823ebe93c0e7dd2478979b95b136b6c) |\n| ||\n| ([GCKHLSVideoSegmentFormat](/cast/docs/reference/ios/g_c_k_h_l_s_video_segment_format_8h#a43724114dd6857be31367414f0dcd8c4)) | + [mapHLSVideoSegmentFormatStringToEnum:](/cast/docs/reference/ios/interface_g_c_k_h_l_s_video_segment#ac0c2037aff41c1a9a810cad57c3846b0) |\n| | Helper method to convert from `to` `GCKHLSVidoeSegmentFormat`. [More...](#ac0c2037aff41c1a9a810cad57c3846b0) |\n| ||\n\nMethod Detail\n-------------\n\n|------------------------------------------------------------|---|------------------------------------------------------------------------------------------------------------------------------|-------------------------|---|\n| + (nullable NSString \\*) mapHLSVideoSegmentFormatToString: | | ([GCKHLSVideoSegmentFormat](/cast/docs/reference/ios/g_c_k_h_l_s_video_segment_format_8h#a43724114dd6857be31367414f0dcd8c4)) | *hlsVideoSegmentFormat* | |\n\nHelper method to convert from `GCKHLSVideoSegmentFormat` to `NSString`.\n\nReturns\n: NSString The string value corresponding to `GCKHLSVideoSegmentFormat`. `nil` for `GCKHLSVideoSegmentFormatUndefined` and invalid enum values.\n\nSince\n: 4.6.0 \n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|---------------|-------------------------------|---|\n| + ([GCKHLSVideoSegmentFormat](/cast/docs/reference/ios/g_c_k_h_l_s_video_segment_format_8h#a43724114dd6857be31367414f0dcd8c4)) mapHLSVideoSegmentFormatStringToEnum: | | (NSString \\*) | *hlsVideoSegmentFormatString* | |\n\nHelper method to convert from `to` `GCKHLSVidoeSegmentFormat`.\n\nThe comparison is case insensitive.\n\nReturns\n: GCKHLSVideoSegmentFormat The corresponding `GCKHLSVideoSegmentFormat` enum value. `GCKHLSVideoSegmentFormatUndefined` for invalid string.\n\nSince\n: 4.6.0"]]