// Check if we've already added the countdown view
if adCountdownView.superview == nil {
adCountdownView.frame.origin = CGPoint(x: view.safeAreaInsets.left, y: view.safeAreaInsets.top)
adCountdownView.circleProgressBar.setProgress(1, animated: false)
view.addSubview(adCountdownView)
}
// Update the progress
adCountdownView.circleProgressBar.setProgress(1 - CGFloat(mediaTime / totalTime), animated: true)