GCKHLSSegment 类参考文档
概览
提供辅助程序的类,可在 GCKHLSSegmentFormat
和 NSString
之间进行转换。
此类继承 NSObject。
类方法摘要 | |
(nullable NSString *) | + mapHLSSegmentFormatToString: |
用于将 GCKHLSSegmentFormat 转换为 NSString 的辅助方法。更多... | |
(GCKHLSSegmentFormat) | + mapHLSSegmentFormatStringToEnum: |
用于将 NSString 转换为 GCKHLSSegmentFormat 的辅助方法。更多... | |
方法详细信息
+ (nullable NSString *) mapHLSSegmentFormatToString: | (GCKHLSSegmentFormat) | hlsSegmentFormat |
用于将 GCKHLSSegmentFormat
转换为 NSString
的辅助方法。
- 返回
- NSString 与
GCKHLSSegmentFormat
对应的字符串值。对于GCKHLSSegmentFormatUndefined
和无效枚举值,返回nil
。
- 辛塞
- 4.6.0
+ (GCKHLSSegmentFormat) mapHLSSegmentFormatStringToEnum: | (NSString *) | hlsSegmentFormatString |
用于将 NSString
转换为 GCKHLSSegmentFormat
的辅助方法。
比较不区分大小写。
- 返回
- GCKHLSSegmentFormat 相应的
GCKHLSSegmentFormat
枚举值。GCKHLSSegmentFormatUndefined
表示无效字符串。
- 辛塞
- 4.6.0