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

Simplified UI Customization through Layout Manager Configuration #8045

Open
chafroudtarek opened this issue Feb 10, 2025 · 0 comments
Open
Assignees
Labels
component: UI The issue involves the Shaka Player UI priority: P3 Useful but not urgent type: enhancement New feature or request
Milestone

Comments

@chafroudtarek
Copy link
Contributor

Overview

Propose enhancing Shaka Player's Layout Manager to support comprehensive UI customization through a single, simple configuration object.

Example Implementation

const playerConfig = {
  controlPanelElements: [
    'play_pause',
    'playback_rate',
    'overflow_menu',
    'time_and_duration'
  ],
  showBackward: true,
  showForward: true,
  showTimeText: true,
  showProgressBar: true,
  showQualityControl: true,
  showSpeedControl: true,
  primaryColor: '#00ff00',
  playbackRates: [0.5, 1],
  skipDuration: 10,
  collapseInSettings: ['captions', 'playback_rate', 'quality'],
  seekBarColors: {
    base: 'rgba(255, 255, 255, 0.3)',
    buffered: 'rgba(255, 255, 255, 0.54)',
    played: 'rgb(255, 255, 255)',
    adBreaks: 'rgb(255, 204, 0)'
  }
  // ... and many more options can be added
  // The configuration system is designed to be expandable
  *** For Example ***
  // Future options could include:
  // - Custom themes
  // - Dynamic Controls Positions 
  // - Additional UI elements
  // - Animation settings
  // - And more
};
@chafroudtarek chafroudtarek added the type: enhancement New feature or request label Feb 10, 2025
@shaka-bot shaka-bot added this to the Backlog milestone Feb 10, 2025
@avelad avelad added component: UI The issue involves the Shaka Player UI priority: P3 Useful but not urgent labels Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: UI The issue involves the Shaka Player UI priority: P3 Useful but not urgent type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants