GCKMediaInfo क्लास
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह क्लास, मीडिया आइटम के बारे में जानकारी इकट्ठा करती है.
यह NSObject से इनहेरिट करता है. यह <NSCopying> को लागू करता है.
- (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 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[],["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"],null,[]]