The UI was correctly hidden while playing an ad, but it was still intercepting touches which prevented the clickthrough from working. Instead, we now completely remove the UI while in an ad.
The UI was not re-appearing correctly after finishing an ad. This happened because we were listening for adend, and player.ads.isPlaying was still true when that event fires. Fix it by listening to adbreakend instead.
Supersedes #31. (Thanks @m-derakhshan for reporting and proposing the initial fix!)
adend
, andplayer.ads.isPlaying
was still true when that event fires. Fix it by listening toadbreakend
instead.Supersedes #31. (Thanks @m-derakhshan for reporting and proposing the initial fix!)