बिटरेट और मीडिया फ़ॉर्मैट की जानकारी देना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
वीएएसटी (वीडियो विज्ञापन देने के लिए टेंप्लेट) में, अलग-अलग तरह की कई मीडिया फ़ाइलें हो सकती हैं
बिटरेट और अलग-अलग फ़ॉर्मैट में. SDK टूल सही बिटरेट चुनता है
नेटवर्क की मौज़ूदा स्थितियों के आधार पर:
- सेल्युलर कनेक्शन के लिए ज़्यादा से ज़्यादा 500 kbit/s
- वाई-फ़ाई के लिए अनलिमिटेड स्टोरेज
ध्यान दें: iOS, आपको
इसलिए, मोबाइल पर इंटरनेट की स्पीड कम रहती है, इसलिए iOS SDK टूल सुरक्षित रहने की कोशिश करता है
कनेक्शन.
अगर आपको वीडियो के लिए पसंदीदा फ़ॉर्मैट और बिटरेट तय करने हैं, तो
IMAAdsRenderingSettings
उदाहरण के लिए, Ad Manager शुरू करते समय इस जानकारी को पास करना ज़रूरी है.
- (void)adsLoader:(IMAAdsLoader *)loader adsLoadedWithData:(IMAAdsLoadedData *)adsLoadedData {
self.adsManager = adsLoadedData.adsManager;
self.adsManager.delegate = self;
IMAAdsRenderingSettings *settings = [[IMAAdsRenderingSettings alloc] init];
settings.bitrate = 1024; // kbits
settings.mimeTypes = @[ @"video/mp4", @"application/x-mpegURL"];
[self.adsManager initializeWithContentPlayhead:nil adsRenderingSettings:settings];
}
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eVAST responses may contain multiple media files with varying bitrates and formats, and the SDK automatically selects the appropriate bitrate based on network conditions (500 kbit/s maximum for cellular and unlimited for WiFi).\u003c/p\u003e\n"],["\u003cp\u003eOn iOS, the SDK uses a conservative approach for cellular connections due to limited network speed information.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can specify preferred video formats and bitrates using \u003ccode\u003eIMAAdsRenderingSettings\u003c/code\u003e during Ads Manager initialization to override the SDK's default behavior.\u003c/p\u003e\n"]]],[],null,["# Specify bitrate and media format\n\nVAST responses can contain multiple media files with different\nbitrates and in different formats. The SDK chooses the appropriate bitrate\nbased on the current network conditions:\n\n- max 500 kbit/s for cellular connection\n- unlimited for WiFi\n\n**Note:** iOS does not provide any detailed information on the\ncurrent network speed, so the iOS SDK tries to be conservative when on cellular\nconnection.\n\nIf you want to specify preferred video formats and bitrate, use an\n[IMAAdsRenderingSettings](/interactive-media-ads/docs/sdks/ios/client-side/reference/Classes/IMAAdsRenderingSettings)\ninstance to pass this information at the time of Ads Manager initialization. \n\n```objective-c\n- (void)adsLoader:(IMAAdsLoader *)loader adsLoadedWithData:(IMAAdsLoadedData *)adsLoadedData {\n self.adsManager = adsLoadedData.adsManager;\n self.adsManager.delegate = self;\n IMAAdsRenderingSettings *settings = [[IMAAdsRenderingSettings alloc] init];\n settings.bitrate = 1024; // kbits\n settings.mimeTypes = @[ @\"video/mp4\", @\"application/x-mpegURL\"];\n [self.adsManager initializeWithContentPlayhead:nil adsRenderingSettings:settings];\n}\n```"]]