unified-video-framework 1.4.449 → 1.4.450
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/core/dist/version.d.ts +1 -1
- package/packages/core/dist/version.js +1 -1
- package/packages/core/src/version.ts +1 -1
- package/packages/web/dist/WebPlayer.d.ts.map +1 -1
- package/packages/web/dist/WebPlayer.js +5 -2
- package/packages/web/dist/WebPlayer.js.map +1 -1
- package/packages/web/src/WebPlayer.ts +6 -3
|
@@ -1842,12 +1842,15 @@ export class WebPlayer extends BasePlayer {
|
|
|
1842
1842
|
const loading = document.getElementById('uvf-loading');
|
|
1843
1843
|
if (loading) loading.classList.remove('active');
|
|
1844
1844
|
|
|
1845
|
-
// If YouTube native controls are enabled, hide custom controls
|
|
1846
|
-
|
|
1847
|
-
|
|
1845
|
+
// If YouTube native controls are enabled AND custom controls are disabled, hide custom controls
|
|
1846
|
+
// This allows hybrid mode where both YouTube native controls and custom controls can be shown
|
|
1847
|
+
if (this.youtubeNativeControls && !this.useCustomControls && this.playerWrapper) {
|
|
1848
|
+
this.debugLog('[YouTube] Native controls enabled & custom controls disabled - hiding custom controls');
|
|
1848
1849
|
this.playerWrapper.classList.add('youtube-native-controls-mode');
|
|
1849
1850
|
// Also hide center play button and custom controls
|
|
1850
1851
|
this.hideCustomControls();
|
|
1852
|
+
} else if (this.youtubeNativeControls && this.useCustomControls) {
|
|
1853
|
+
this.debugLog('[YouTube] Hybrid mode - both YouTube native controls and custom controls enabled');
|
|
1851
1854
|
}
|
|
1852
1855
|
|
|
1853
1856
|
// Set initial volume
|