override func viewDidLoad() {
super.viewDidLoad()
self.createPlayer()
self.interstitial = self.createAndLoadInterstitial()
}
If I comment this string:
//self.interstitial = self.createAndLoadInterstitial()
I do not have such problem, video continues to play. And problem is reproduced even before showing interstitial ad. Also I watched a strange situation, after hiding app instead of Apple TV home screen I saw a first frame of interstitial ad with a hung loading indicator. Problem is not reproduced with test unit, it seems because test ad has static image.
func createAndLoadInterstitial() -> GADInterstitial {
// test unit has static image, no problem with test unit, problem is reproduced only with real video ads.
interstitial = GADInterstitial(adUnitID: "ca-app-pub-3940256099942544/4411468910")
interstitial.delegate = self
interstitial.load(GADRequest())
return interstitial
}