Lớp GCKHLSVideoSegment
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Lớp cung cấp các trình trợ giúp để chuyển đổi giữa GCKHLSVideoSegmentFormat
và NSString
.
Kế thừa NSObject.
Phương thức trợ giúp để chuyển đổi từ GCKHLSVideoSegmentFormat
thành NSString
.
- Trả bóng
- NSString Giá trị chuỗi tương ứng với
GCKHLSVideoSegmentFormat
. nil
cho GCKHLSVideoSegmentFormatUndefined
và các giá trị enum không hợp lệ.
- Năm thành lập
- 4.6.0
Phương thức trợ giúp để chuyển đổi từ to
GCKHLSVidoeSegmentFormat
.
Phép so sánh này không phân biệt chữ hoa chữ thường.
- Trả bóng
- GCKHLSVideoSegmentFormat Giá trị enum
GCKHLSVideoSegmentFormat
tương ứng. GCKHLSVideoSegmentFormatUndefined
cho chuỗi không hợp lệ.
- Năm thành lập
- 4.6.0
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2023-12-02 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2023-12-02 UTC."],[[["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."]]],["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"]]