@vidtreo/recorder 1.2.0 → 1.3.0

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.
Files changed (4) hide show
  1. package/README.md +5 -0
  2. package/dist/index.d.ts +1746 -1578
  3. package/dist/index.js +1228 -300
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -208,6 +208,8 @@ interface VidtreoRecorderConfig {
208
208
  maxRecordingTime?: number;
209
209
  countdownDuration?: number;
210
210
  userMetadata?: Record<string, unknown>;
211
+ enableTabVisibilityOverlay?: boolean;
212
+ tabVisibilityOverlayText?: string;
211
213
  onUploadComplete?: (result: {
212
214
  recordingId: string;
213
215
  uploadUrl: string;
@@ -220,6 +222,9 @@ interface VidtreoRecorderConfig {
220
222
  }
221
223
  ```
222
224
 
225
+ `enableTabVisibilityOverlay` applies to camera recordings. When enabled and `tabVisibilityOverlayText` is omitted or blank,
226
+ the SDK uses `"User in another tab"` as a default fallback. Overlay rendering is skipped for screen capture recordings.
227
+
223
228
  **Note:** For web component usage, see the [@vidtreo/recorder-wc](../recorder-wc/README.md) package. Use the `max-recording-time` attribute instead of `maxRecordingTime`. The attribute accepts a numeric value in milliseconds as a string (e.g., `max-recording-time="300000"` for 5 minutes).
224
229
 
225
230
  ### RecordingStartOptions