GCKHLSSegment Class

  • 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.

GCKHLSSegment Class Reference

Overview

Class that provides helpers to convert between GCKHLSSegmentFormat and NSString.

Inherits NSObject.

Class Method Summary

(nullable NSString *) + mapHLSSegmentFormatToString:
 Helper method to convert from GCKHLSSegmentFormat to NSString. More...
 
(GCKHLSSegmentFormat+ mapHLSSegmentFormatStringToEnum:
 Helper method to convert from NSString to GCKHLSSegmentFormat. More...
 

Method Detail

+ (nullable NSString *) mapHLSSegmentFormatToString: (GCKHLSSegmentFormat hlsSegmentFormat

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
+ (GCKHLSSegmentFormat) mapHLSSegmentFormatStringToEnum: (NSString *)  hlsSegmentFormatString

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