שיעור GCKHLSVideoSegment
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כיתה שמספקת משתמשים שעוזרים להשלים המרה בין GCKHLSVideoSegmentFormat
לבין NSString
.
יורש את NSObject.
שיטה עוזרת להמיר מGCKHLSVideoSegmentFormat
לNSString
.
- החזרות
- NSString ערך המחרוזת התואם ל-
GCKHLSVideoSegmentFormat
. nil
ל-GCKHLSVideoSegmentFormatUndefined
וערכים לא חוקיים של טיפוסים בני מנייה (enum).
- מאז
- 4.6.0
שיטה עוזרת להמיר מGCKHLSVidoeSegmentFormat
to
.
ההשוואה לא תלוית אותיות רישיות (case-sensitive).
- החזרות
- GCKHLSVideoSegmentFormat: הערך המתאים של
GCKHLSVideoSegmentFormat
טיפוסים בני מנייה (enum). GCKHLSVideoSegmentFormatUndefined
למחרוזת לא תקינה.
- מאז
- 4.6.0
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["\u003cp\u003eThe \u003ccode\u003eGCKHLSVideoSegment\u003c/code\u003e class provides helper methods for converting between \u003ccode\u003eGCKHLSVideoSegmentFormat\u003c/code\u003e and \u003ccode\u003eNSString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003emapHLSVideoSegmentFormatToString:\u003c/code\u003e converts a \u003ccode\u003eGCKHLSVideoSegmentFormat\u003c/code\u003e enum value to its corresponding string representation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003emapHLSVideoSegmentFormatStringToEnum:\u003c/code\u003e converts a string representation of a video segment format to its corresponding \u003ccode\u003eGCKHLSVideoSegmentFormat\u003c/code\u003e enum value.\u003c/p\u003e\n"],["\u003cp\u003eThese helper methods were introduced in version 4.6.0 of the framework.\u003c/p\u003e\n"]]],["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"],null,[]]