GCKMediaInfoBuilder क्लास
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
नए या डिराइव किए गए GCKMediaInformation इंस्टेंस बनाने के लिए, बिल्डर ऑब्जेक्ट.
बिल्डर का इस्तेमाल, किसी मौजूदा विकल्प से GCKMediaInformation पाने के लिए किया जा सकता है:
इसका इस्तेमाल, शुरुआत से नया GCKMediaInformation बनाने के लिए भी किया जा सकता है:
- से
- 4.0
NSObject को इनहेरिट करता है.
- (instancetype) initWithContentURL: |
|
(NSURL *) |
contentURL |
|
दिए गए ज़रूरी एट्रिब्यूट और डिफ़ॉल्ट वैल्यू के लिए शुरू की गई अन्य सभी एट्रिब्यूट के साथ एक नया GCKMediaInformationBuilder बनाता है.
- Parameters
-
contentURL | The URL of the content to be played. |
- से
- 4.3.4
- (instancetype) initWithEntity: |
|
(NSString *) |
entity |
|
दिए गए ज़रूरी एट्रिब्यूट और डिफ़ॉल्ट वैल्यू के लिए शुरू की गई अन्य सभी एट्रिब्यूट के साथ एक नया GCKMediaInformationBuilder बनाता है.
- (instancetype) initWithContentID: |
|
(NSString *) |
contentID |
|
दिए गए ज़रूरी एट्रिब्यूट और डिफ़ॉल्ट वैल्यू के लिए शुरू की गई अन्य सभी एट्रिब्यूट के साथ एक नया GCKMediaInformationBuilder बनाता है.
- Deprecated:
- इसके बजाय, initWithContentURL: या initWithEntity: का इस्तेमाल करें.
दिए गए ज़रूरी एट्रिब्यूट और डिफ़ॉल्ट वैल्यू के लिए शुरू की गई अन्य सभी एट्रिब्यूट के साथ एक नया GCKMediaInformationBuilder बनाता है.
- Deprecated:
- इसके बजाय, initWithContentURL: या initWithEntity: का इस्तेमाल करें.
इस स्ट्रीम का Content ID.
- Deprecated:
- इसके बजाय, contentURL और इकाई का इस्तेमाल करें.
चलाए जाने वाले कॉन्टेंट का यूआरएल.
- से
- 4.3.4
स्ट्रीम टाइप.
डिफ़ॉल्ट तौर पर, GCKMediaStreamTypeBuffered चुना जाता है.
- (NSString*) contentType |
|
readwritenonatomiccopy |
इस वीडियो में विज्ञापन के लिए ब्रेक की सूची.
इस कॉन्टेंट में मौजूद विज्ञापन के लिए ब्रेक की क्लिप.
- (NSTimeInterval) streamDuration |
|
readwritenonatomicassign |
स्ट्रीम की अवधि, सेकंड में या अगर लाइव स्ट्रीम है, तो INFINITY
.
डिफ़ॉल्ट वैल्यू 0 होती है.
इस स्ट्रीम के लिए मीडिया ट्रैक.
इस स्ट्रीम के लिए टेक्स्ट ट्रैक की स्टाइल.
अगर Google Assistant किसी मीडिया का इस्तेमाल करती है, तो उसके लिए डीप लिंक.
- (NSTimeInterval) startAbsoluteTime |
|
readwritenonatomicassign |
स्ट्रीम के शुरू होने का समय (epoch टाइम में सेकंड में). अगर उपलब्ध न हो, तो kGCKInvalidTimeInterval
.
डिफ़ॉल्ट तौर पर, यह वैल्यू kGCKInvalidTimeInterval
होती है.
- से
- 4.4.1
HLS ऑडियो सेगमेंट का फ़ॉर्मैट.
- से
- 4.6.0
HLS वीडियो सेगमेंट का फ़ॉर्मैट.
- से
- 4.6.0
अगर ज़रूरत हो, तो कस्टम डेटा.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],["The `GCKMediaInformationBuilder` class allows constructing new or derived `GCKMediaInformation` instances. To create a new instance, initialize a builder with `initWithContentURL` or `initWithEntity`, set properties like `contentType`, `streamType`, and `metadata`, and then call `build`. To derive from an existing instance, initialize the builder with `initWithMediaInformation`, modify properties such as `contentID` or `streamDuration`, and use `build`. Key properties include `contentURL`, `streamType`, `contentType`, `streamDuration`, `metadata`, and `entity`, that describe the media and their respective values.\n"],null,[]]