You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following premium plugin updates were released alongside {productname} {release-version}.
30
30
31
+
=== Media Optimizer
32
+
33
+
The {productname} {release-version} release includes an accompanying release of the **Media Optimizer** premium plugin.
34
+
35
+
**Media Optimizer** includes the following improvements.
36
+
37
+
==== `uc-video` tags can now be made responsive
38
+
39
+
The **Media Optimizer** plugin's video functionality has been enhanced with a new configuration option for the xref:uploadcare-video.adoc#uploadcare-video-properties[`uploadcare_video_properties`] setting:
40
+
41
+
* **`fluid`**: Enables responsive video sizing. When set to `true`, videos are automatically sized responsively using `width: min(original-width, 100%)` CSS, allowing them to scale down on smaller screens while maintaining their maximum size.
42
+
43
+
For information on the **Media Optimizer** plugin, see: xref:uploadcare-video.adoc[Media Optimizer: Video].
44
+
31
45
// === <Premium plugin name 1> <Premium plugin name 1 version>
32
46
33
47
// The {productname} {release-version} release includes an accompanying release of the **<Premium plugin name 1>** premium plugin.
The plugin creates a custom `+<uc-video>+` element that replaces the standard HTML `+<video>+` element when videos are processed through Uploadcare's infrastructure.
119
119
120
-
.Example: Custom video element created by the plugin on video insertion
120
+
.Example: Custom video element created by the plugin on video insertion (responsive)
121
121
[source,html]
122
122
----
123
123
<uc-video
124
124
uuid="video-uuid-here"
125
125
class="tox-uc-video"
126
-
contenteditable="false"
127
-
data-setup="{}"
126
+
contenteditable="true"
127
+
fluid="true"
128
128
controls="true"
129
129
autoplay="false"
130
130
loop="false"
131
131
muted="false"
132
132
preload="metadata"
133
-
width="640"
134
-
height="360"
133
+
style="width: min(640px, 100%);"
134
+
poster="https://example.com/poster.jpg"
135
+
showlogo="false"
136
+
</uc-video>
137
+
----
138
+
139
+
.Example: Custom video element with fixed dimensions (non-responsive)
Copy file name to clipboardExpand all lines: modules/ROOT/partials/configuration/uploadcare_video_properties.adoc
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,17 +15,17 @@ Configures the video player properties and behavior for video elements.
15
15
|`autoplay` | Boolean | `true`, `false`, `undefined` | `undefined` | Automatically starts video playback when the page loads. NOTE: Even if autoplay is enabled, modern browsers may delay or block playback until the user interacts with the page, depending on their autoplay policies.
16
16
|`controls` | Boolean | `true`, `false` | `true` | Displays the video player controls (play/pause, volume, timeline, fullscreen, etc.). When disabled, users can still control playback through keyboard shortcuts or programmatic methods.
17
17
|`disablePictureInPicture` | Boolean | `true`, `false`, `undefined` | `undefined` | Disables the Picture-in-Picture feature for the video player. When enabled, users cannot use Picture-in-Picture mode.
18
-
|`height` | Number or String | Pixels or CSS value | `undefined` | Sets the video player height. Accepts numeric values (interpreted as pixels) or CSS values like `"100%"`, `"50vh"`, or `"auto"`.
18
+
|`fluid` | Boolean | `true`, `false`, `undefined` | `undefined` | Enables responsive video sizing. When set to `true`, videos are automatically sized responsively using `width: min(original-width, 100%)` CSS, allowing them to scale down on smaller screens while maintaining their maximum size.
19
+
|`height` | Number or String | Pixels or CSS value | `undefined` | Sets the video player height. Accepts numeric values (interpreted as pixels) or CSS values like `"100%"`, `"50vh"`, or `"auto"`. When a numeric value is provided, it is applied as an inline CSS style with `px` units (e.g., `height: 360px`).
19
20
|`loop` | Boolean | `true`, `false`, `undefined` | `undefined` | Automatically restarts video playback from the beginning when it reaches the end. Useful for background videos or continuous content loops.
20
21
|`muted` | Boolean | `true`, `false`, `undefined` | `undefined` | Mutes the video audio by default. Often used in combination with autoplay since most browsers require muted videos for autoplay to function.
21
22
|`poster` | String | Valid URL | `undefined` | Sets a poster image (thumbnail) that displays before video playback begins. The image should match the video's aspect ratio for best results.
22
23
|`posterOffset` | String | Time format `"MM:SS"` or `"H:MM:SS"` | `undefined` | Sets the time offset for generating a poster image from the video. When `poster` is not specified, this value determines the frame to use as the poster. Format: `"0:10"` for 10 seconds, `"1:30"` for 1 minute 30 seconds.
23
24
|`preload` | String | `auto`, `metadata`, `none` | `undefined` | Controls how much video data to preload: `auto` loads the entire video, `metadata` loads only basic information, `none` loads nothing until playback starts. Performance considerations: use `metadata` for better page load times and bandwidth conservation, `auto` for immediate playback without buffering delays, and `none` for maximum bandwidth savings when videos may not be played.
24
25
|`showLogo` | Boolean | `true`, `false` | `false` | Displays the Uploadcare logo overlay on the video player.
25
-
|`width` | Number or String | Pixels or CSS value | `undefined` | Sets the video player width. Accepts numeric values (interpreted as pixels) or CSS values like `"100%"`, `"50vw"`, or `"auto"`.
26
+
|`width` | Number or String | Pixels or CSS value | `undefined` | Sets the video player width. Accepts numeric values (interpreted as pixels) or CSS values like `"100%"`, `"50vw"`, or `"auto"`. When a numeric value is provided, it is applied as an inline CSS style with `px` units (e.g., `width: 640px`). When used with `fluid: true`, the width is applied responsively using `width: min(original-width, 100%)`.
26
27
|===
27
28
28
-
29
29
.Example: Basic video player configuration
30
30
31
31
[source,js]
@@ -45,6 +45,7 @@ tinymce.init({
45
45
posterOffset: '0:10', // Time offset for poster generation
0 commit comments