diff --git a/client/ios/Configurations/Version.xcconfig b/client/ios/Configurations/Version.xcconfig index 41a1da4f4..488ea37b7 100644 --- a/client/ios/Configurations/Version.xcconfig +++ b/client/ios/Configurations/Version.xcconfig @@ -1,2 +1,2 @@ -MARKETING_VERSION = 29.2.0 +MARKETING_VERSION = 29.3.0 CURRENT_PROJECT_VERSION = 29 diff --git a/client/ios/DivKit/DivKitInfo.swift b/client/ios/DivKit/DivKitInfo.swift index 2dfc778be..3c65d4a0e 100644 --- a/client/ios/DivKit/DivKitInfo.swift +++ b/client/ios/DivKit/DivKitInfo.swift @@ -1,3 +1,3 @@ public enum DivKitInfo { - public static let version = "29.2.0" + public static let version = "29.3.0" } diff --git a/client/web/divkit/package.json b/client/web/divkit/package.json index d494292eb..92d2cb556 100644 --- a/client/web/divkit/package.json +++ b/client/web/divkit/package.json @@ -1,6 +1,6 @@ { "name": "@divkitframework/divkit", - "version": "29.2.0", + "version": "29.3.0", "description": "DivKit for the web", "keywords": [ "server-driven-ui", diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Video.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Video.kt index a5608d331..c3ada2079 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Video.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Video.kt @@ -59,6 +59,7 @@ class Video internal constructor( paddings = additive.paddings ?: properties.paddings, pauseActions = additive.pauseActions ?: properties.pauseActions, playerSettingsPayload = additive.playerSettingsPayload ?: properties.playerSettingsPayload, + preloadRequired = additive.preloadRequired ?: properties.preloadRequired, preview = additive.preview ?: properties.preview, repeatable = additive.repeatable ?: properties.repeatable, resumeActions = additive.resumeActions ?: properties.resumeActions, @@ -176,6 +177,11 @@ class Video internal constructor( * Additional information that can be used in the player. */ val playerSettingsPayload: Property>?, + /** + * This option turns on preloading of video sources. + * Default value: `false`. + */ + val preloadRequired: Property?, /** * Video preview encoded in `base64`. Will be shown until the video is ready to play. `Data url` format: `data:[;base64],` */ @@ -272,6 +278,7 @@ class Video internal constructor( result.tryPutProperty("paddings", paddings) result.tryPutProperty("pause_actions", pauseActions) result.tryPutProperty("player_settings_payload", playerSettingsPayload) + result.tryPutProperty("preload_required", preloadRequired) result.tryPutProperty("preview", preview) result.tryPutProperty("repeatable", repeatable) result.tryPutProperty("resume_actions", resumeActions) @@ -318,6 +325,7 @@ class Video internal constructor( * @param paddings Internal margins from the element stroke. * @param pauseActions Actions performed when playback is paused. * @param playerSettingsPayload Additional information that can be used in the player. + * @param preloadRequired This option turns on preloading of video sources. * @param preview Video preview encoded in `base64`. Will be shown until the video is ready to play. `Data url` format: `data:[;base64],` * @param repeatable This option turns on video repeat. * @param resumeActions Actions performed when video playback resumes. @@ -361,6 +369,7 @@ fun DivScope.video( paddings: EdgeInsets? = null, pauseActions: List? = null, playerSettingsPayload: Map? = null, + preloadRequired: Boolean? = null, preview: String? = null, repeatable: Boolean? = null, resumeActions: List? = null, @@ -403,6 +412,7 @@ fun DivScope.video( paddings = valueOrNull(paddings), pauseActions = valueOrNull(pauseActions), playerSettingsPayload = valueOrNull(playerSettingsPayload), + preloadRequired = valueOrNull(preloadRequired), preview = valueOrNull(preview), repeatable = valueOrNull(repeatable), resumeActions = valueOrNull(resumeActions), @@ -447,6 +457,7 @@ fun DivScope.video( * @param paddings Internal margins from the element stroke. * @param pauseActions Actions performed when playback is paused. * @param playerSettingsPayload Additional information that can be used in the player. + * @param preloadRequired This option turns on preloading of video sources. * @param preview Video preview encoded in `base64`. Will be shown until the video is ready to play. `Data url` format: `data:[;base64],` * @param repeatable This option turns on video repeat. * @param resumeActions Actions performed when video playback resumes. @@ -490,6 +501,7 @@ fun DivScope.videoProps( paddings: EdgeInsets? = null, pauseActions: List? = null, playerSettingsPayload: Map? = null, + preloadRequired: Boolean? = null, preview: String? = null, repeatable: Boolean? = null, resumeActions: List? = null, @@ -531,6 +543,7 @@ fun DivScope.videoProps( paddings = valueOrNull(paddings), pauseActions = valueOrNull(pauseActions), playerSettingsPayload = valueOrNull(playerSettingsPayload), + preloadRequired = valueOrNull(preloadRequired), preview = valueOrNull(preview), repeatable = valueOrNull(repeatable), resumeActions = valueOrNull(resumeActions), @@ -574,6 +587,7 @@ fun DivScope.videoProps( * @param paddings Internal margins from the element stroke. * @param pauseActions Actions performed when playback is paused. * @param playerSettingsPayload Additional information that can be used in the player. + * @param preloadRequired This option turns on preloading of video sources. * @param preview Video preview encoded in `base64`. Will be shown until the video is ready to play. `Data url` format: `data:[;base64],` * @param repeatable This option turns on video repeat. * @param resumeActions Actions performed when video playback resumes. @@ -617,6 +631,7 @@ fun TemplateScope.videoRefs( paddings: ReferenceProperty? = null, pauseActions: ReferenceProperty>? = null, playerSettingsPayload: ReferenceProperty>? = null, + preloadRequired: ReferenceProperty? = null, preview: ReferenceProperty? = null, repeatable: ReferenceProperty? = null, resumeActions: ReferenceProperty>? = null, @@ -658,6 +673,7 @@ fun TemplateScope.videoRefs( paddings = paddings, pauseActions = pauseActions, playerSettingsPayload = playerSettingsPayload, + preloadRequired = preloadRequired, preview = preview, repeatable = repeatable, resumeActions = resumeActions, @@ -701,6 +717,7 @@ fun TemplateScope.videoRefs( * @param paddings Internal margins from the element stroke. * @param pauseActions Actions performed when playback is paused. * @param playerSettingsPayload Additional information that can be used in the player. + * @param preloadRequired This option turns on preloading of video sources. * @param preview Video preview encoded in `base64`. Will be shown until the video is ready to play. `Data url` format: `data:[;base64],` * @param repeatable This option turns on video repeat. * @param resumeActions Actions performed when video playback resumes. @@ -744,6 +761,7 @@ fun Video.override( paddings: EdgeInsets? = null, pauseActions: List? = null, playerSettingsPayload: Map? = null, + preloadRequired: Boolean? = null, preview: String? = null, repeatable: Boolean? = null, resumeActions: List? = null, @@ -786,6 +804,7 @@ fun Video.override( paddings = valueOrNull(paddings) ?: properties.paddings, pauseActions = valueOrNull(pauseActions) ?: properties.pauseActions, playerSettingsPayload = valueOrNull(playerSettingsPayload) ?: properties.playerSettingsPayload, + preloadRequired = valueOrNull(preloadRequired) ?: properties.preloadRequired, preview = valueOrNull(preview) ?: properties.preview, repeatable = valueOrNull(repeatable) ?: properties.repeatable, resumeActions = valueOrNull(resumeActions) ?: properties.resumeActions, @@ -830,6 +849,7 @@ fun Video.override( * @param paddings Internal margins from the element stroke. * @param pauseActions Actions performed when playback is paused. * @param playerSettingsPayload Additional information that can be used in the player. + * @param preloadRequired This option turns on preloading of video sources. * @param preview Video preview encoded in `base64`. Will be shown until the video is ready to play. `Data url` format: `data:[;base64],` * @param repeatable This option turns on video repeat. * @param resumeActions Actions performed when video playback resumes. @@ -873,6 +893,7 @@ fun Video.defer( paddings: ReferenceProperty? = null, pauseActions: ReferenceProperty>? = null, playerSettingsPayload: ReferenceProperty>? = null, + preloadRequired: ReferenceProperty? = null, preview: ReferenceProperty? = null, repeatable: ReferenceProperty? = null, resumeActions: ReferenceProperty>? = null, @@ -915,6 +936,7 @@ fun Video.defer( paddings = paddings ?: properties.paddings, pauseActions = pauseActions ?: properties.pauseActions, playerSettingsPayload = playerSettingsPayload ?: properties.playerSettingsPayload, + preloadRequired = preloadRequired ?: properties.preloadRequired, preview = preview ?: properties.preview, repeatable = repeatable ?: properties.repeatable, resumeActions = resumeActions ?: properties.resumeActions, @@ -942,6 +964,7 @@ fun Video.defer( * @param autostart This option turns on automatic video playback. On the web, the video starts if muted playback is turned on. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param muted This option mutes video. + * @param preloadRequired This option turns on preloading of video sources. * @param preview Video preview encoded in `base64`. Will be shown until the video is ready to play. `Data url` format: `data:[;base64],` * @param repeatable This option turns on video repeat. * @param rowSpan Merges cells in a string of the [grid](div-grid.md) element. @@ -957,6 +980,7 @@ fun Video.evaluate( autostart: ExpressionProperty? = null, columnSpan: ExpressionProperty? = null, muted: ExpressionProperty? = null, + preloadRequired: ExpressionProperty? = null, preview: ExpressionProperty? = null, repeatable: ExpressionProperty? = null, rowSpan: ExpressionProperty? = null, @@ -987,6 +1011,7 @@ fun Video.evaluate( paddings = properties.paddings, pauseActions = properties.pauseActions, playerSettingsPayload = properties.playerSettingsPayload, + preloadRequired = preloadRequired ?: properties.preloadRequired, preview = preview ?: properties.preview, repeatable = repeatable ?: properties.repeatable, resumeActions = properties.resumeActions, @@ -1031,6 +1056,7 @@ fun Video.evaluate( * @param paddings Internal margins from the element stroke. * @param pauseActions Actions performed when playback is paused. * @param playerSettingsPayload Additional information that can be used in the player. + * @param preloadRequired This option turns on preloading of video sources. * @param preview Video preview encoded in `base64`. Will be shown until the video is ready to play. `Data url` format: `data:[;base64],` * @param repeatable This option turns on video repeat. * @param resumeActions Actions performed when video playback resumes. @@ -1074,6 +1100,7 @@ fun Component