@vidtreo/recorder 0.9.5 → 0.9.10

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/README.md CHANGED
@@ -628,7 +628,21 @@ const stream = streamManager.getStream();
628
628
 
629
629
  ## Configuration
630
630
 
631
- Video transcoding configuration is managed through your backend API. The recorder fetches configuration using the provided `apiKey` and `apiUrl` (defaults to `https://api.vidtreo.com` if not provided). Default transcoding settings include:
631
+ Video transcoding configuration is managed through your backend API. The recorder fetches configuration using the provided `apiKey` and `apiUrl`.
632
+
633
+ ### Watermark Support
634
+
635
+ The recorder supports real-time watermark rendering. This is highly optimized for performance:
636
+ - **One-time preparation**: The watermark is loaded and pre-rendered once before recording starts.
637
+ - **Dynamic Scaling**: The watermark automatically scales to **7% of the video width** while maintaining its aspect ratio.
638
+ - **Efficient Composition**: The watermark is drawn directly onto a composition canvas, avoiding redundant opacity calculations per frame.
639
+
640
+ **Watermark Configuration:**
641
+ - `url`: The URL of the image (PNG, JPG, or SVG). Data URLs (base64) are also supported and recommended for reliability.
642
+ - `opacity`: Watermark opacity (0.0 to 1.0). Default: `1.0` (Recommended for best video compression).
643
+ - `position`: One of `"top-left"`, `"top-right"`, `"bottom-left"`, `"bottom-right"`, or `"center"`. Default: `"bottom-right"`.
644
+
645
+ Default transcoding settings include:
632
646
 
633
647
  - Format: MP4
634
648
  - Frame rate: 30 fps