THEOplayer / web-ui

UI component library for the THEOplayer Web SDK
https://www.theoplayer.com/docs/open-video-ui/web/
MIT License
10 stars 0 forks source link

Support ads while casting to Chromecast #47

Closed MattiasBuelens closed 7 months ago

MattiasBuelens commented 7 months ago

THEOplayer 6.8.0 added support for playing advertisements while connected to Chromecast. This PR makes Web UI aware of that.

This mostly already worked, except that the ad clickthrough button wasn't visible on desktop. We now always show that button if you're casting, regardless of whether you're on desktop or mobile. I tweaked the CSS of that button, so its height doesn't change when it switches from "skip in X seconds" to "skip".

I also added a fullscreen button to the ad UI, in case you would want to play your ads fullscreen. 😛