This adds support for advertisements in the default UI, and polishes the existing ad components.
<theoplayer-time-range> now has an extra show-ad-markers attribute. When set, yellow ad markers are shown on the progress bar to indicate when the content will be interrupted by an advertisement.
While playing a Google IMA, <theoplayer-ad-skip-button> and <theoplayer-ad-clickthrough-button> are always hidden. This is necessary, because Google IMA doesn't provide a way to hide its own built-in buttons. Unfortunately, this means you can't use custom buttons for these when using IMA. 😞
<theoplayer-default-ui> now has a reworked ad control bar, taking up less space and showing fewer controls. This is necessary to leave enough space for Google IMA's own buttons.
This adds support for advertisements in the default UI, and polishes the existing ad components.
<theoplayer-time-range>
now has an extrashow-ad-markers
attribute. When set, yellow ad markers are shown on the progress bar to indicate when the content will be interrupted by an advertisement.<theoplayer-ad-skip-button>
and<theoplayer-ad-clickthrough-button>
are always hidden. This is necessary, because Google IMA doesn't provide a way to hide its own built-in buttons. Unfortunately, this means you can't use custom buttons for these when using IMA. 😞<theoplayer-default-ui>
now has a reworked ad control bar, taking up less space and showing fewer controls. This is necessary to leave enough space for Google IMA's own buttons.