비트 전송률 및 미디어 형식 지정
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
VAST 응답에는 각기 다른 여러 미디어 파일을 포함할 수 있으며
여러 형식으로 변환해야 합니다. SDK에서 적절한 비트 전송률 선택
현재 네트워크 상태에 따라 다음과 같이 계산됩니다.
- 모바일 데이터 연결의 경우 최대 500kbit/초
- Wi-Fi 무제한
참고: iOS는
현재 네트워크 속도이므로 셀룰러 네트워크에 있을 때는 iOS SDK가 보수적으로 전송하려고 합니다.
연결
기본 동영상 형식과 비트 전송률을 지정하려면
IMAAdsRenderingSettings
인스턴스를 사용하여 광고 관리자 초기화 시 이 정보를 전달하세요.
- (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 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 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```"]]