-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New component: Video #225
base: develop
Are you sure you want to change the base?
New component: Video #225
Conversation
Size Change: +11.6 kB (+22%) 🚨 Total Size: 65.2 kB
|
One issue that has come up in testing of this component on a client project is that sometimes people may upload videos that are too large, either by resolution or by filesize. It would be good to have a way to warn if the uploaded video dimensions are too large, or the filesize is too large. |
1 failed test on run #681 ↗︎
Details:
cypress/e2e/IconPicker.spec.js • 1 failed test
Review all test suite changes for PR #225 ↗︎ |
components/video/readme.md
Outdated
} | ||
``` | ||
|
||
If you'd like to make an Inspector control for this video, use `VideoControl` instead: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add demonstration here.
…ponents into feat/220-video-components
Items to copy from the client project:
Items to consider adding:
|
Description of the Change
Adds a
Video
component to matchImage
, and aVideoControl
component to simplify uploading and other aspects of the video.Adds incomplete documentation for the new components.
Outstanding questions:
poster
images?<track>
? If so, this may need to be paired with PHP code allowingvtt
files to be uploaded to WordPress. WordPress' core Video Block allows subtitles; we should borrow from their subtitle components where possible. https://wordpress.org/documentation/article/video-block/autoplay
,loop
,muted
,controls
, andplaysinline
?VideoControls
?allowedTypes
of specific MIME types that are allowed for upload, instead of defaulting to the wide-open"video"
or the more-limited[ 'video/webm', 'video/mp4']
?Closes #220
How to test the Change
Testing suggestions are welcome.
Video
andVideoControl
components to a block; make sure they workChangelog Entry
Credits
Props @username, @username2, ...
Checklist: