GCKMediaLoadOptions क्लास
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
GCKRemoteMediaClient के साथ मीडिया लोड करने के विकल्प.
- से
- 4.0
NSObject, <NSकॉपी>, और <NSSecureCoding> को इनहेरिट करता है.
|
(instancetype) | - init |
| खास तौर पर बनाया गया, शुरू करने वाला टूल. ज़्यादा...
|
|
खास तौर पर बनाया गया, शुरू करने वाला टूल.
सभी प्रॉपर्टी के लिए डिफ़ॉल्ट वैल्यू के साथ GCKMediaLoadOptions शुरू करता है.
वीडियो तुरंत शुरू होना चाहिए या नहीं.
डिफ़ॉल्ट वैल्यू YES
है.
- (NSTimeInterval) playPosition |
|
readwritenonatomicassign |
वीडियो चलाने की शुरुआती स्थिति.
डिफ़ॉल्ट वैल्यू kGCKInvalidTimeInterval है, जो वीडियो चलाने की डिफ़ॉल्ट स्थिति को दिखाती है.
वीडियो चलाने की स्पीड.
डिफ़ॉल्ट वैल्यू 1
है.
- (NSArray<NSNumber *>*) activeTrackIDs |
|
readwritenonatomicstrong |
पूर्णांकों का कलेक्शन, जिसमें ऐक्टिव ट्रैक के बारे में बताया गया है.
डिफ़ॉल्ट वैल्यू nil
है.
अनुरोध के साथ देने के लिए, कस्टम ऐप्लिकेशन-विशिष्ट डेटा.
यह एक ऐसा ऑब्जेक्ट होना चाहिए जिसे NSJSONSerialization या nil
का इस्तेमाल करके, JSON में सीरियलाइज़ किया जा सकता हो.
- (NSString*) credentials |
|
readwritenonatomiccopy |
लोड किए जा रहे मीडिया आइटम के लिए, उपयोगकर्ता के क्रेडेंशियल.
- से
- 4.1.1
- (NSString*) credentialsType |
|
readwritenonatomiccopy |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003eGCKMediaLoadOptions\u003c/code\u003e configures media playback on a Cast receiver, controlling aspects like autoplay, initial position, and playback rate.\u003c/p\u003e\n"],["\u003cp\u003eIt provides properties to customize playback behavior including \u003ccode\u003eautoplay\u003c/code\u003e, \u003ccode\u003eplayPosition\u003c/code\u003e, \u003ccode\u003eplaybackRate\u003c/code\u003e, \u003ccode\u003eactiveTrackIDs\u003c/code\u003e, and \u003ccode\u003ecustomData\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can specify user credentials using \u003ccode\u003ecredentials\u003c/code\u003e and \u003ccode\u003ecredentialsType\u003c/code\u003e properties, introduced in version 4.1.1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGCKMediaLoadOptions\u003c/code\u003e objects are initialized using the designated initializer \u003ccode\u003einit\u003c/code\u003e, setting default values for all properties unless otherwise specified.\u003c/p\u003e\n"]]],["The GCKMediaLoadOptions class provides configuration settings for loading media with GCKRemoteMediaClient. Key actions include initializing media load options with default values and setting properties such as `autoplay` (start playback immediately), `playPosition` (initial playback point), `playbackRate`, and `activeTrackIDs`. It also allows for the inclusion of custom data (`customData`) and user credentials with `credentials` and `credentialsType`. The default values for these are true, `kGCKInvalidTimeInterval`, 1, nil, respectively.\n"],null,[]]