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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve demopage #629

Merged
merged 3 commits into from
Jul 1, 2024
Merged

Improve demopage #629

merged 3 commits into from
Jul 1, 2024

Conversation

dweinber
Copy link
Member

Description

Two small but hopefully useful improvements of the playground demo page:

  1. A checkbox to enable/disable ads on the fly in the demo page UI as shown below. Previously, this needed to be done somewhere in the demo page's code.
    image
  2. Store the basic configuration of the playground (video source, UI, ads enabled) in localStorage of the browser and load on page load

Checklist (for PR submitter and reviewers)

  • CHANGELOG entry

@dweinber dweinber marked this pull request as ready for review June 28, 2024 08:44
Copy link
Contributor

@felix-hoc felix-hoc left a comment

Choose a reason for hiding this comment

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

Looks like getting the default config isn't working properly when localstorage is empty:
Screenshot 2024-06-28 at 14 08 33

@@ -256,6 +262,8 @@ <h4 class="card-title">
var uiManager;
bitmovin.playerui.UIManager.setLocalizationConfig({ language: 'en', browserLanguageDetection: false });

bitmovin.player.Player.addModule(bitmovin.player["advertising-bitmovin"].default);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the switch to the Bitmovin Ads module? The default is IMA, shouldn't the UI use the default player config?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because with IMA there is no control over the UI as IMA provides the minimal ads UI which cannot officially (and must not) be customized. With BAM this is possible to use our UI, so that made more sense to me.

@dweinber
Copy link
Member Author

Thanks @felix-hoc! Classic case of testing it, then refactoring the code and introduce a bug by that 😄
Should be fixed now in 28cfa59

Copy link
Contributor

@felix-hoc felix-hoc left a comment

Choose a reason for hiding this comment

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

Ok, nice :)

I'm just thinking it would be good to a have an option to reset the local storage somehow, so it doesn't need to be done through the browser. Could be a follow-up PR though.

@dweinber dweinber merged commit 324f25a into develop Jul 1, 2024
2 checks passed
@dweinber dweinber deleted the feature/improve-demopage branch July 1, 2024 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants