* Add `VideoCompressorPreset` enum This represents the different compression presets used for processing videos before uploading them * Add `VideoCompressorHelper` util class to calculate the scaled output size of the video given an input size and its optimal bitrate Also add `MediaOptimizationConfig` which will be used to decide how to apply compression in `MediaPreProcessor` * Add `RustMatrixClient.getMaxFileUploadSize()` function and `MaxUploadSizeProvider` so we can import only this functionality into other components * Try preloading the max file upload size the first time we get network connectivity - it's a best effort This should help ensure we'll have this value available later, even if we still need to load it asynchronously. * Split the `compressMedia` preference into `compressImages` and `compressMediaPreset` * Modify the media processing parts to use the new classes and utils * Add `MediaOptimizationSelectorPresenter`, which will retrieve the compression values and the max file upload size, also estimating the compressed video file sizes if needed. * Add a feature flag to allow selecting the media upload quality per upload * Integrate the previous changes with the attachments preview screen Add strings from localazy too. * Adapt the rest of the app calls to upload media to using the media optimization configs * Allow modifying the default compression values in advanced settings, based on the feature flag value * Pass the `fileSize` in `MediaUploadInfo` too, to be able to check it against the `maxUploadSize` * Update screenshots --------- Co-authored-by: ElementBot <android@element.io>
33 lines
2.4 KiB
XML
33 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
|
<string name="rich_text_editor_a11y_add_attachment">"Add attachment"</string>
|
|
<string name="rich_text_editor_bullet_list">"Toggle bullet list"</string>
|
|
<string name="rich_text_editor_close_formatting_options">"Cancel and close text formatting"</string>
|
|
<string name="rich_text_editor_code_block">"Toggle code block"</string>
|
|
<string name="rich_text_editor_composer_caption_placeholder">"Add a caption"</string>
|
|
<string name="rich_text_editor_composer_encrypted_placeholder">"Encrypted message…"</string>
|
|
<string name="rich_text_editor_composer_placeholder">"Message…"</string>
|
|
<string name="rich_text_editor_composer_unencrypted_placeholder">"Unencrypted message…"</string>
|
|
<string name="rich_text_editor_create_link">"Create a link"</string>
|
|
<string name="rich_text_editor_edit_link">"Edit link"</string>
|
|
<string name="rich_text_editor_format_action">"%1$s, state: %2$s"</string>
|
|
<string name="rich_text_editor_format_bold">"Apply bold format"</string>
|
|
<string name="rich_text_editor_format_italic">"Apply italic format"</string>
|
|
<string name="rich_text_editor_format_state_disabled">"disabled"</string>
|
|
<string name="rich_text_editor_format_state_off">"off"</string>
|
|
<string name="rich_text_editor_format_state_on">"on"</string>
|
|
<string name="rich_text_editor_format_strikethrough">"Apply strikethrough format"</string>
|
|
<string name="rich_text_editor_format_underline">"Apply underline format"</string>
|
|
<string name="rich_text_editor_full_screen_toggle">"Toggle full screen mode"</string>
|
|
<string name="rich_text_editor_indent">"Indent"</string>
|
|
<string name="rich_text_editor_inline_code">"Apply inline code format"</string>
|
|
<string name="rich_text_editor_link">"Set link"</string>
|
|
<string name="rich_text_editor_numbered_list">"Toggle numbered list"</string>
|
|
<string name="rich_text_editor_open_compose_options">"Open compose options"</string>
|
|
<string name="rich_text_editor_quote">"Toggle quote"</string>
|
|
<string name="rich_text_editor_remove_link">"Remove link"</string>
|
|
<string name="rich_text_editor_unindent">"Unindent"</string>
|
|
<string name="rich_text_editor_url_placeholder">"Link"</string>
|
|
<string name="screen_media_upload_preview_caption_warning">"Captions might not be visible to people using older apps."</string>
|
|
<string name="screen_room_voice_message_tooltip">"Hold to record"</string>
|
|
</resources>
|