unified-video-framework 1.4.261 → 1.4.263

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.
@@ -97,6 +97,7 @@ export type WebPlayerViewProps = {
97
97
  muted?: boolean;
98
98
  volume?: number;
99
99
  controls?: boolean;
100
+ youtubeNativeControls?: boolean; // Use YouTube's native controls instead of custom ones
100
101
  loop?: boolean;
101
102
  preload?: 'none' | 'metadata' | 'auto';
102
103
  crossOrigin?: 'anonymous' | 'use-credentials';
@@ -106,9 +107,6 @@ export type WebPlayerViewProps = {
106
107
  debug?: boolean;
107
108
  freeDuration?: number;
108
109
 
109
- // YouTube-specific configuration
110
- youtubeNativeControls?: boolean;
111
-
112
110
  // Custom controls configuration
113
111
  customControls?: boolean;
114
112
  settings?: {
@@ -845,6 +843,7 @@ export const WebPlayerView: React.FC<WebPlayerViewProps> = (props) => {
845
843
  muted: props.muted ?? false,
846
844
  volume: props.volume ?? 1.0,
847
845
  controls: props.controls ?? true,
846
+ youtubeNativeControls: props.youtubeNativeControls, // Pass through YouTube native controls setting
848
847
  loop: props.loop ?? false,
849
848
  preload: props.preload ?? 'metadata',
850
849
  crossOrigin: props.crossOrigin,
@@ -853,7 +852,6 @@ export const WebPlayerView: React.FC<WebPlayerViewProps> = (props) => {
853
852
  enableAdaptiveBitrate: props.enableAdaptiveBitrate ?? true,
854
853
  debug: props.debug ?? false,
855
854
  freeDuration: props.freeDuration,
856
- youtubeNativeControls: props.youtubeNativeControls,
857
855
  paywall: paywallCfg,
858
856
  customControls: props.customControls,
859
857
  settings: props.settings,
@@ -1200,7 +1198,6 @@ export const WebPlayerView: React.FC<WebPlayerViewProps> = (props) => {
1200
1198
  props.defaultQuality,
1201
1199
  props.enableAdaptiveBitrate,
1202
1200
  props.debug,
1203
- props.youtubeNativeControls,
1204
1201
  props.url,
1205
1202
  props.type,
1206
1203
  JSON.stringify(props.subtitles),