GCKHLSVideoSegment Class

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

GCKHLSVideoSegment Class Reference

Overview

Class that provides helpers to convert between GCKHLSVideoSegmentFormat and NSString.

Inherits NSObject.

Class Method Summary

(nullable NSString *) + mapHLSVideoSegmentFormatToString:
 Helper method to convert from GCKHLSVideoSegmentFormat to NSString. More...
 
(GCKHLSVideoSegmentFormat+ mapHLSVideoSegmentFormatStringToEnum:
 Helper method to convert from to GCKHLSVidoeSegmentFormat. More...
 

Method Detail

+ (nullable NSString *) mapHLSVideoSegmentFormatToString: (GCKHLSVideoSegmentFormat hlsVideoSegmentFormat

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
+ (GCKHLSVideoSegmentFormat) mapHLSVideoSegmentFormatStringToEnum: (NSString *)  hlsVideoSegmentFormatString

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