fix(content): 콘텐츠 상세 광고를 제거한다

This commit is contained in:
Yu Sung
2026-07-13 16:57:55 +09:00
parent 9b115f3339
commit dec6fb6fb8
5 changed files with 31 additions and 149 deletions

View File

@@ -199,10 +199,6 @@ struct ContentDetailPlayView: View {
.frame(width: screenSize().width - 40)
}
.onAppear {
Task {
await YandexInterstitialAdManager.shared.preloadAd(for: .contentDetail)
}
if !isPlaying() {
stopTimer()
}
@@ -245,22 +241,7 @@ struct ContentDetailPlayView: View {
)
}
guard shouldShowInterstitialBeforePlayback(showPreviewAlert: showPreviewAlert) else {
playAction()
return
}
Task {
await YandexInterstitialAdManager.shared.showAdIfAvailable(for: .contentDetail, then: playAction)
}
}
private func shouldShowInterstitialBeforePlayback(showPreviewAlert: Bool) -> Bool {
if contentPlayManager.contentId == audioContent.contentId {
return false
}
return audioContent.price <= 0 || showPreviewAlert
playAction()
}
private func sliderRange() -> ClosedRange<Double> {