Skip to content

Commit

Permalink
Show video preview on cover media settings panel
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Nov 14, 2019
1 parent 6d5b7fa commit c654eb6
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 @@ -344,6 +344,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 c654eb6

Please sign in to comment.