Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved advertisement support #28

Merged
merged 17 commits into from
Apr 26, 2023
Merged

Improved advertisement support #28

merged 17 commits into from
Apr 26, 2023

Conversation

MattiasBuelens
Copy link
Collaborator

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.
    ads-example

@MattiasBuelens MattiasBuelens added the enhancement New feature or request label Apr 24, 2023
Copy link
Member

@georgechoustoulakis georgechoustoulakis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@MattiasBuelens MattiasBuelens merged commit 797a062 into main Apr 26, 2023
1 check passed
@MattiasBuelens MattiasBuelens deleted the ads branch April 26, 2023 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants