מחלקת GCKMediaInformation
כיתה שאוספת מידע על פריט מדיה.
עוברת בירושה את NSObject. יישום <NSCopy>.
- (instancetype) initWithContentID: |
|
(NSString *) |
contentID |
streamType: |
|
(GCKMediaStreamType) |
streamType |
contentType: |
|
(NSString *) |
contentType |
metadata: |
|
(GCKMediaMetadata *__nullable) |
metadata |
streamDuration: |
|
(NSTimeInterval) |
streamDuration |
mediaTracks: |
|
(NSArray< GCKMediaTrack * > *__nullable) |
mediaTracks |
textTrackStyle: |
|
(GCKMediaTextTrackStyle *__nullable) |
textTrackStyle |
customData: |
|
(id __nullable) |
customData |
|
|
| |
מאתחל ייעודי.
- Parameters
-
contentID | The content ID. |
streamType | The stream type. |
contentType | The content (MIME) type. |
metadata | The media item metadata. |
streamDuration | The stream duration. |
mediaTracks | The media tracks, if any, otherwise nil . |
textTrackStyle | The text track style, if any, otherwise nil . |
customData | The custom application-specific data. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil . |
- (instancetype) initWithContentID: |
|
(NSString *) |
contentID |
streamType: |
|
(GCKMediaStreamType) |
streamType |
contentType: |
|
(NSString *) |
contentType |
metadata: |
|
(GCKMediaMetadata *__nullable) |
metadata |
streamDuration: |
|
(NSTimeInterval) |
streamDuration |
customData: |
|
(id __nullable) |
customData |
|
|
| |
מפעיל מדור קודם. לא כולל רצועות מדיה או סגנון רצועת טקסט.
- Parameters
-
contentID | The content ID. |
streamType | The stream type. |
contentType | The content (MIME) type. |
metadata | The media item metadata. |
streamDuration | The stream duration. |
customData | Custom application-specific data. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil . |
- Deprecated:
- יש להשתמש באתחול שצוין.
- (GCKMediaTrack *__nullable) mediaTrackWithID: |
|
(NSInteger) |
trackID |
|
מחפשת טראק במדיה עם המזהה שלו.
- Parameters
-
trackID | The media track ID. |
- החזרות
- אובייקט GCKMediaTrack התואם, או
nil
אם אין טראק של מדיה עם המזהה הנתון.
מזהה התוכן של מקור הנתונים הזה.
- (NSString*) contentType |
|
readnonatomiccopy |
המטא-נתונים של פריט המדיה.
רשימת ההפסקות למודעות בתוכן הזה.
רשימת הקליפים של ההפסקות למודעות בתוכן הזה.
- סינסה
- 3.3
- (NSTimeInterval) streamDuration |
|
readnonatomicassign |
אורך השידור, בשניות או INFINITY
אם מדובר בשידור חי.
רצועות המדיה עבור השידור הזה.
סגנון רצועת הטקסט של השידור הזה.
הנתונים המותאמים אישית, אם יש כאלה.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2022-12-06 (שעון UTC).
[null,null,["עדכון אחרון: 2022-12-06 (שעון UTC)."],[[["The `GCKMediaInformation` class stores details about a media item, such as its content ID, stream type, content type, metadata, stream duration, and custom data."],["It provides methods to initialize media information objects with or without media tracks and text track styles."],["Developers can access properties like `contentID`, `streamType`, `contentType`, `metadata`, `streamDuration`, and more to retrieve media information."],["It includes methods to find specific media tracks using their track IDs."],["The class inherits from `NSObject` and implements the `NSCopying` protocol."]]],["The GCKMediaInformation class aggregates data about a media item, including its content ID, stream type, and content type. Key actions include initializing with content details like `contentID`, `streamType`, `contentType`, `metadata`, `streamDuration`, `mediaTracks`, `textTrackStyle`, and `customData`. It also supports legacy initialization, excluding media/text tracks. The class facilitates searching for media tracks by ID, and provides properties for ad breaks, ad break clips, stream duration, and custom data.\n"]]