@stefanmartin/expo-video-watermark 0.2.3 → 0.2.4
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.
|
@@ -11,7 +11,7 @@ import androidx.media3.common.MediaItem
|
|
|
11
11
|
import androidx.media3.common.util.UnstableApi
|
|
12
12
|
import androidx.media3.effect.BitmapOverlay
|
|
13
13
|
import androidx.media3.effect.OverlayEffect
|
|
14
|
-
import androidx.media3.effect.
|
|
14
|
+
import androidx.media3.effect.StaticOverlaySettings
|
|
15
15
|
import androidx.media3.effect.TextureOverlay
|
|
16
16
|
import androidx.media3.transformer.Composition
|
|
17
17
|
import androidx.media3.transformer.EditedMediaItem
|
|
@@ -106,7 +106,7 @@ class ExpoVideoWatermarkModule : Module() {
|
|
|
106
106
|
// Create overlay settings for full-width bottom positioning
|
|
107
107
|
// In Media3, coordinates are normalized: (0,0) is center
|
|
108
108
|
// x range [-1, 1] (left to right), y range [-1, 1] (bottom to top)
|
|
109
|
-
val overlaySettings =
|
|
109
|
+
val overlaySettings = StaticOverlaySettings.Builder()
|
|
110
110
|
.setScale(scale, scale) // Scale uniformly to match video width
|
|
111
111
|
.setOverlayFrameAnchor(0f, -1f) // Anchor at bottom-center of watermark
|
|
112
112
|
.setBackgroundFrameAnchor(0f, -1f) // Position at very bottom of video
|