unified-video-framework 1.4.334 → 1.4.336
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/interfaces/IVideoPlayer.d.ts +1 -0
- package/packages/core/dist/interfaces/IVideoPlayer.d.ts.map +1 -1
- package/packages/core/src/interfaces/IVideoPlayer.ts +3 -0
- package/packages/web/dist/WebPlayer.d.ts +1 -0
- package/packages/web/dist/WebPlayer.d.ts.map +1 -1
- package/packages/web/dist/WebPlayer.js +50 -6
- package/packages/web/dist/WebPlayer.js.map +1 -1
- package/packages/web/dist/paywall/EmailAuthController.d.ts.map +1 -1
- package/packages/web/dist/paywall/EmailAuthController.js +6 -0
- package/packages/web/dist/paywall/EmailAuthController.js.map +1 -1
- package/packages/web/dist/react/WebPlayerView.d.ts +1 -0
- package/packages/web/dist/react/WebPlayerView.d.ts.map +1 -1
- package/packages/web/dist/react/WebPlayerView.js +1 -0
- package/packages/web/dist/react/WebPlayerView.js.map +1 -1
- package/packages/web/src/WebPlayer.ts +80 -15
- package/packages/web/src/paywall/EmailAuthController.ts +9 -1
- package/packages/web/src/react/WebPlayerView.tsx +2 -0
|
@@ -164,6 +164,11 @@ export class EmailAuthController {
|
|
|
164
164
|
animation: uvfAuthSlideIn 0.3s ease-out;
|
|
165
165
|
`;
|
|
166
166
|
|
|
167
|
+
// Prevent clicks inside modal from bubbling to overlay
|
|
168
|
+
modal.addEventListener('click', (e) => {
|
|
169
|
+
e.stopPropagation();
|
|
170
|
+
});
|
|
171
|
+
|
|
167
172
|
// Add CSS animation keyframes
|
|
168
173
|
if (!document.querySelector('#uvf-auth-styles')) {
|
|
169
174
|
const style = document.createElement('style');
|
|
@@ -350,6 +355,8 @@ export class EmailAuthController {
|
|
|
350
355
|
emailInput.type = 'email';
|
|
351
356
|
emailInput.placeholder = this.config?.emailAuth?.ui?.emailPlaceholder || 'Enter your email';
|
|
352
357
|
emailInput.className = 'uvf-auth-input';
|
|
358
|
+
emailInput.autocomplete = 'email';
|
|
359
|
+
emailInput.required = true;
|
|
353
360
|
const placeholderColor = this.config?.emailAuth?.ui?.placeholderColor || 'rgba(255, 255, 255, 0.5)';
|
|
354
361
|
emailInput.style.cssText = `
|
|
355
362
|
width: 100%;
|
|
@@ -361,8 +368,9 @@ export class EmailAuthController {
|
|
|
361
368
|
font-size: 16px;
|
|
362
369
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
363
370
|
box-sizing: border-box;
|
|
371
|
+
outline: none;
|
|
364
372
|
`;
|
|
365
|
-
|
|
373
|
+
|
|
366
374
|
// Set placeholder color using CSS custom properties
|
|
367
375
|
emailInput.style.setProperty('--placeholder-color', placeholderColor);
|
|
368
376
|
emailInput.value = this.currentEmail;
|
|
@@ -108,6 +108,7 @@ export type WebPlayerViewProps = {
|
|
|
108
108
|
defaultQuality?: number;
|
|
109
109
|
enableAdaptiveBitrate?: boolean;
|
|
110
110
|
debug?: boolean;
|
|
111
|
+
startTime?: number; // Start playback from this time in seconds (e.g., 125 for 2:05)
|
|
111
112
|
freeDuration?: number;
|
|
112
113
|
|
|
113
114
|
// Video Commerce configuration
|
|
@@ -949,6 +950,7 @@ export const WebPlayerView: React.FC<WebPlayerViewProps> = (props) => {
|
|
|
949
950
|
defaultQuality: props.defaultQuality,
|
|
950
951
|
enableAdaptiveBitrate: props.enableAdaptiveBitrate ?? true,
|
|
951
952
|
debug: props.debug ?? false,
|
|
953
|
+
startTime: props.startTime,
|
|
952
954
|
freeDuration: props.freeDuration,
|
|
953
955
|
paywall: paywallCfg,
|
|
954
956
|
customControls: props.customControls,
|