mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-06 07:28:53 -05:00
Add centralized video player configuration file
Introduces playerConfig.js to centralize video player customization options, including progress bar position and color settings.
This commit is contained in:
parent
ea3cdda18c
commit
40816e6a12
25
frontend-tools/video-js/src/config/playerConfig.js
Normal file
25
frontend-tools/video-js/src/config/playerConfig.js
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/**
|
||||||
|
* Video Player Configuration
|
||||||
|
* Centralized configuration for video player customizations
|
||||||
|
*/
|
||||||
|
|
||||||
|
const PlayerConfig = {
|
||||||
|
// Progress bar configuration
|
||||||
|
progressBar: {
|
||||||
|
// Position: 'top' or 'bottom'
|
||||||
|
// 'top' - progress bar above control bar
|
||||||
|
// 'bottom' - progress bar below control bar (default/native style)
|
||||||
|
position: 'top',
|
||||||
|
|
||||||
|
// Progress bar color (hex, rgb, or CSS color name)
|
||||||
|
color: '#019932',
|
||||||
|
|
||||||
|
// Background color of the progress track
|
||||||
|
trackColor: 'rgba(255, 255, 255, 0.3)',
|
||||||
|
|
||||||
|
// Loaded buffer color
|
||||||
|
bufferColor: 'rgba(255, 255, 255, 0.5)',
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default PlayerConfig;
|
||||||
Loading…
x
Reference in New Issue
Block a user