Skip to content

Commit

Permalink
Show video preview on cover media settings panel (#18009)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta authored Nov 23, 2019
1 parent ba8cd71 commit fa0e472
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/block-library/src/cover/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,14 @@ function CoverEdit( {
onChange={ ( newFocalPoint ) => setAttributes( { focalPoint: newFocalPoint } ) }
/>
) }
{ VIDEO_BACKGROUND_TYPE === backgroundType && (
<video
autoPlay
muted
loop
src={ url }
/>
) }
<PanelRow>
<Button
isDefault
Expand Down

0 comments on commit fa0e472

Please sign in to comment.