mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-01-22 16:13:01 -05:00
feat: Major Upgrade to Video.js v8 — Chapters Functionality, Fixes and Improvements
This commit is contained in:
committed by
GitHub
parent
b39072c8ae
commit
a5e6e7b9ca
47
frontend-tools/video-js/src/config/playerConfig.js
Normal file
47
frontend-tools/video-js/src/config/playerConfig.js
Normal file
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* Video Player Configuration
|
||||
* Centralized configuration for video player customizations
|
||||
*/
|
||||
|
||||
const PlayerConfig = {
|
||||
nativeControlsForTouch: false,
|
||||
|
||||
// Progress bar configuration
|
||||
progressBar: {
|
||||
// Position for non-touch devices: 'default', 'top', or 'bottom'
|
||||
// 'default' - use Video.js default positioning (inside control bar)
|
||||
// 'top' - progress bar above control bar
|
||||
// 'bottom' - progress bar below control bar
|
||||
nonTouchPosition: 'top',
|
||||
|
||||
// Position for touch devices: 'top' or 'bottom' (no 'default' option)
|
||||
// 'top' - progress bar above control bar
|
||||
// 'bottom' - progress bar below control bar (native touch style)
|
||||
touchPosition: '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)',
|
||||
},
|
||||
|
||||
// Control bar configuration
|
||||
controlBar: {
|
||||
// Background color
|
||||
backgroundColor: 'rgba(0, 0, 0, 0.7)',
|
||||
|
||||
// Height in em units
|
||||
height: 3,
|
||||
|
||||
// Font size in em units
|
||||
fontSize: 14,
|
||||
|
||||
mobileFontSize: 13,
|
||||
},
|
||||
};
|
||||
|
||||
export default PlayerConfig;
|
||||
Reference in New Issue
Block a user