Skip to content

Video block new embed#6359

Merged
sneridagh merged 43 commits intomainfrom
video-block-new-embed
Feb 19, 2026
Merged

Video block new embed#6359
sneridagh merged 43 commits intomainfrom
video-block-new-embed

Conversation

@jackahl
Copy link
Copy Markdown
Member

@jackahl jackahl commented Oct 1, 2024

Replacing the semantic ui embed component with a custom one, to allow for more flexibility especially in regards to accessibility. This does mainly address issues raised in #5731.

@jackahl jackahl requested a review from sneridagh October 1, 2024 09:06
@netlify
Copy link
Copy Markdown

netlify Bot commented Oct 1, 2024

Deploy Preview for plone-components canceled.

Name Link
🔨 Latest commit ab00cfe
🔍 Latest deploy log https://app.netlify.com/sites/plone-components/deploys/67090c5f362aa40008609161

@jackahl
Copy link
Copy Markdown
Member Author

jackahl commented Oct 1, 2024

@sneridagh should this new component be moved to the volto components package or shall it stay in there core package?

@sneridagh
Copy link
Copy Markdown
Member

sneridagh commented Oct 2, 2024

@jackahl LGTM, however, I'd put the component as general available component, in components folder (and, eventually, transfer it to @plone/components, but that's for later, if Volto has to use it right away).

@jackahl jackahl marked this pull request as ready for review October 8, 2024 07:22
Copy link
Copy Markdown
Collaborator

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar fixes.

Comment thread packages/volto/news/6359.feature Outdated
Comment thread packages/volto/locales/volto.pot Outdated
jackahl and others added 2 commits October 11, 2024 13:30
@iRohitSingh
Copy link
Copy Markdown
Contributor

@sneridagh What should be the behavior when someone pass the autoplay:true in video block. Video should start playing automatically when page loads right?

sneridagh and others added 2 commits April 8, 2025 10:27
* main: (356 commits)
  Update or remove broken links (#6953)
  Only accept images in ImageInput component (#6926)
  Bump vite from 5.4.15 to 5.4.16 (#6932)
  Fetch vocabularies and querystring config in the current context (#6935)
  Remove the build from netlify for @plone/components
  Complete missing german translations and Storybook story for 'ContentsDeleteModal' (#6881)
  Remove duplicate configuration item `html_title` (#6933)
  Forwardport hand-cherrypicking the changes happened in Seven for `@plone/registry` relevant for be reintegrated in alpha (`main`). (#6929)
  Fixed regression on brown bag minor version of `@storybook/addon-webpack5-compiler-babel` (#6930)
  Amend PR #6885 changelog to be breaking
  s/Seven/Volto on `main` (#6925)
  Release @plone/registry 3.0.0-alpha.1
  Release @plone/types 2.0.0-alpha.0
  Remove news from packages that won't be released from main
  Fixed merge public folder from addons regression (#6919)
  Fixed handling of errors that are not coming from the backend (#6903)
  Move _hardware-requirements.md include from documentation to volto (#6918)
  Move includes from `plone/documentation` to `plone/volto` (#6917)
  Fix typo in Appextras documentation (#6083)
  Fix gray placeholder on horizontal scroll (#6877)
  ...
Co-authored-by: Steve Piercy <web@stevepiercy.com>
@sneridagh
Copy link
Copy Markdown
Member

@iRohitSingh please make CI pass too, and solve conflicts.

#. Default: "Please enter a valid URL by deleting the block and adding a new video block."
#: components/manage/Blocks/Video/Body
msgid "Please enter a valid URL by deleting the block and adding a new video block."
msgstr "Introduïu un URL vàlid suprimint el bloc i afegint un bloc de vídeo nou."
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure we don't remove existing translations. (here and in the other locales)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iRohitSingh I meant for ALL of the locales. This is not the only one where this translation was removed.

Comment thread packages/volto/src/components/manage/Blocks/Video/schema.js Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be .breaking since it's in the public UI and potentially breaks styles written for the old markup.

@sneridagh Can we include this for volto 19?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davisagli yes, we can include it in 19!

@jackahl @iRohitSingh What is left to do in here? Could you please got through David's suggestions? Thanks!

Comment thread packages/volto/src/components/index.js Outdated
} = props;

const [isActive, setIsActive] = useState(false);
const PlayVideo = () => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use useCallback so that a new function isn't created on every render.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iRohitSingh The PlayVideo function is still created on every render.

Comment thread packages/volto/src/components/theme/VideoEmbed/VideoEmbed.jsx Outdated
Comment thread packages/volto/src/components/manage/Blocks/Video/Body.jsx Outdated
Comment thread docs/source/blocks/settings.md Outdated
Comment thread docs/source/blocks/settings.md Outdated
Comment thread packages/volto/news/6870.feature Outdated
Comment thread packages/volto/news/6359.feature Outdated
Comment thread packages/volto/locales/volto.pot Outdated
@iFlameing
Copy link
Copy Markdown
Member

@davisagli can you please review this pr. I think it is ready.

@davisagli
Copy link
Copy Markdown
Member

@iFlameing See above, I already made some new comments after @iRohitSingh's latest changes.

Here is what still needs to be fixed:

  • don't remove existing translations (for all locales)
  • changelog should be .breaking
  • the PlayVideo function should use useCallback so it is not created on every render

Copy link
Copy Markdown
Member

@iFlameing iFlameing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@iFlameing
Copy link
Copy Markdown
Member

@davisagli I did the review of code and now.

  1. don't remove existing translations (for all locales)(I checked and now we are only adding.)
  2. changelog should be .breaking (done)
  3. the PlayVideo function should use useCallback so it is not created on every render (it is also wrapped in callback).

cc @sneridagh

@iFlameing iFlameing changed the title WIP: Video block new embed Video block new embed Feb 18, 2026
Copy link
Copy Markdown
Member

@sneridagh sneridagh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, LGTM!!

@plone/volto-team can we get more eyes on this one?


[Peertube](https://joinpeertube.org/) is a free and open source, decentralized, ActivityPub federated video platform.

To configure the video block to use other instances of Peertube, add them to the `allowedPeertubeInstances` array in your project configuration object, as shown in the following example.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not clear why people need to do that. Do we whitelist them in the code?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PeerTube is federated and not centralized, like Mastodon. Plone has its own Mastodon instance of plone.social, as an example.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the whitelist.

Copy link
Copy Markdown
Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sneridagh sneridagh merged commit a8440a2 into main Feb 19, 2026
76 of 77 checks passed
@sneridagh sneridagh deleted the video-block-new-embed branch February 19, 2026 07:50
@github-project-automation github-project-automation Bot moved this from Review in progress to Done in Accessibility Feb 19, 2026
hasansyed107 added a commit to hasansyed107/volto that referenced this pull request Feb 20, 2026
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: iRohitSingh <isinghrohit0@gmail.com>
Co-authored-by: Victor Fernandez de Alba <sneridagh@gmail.com>
Co-authored-by: Ion Lizarazu <ilizarazu@codesyntax.com>
sneridagh added a commit that referenced this pull request Feb 20, 2026
* main:
  Release 19.0.0-alpha.26
  Release @plone/slate 19.0.0-alpha.11
  Backport @plone/components 4a6 (#7927)
  Use `getSlateEditorAndType` in `03-block-slate.js` to make the test more robust (#7924)
  Video block new embed (#6359)
  Add changelog check for volto-razzle (#7919)
  Add Vitest test for .well-known handling in production build (#7868)
  Make Slate tables responsive horizontally (#7916)
  fix: show only error message in toast instead of stringified JSON (#7692)
  Add missing i18n and fix duplicate id in Facet widget (#7909)
  Docs: Minor grammar and Clarity improvements in critical.css section (#7902)
Manik-Khajuria-5 pushed a commit to Manik-Khajuria-5/volto that referenced this pull request Feb 22, 2026
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: iRohitSingh <isinghrohit0@gmail.com>
Co-authored-by: Victor Fernandez de Alba <sneridagh@gmail.com>
Co-authored-by: Ion Lizarazu <ilizarazu@codesyntax.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants