Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
MobileAds sınıfı, Mobile Ads SDK'sı için genel ayarlar sağlar.
Video reklam ses düzeyi kontrolü
Uygulamanızın kendi ses seviyesi kontrolleri (ör. özel müzik veya ses efekti) varsa
hacimleri gibi), uygulama hacminin Google Mobile Ads SDK'sına açıklanması, video reklamların
ses seviyesi ayarlarına uyun. Bu, kullanıcıların
beklenen ses düzeyi.
Ses düğmeleriyle veya işletim sistemi seviyesindeki ses kaydırma çubuğuyla kontrol edilen cihazın ses düzeyi
cihazın ses çıkışının ses düzeyini belirler. Ancak uygulamalar,
sesi ayarlamak için cihazın ses düzeyine göre ses seviyelerini ayarlayabilirsin
sahip olacaksınız.
Şu kodu çağırarak göreli uygulama hacmini Google Mobile Ads SDK'sına bildirebilirsiniz:
SetApplicationVolume() yöntemi. Geçerli reklam hacmi değerleri 0.0 aralığındadır
(sessiz) ayarını 1.0 (geçerli cihaz ses düzeyi) olarak değiştirin. Aşağıda,
SDK ile göreli uygulama hacmi:
// Set app volume to be half of current device volume.
MobileAds.SetApplicationVolume(0.5f);
Uygulama sesinin kapatıldığını SDK'ya bildirmek için şunu kullanın:
SetApplicationMuted() yöntem:
// Set app to be muted.
MobileAds.SetApplicationMuted(true);
Varsayılan olarak uygulama ses düzeyi 1 (mevcut cihaz ses düzeyi) olarak ayarlanır ve
uygulamanın sesi kapatılmadı.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2024-09-08 UTC."],[[["The `MobileAds` class allows you to manage global settings for the Mobile Ads SDK, including video ad volume."],["You can control the volume of video ads relative to your app's volume using `SetApplicationVolume()` for a better user experience."],["Muting or lowering app volume can impact video ad eligibility and potentially reduce ad revenue, so use volume controls judiciously and only when reflecting actual user preferences."]]],["The `MobileAds` class allows control over video ad volume. Apps with custom volume controls can set the relative app volume using `SetApplicationVolume()` with values from `0.0` (silent) to `1.0` (device volume). Muting the app is possible via `SetApplicationMuted(true)`. Default app volume is `1`, and the app is not muted. Lowering volume or muting reduces video ad eligibility and may lower revenue, thus these APIs should only reflect user volume choices.\n"]]