Open lmischner opened 1 year ago
Not sure if this is by design but seems that adding media items works differently by platform. On iOS, in most cases, we only allow single items. Nevertheless on Android, when adding items from the WP media library, we always allow multiple.
The flow for Android when selecting multiple WP media items works this way:
mediaAppend
bridge event. They are processed by the editor here. As you can see, the media are converted to blocks just by checking the media type.The above flow won't work for VideoPress videos, so we need to figure out to expand that logic. Alternatively, we could disable this functionality only for the VideoPress block.
Describe the bug When either replacing a video in a VP block or initially adding one, if you choose to select the video from the WordPress Media Library, then you're able to choose multiple videos. Only the first one uses the VP block (the others use the Video block).
To Reproduce Steps to reproduce the behavior:
Expected behavior In iOS, we can only select one video. If we can select multiple, I'd expect them all to use the same block type.
Screenshots
https://github.com/wordpress-mobile/gutenberg-mobile/assets/103850310/85a25045-a4c5-4a0e-83ab-7c558b4a4aed
Smartphone (please complete the following information):