# GCKHLSVideoSegment Class

[Class Methods](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_h_l_s_video_segment#pub-static-methods) GCKHLSVideoSegment Class Reference

## Overview

Class that provides helpers to convert between `GCKHLSVideoSegmentFormat` and `NSString`.

Inherits NSObject.

|---|---|
| ## Class Method Summary ||
| (nullable NSString \*) | + [mapHLSVideoSegmentFormatToString:](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_h_l_s_video_segment#a5823ebe93c0e7dd2478979b95b136b6c) |
|   | Helper method to convert from `GCKHLSVideoSegmentFormat` to `NSString`. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_h_l_s_video_segment#a5823ebe93c0e7dd2478979b95b136b6c) |
|   ||
| ([GCKHLSVideoSegmentFormat](https://developers.google.com/cast/docs/reference/ios/g_c_k_h_l_s_video_segment_format_8h#a43724114dd6857be31367414f0dcd8c4)) | + [mapHLSVideoSegmentFormatStringToEnum:](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_h_l_s_video_segment#ac0c2037aff41c1a9a810cad57c3846b0) |
|   | Helper method to convert from `to` `GCKHLSVidoeSegmentFormat`. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_h_l_s_video_segment#ac0c2037aff41c1a9a810cad57c3846b0) |
|   ||

## Method Detail

|---|---|---|---|---|
| + (nullable NSString \*) mapHLSVideoSegmentFormatToString: |   | ([GCKHLSVideoSegmentFormat](https://developers.google.com/cast/docs/reference/ios/g_c_k_h_l_s_video_segment_format_8h#a43724114dd6857be31367414f0dcd8c4)) | *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](https://developers.google.com/cast/docs/reference/ios/g_c_k_h_l_s_video_segment_format_8h#a43724114dd6857be31367414f0dcd8c4)) 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