diff --git a/docs/aspect-ratio-crop.html b/docs/aspect-ratio-crop.html new file mode 100644 index 000000000..485bb08ad --- /dev/null +++ b/docs/aspect-ratio-crop.html @@ -0,0 +1,118 @@ + + + + + Cloudinary Video Player + + + + + + + + + + + + + + + + +
+ +

Cloudinary Video Player

+

Aspect ratio & crop mode

+ +

fill - crops to fit aspect ratio

+ + +

pad - letterboxes to fit

+ + +

smart with 9:16 (portrait)

+ + +

+ Full documentation +

+ +

Example Code:

+
+      
+// Fill - crops to fit aspect ratio (no distortion)
+player.source({
+  publicId: 'sea_turtle',
+  aspectRatio: '1:1',
+  cropMode: 'fill'
+});
+
+// Pad - letterboxes to fit (no distortion)
+player.source({
+  publicId: 'sea_turtle',
+  aspectRatio: '4:3',
+  cropMode: 'pad',
+  cropPadColor: 'blue'
+});
+
+// Portrait (9:16) - smart crop
+player.source({
+  publicId: 'sea_turtle',
+  aspectRatio: '9:16',
+  cropMode: 'smart'
+});
+      
+    
+
+ + diff --git a/docs/audio.html b/docs/audio.html index f1f72de10..98238bcd0 100644 --- a/docs/audio.html +++ b/docs/audio.html @@ -71,7 +71,7 @@

Audio Player - with transformations

id="player-t" playsinline controls - class="cld-video-player" + class="cld-video-player cld-video-player-skin-light" width="500" > diff --git a/docs/es-modules/aspect-ratio-crop.html b/docs/es-modules/aspect-ratio-crop.html new file mode 100644 index 000000000..b6cb5c34d --- /dev/null +++ b/docs/es-modules/aspect-ratio-crop.html @@ -0,0 +1,121 @@ + + + + + Cloudinary Video Player + + + + + +
+ +

Cloudinary Video Player

+

Aspect ratio & crop mode

+ +

fill - crops to fit aspect ratio

+ + +

pad - letterboxes to fit

+ + +

smart with 9:16 (portrait)

+ + +

+ Full documentation +

+ +

Example Code:

+

+// Fill - crops to fit aspect ratio
+player.source({
+  publicId: 'sea_turtle',
+  aspectRatio: '1:1',
+  cropMode: 'fill'
+});
+
+// Pad - letterboxes to fit
+player.source({
+  publicId: 'sea_turtle',
+  aspectRatio: '4:3',
+  cropMode: 'pad',
+  cropPadColor: 'blue'
+});
+
+// Portrait (9:16) - smart crop
+player.source({
+  publicId: 'sea_turtle',
+  aspectRatio: '9:16',
+  cropMode: 'smart'
+});
+      
+
+ + + + + + diff --git a/docs/es-modules/index.html b/docs/es-modules/index.html index a027813b1..c7d438175 100644 --- a/docs/es-modules/index.html +++ b/docs/es-modules/index.html @@ -45,6 +45,7 @@

Code examples: