diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fcb5b65c4..083e1fcd8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ ### Bugfix +- Adding video thumbnail for the .mp4 extension @iFlameing. + ### Internal ## 10.3.0 (2020-12-04) diff --git a/src/components/manage/Blocks/Video/Edit.jsx b/src/components/manage/Blocks/Video/Edit.jsx index 113e6fdd7d..81eeb1d0cb 100644 --- a/src/components/manage/Blocks/Video/Edit.jsx +++ b/src/components/manage/Blocks/Video/Edit.jsx @@ -253,6 +253,15 @@ class Edit extends Component { : data.url } controls + poster={ + data.preview_image + ? isInternalURL(data.preview_image) + ? `${flattenToAppURL( + data.preview_image, + )}/@@images/image` + : data.preview_image + : '' + } type="video/mp4" /> ) : ( diff --git a/src/components/manage/Blocks/Video/View.jsx b/src/components/manage/Blocks/Video/View.jsx index b78fa5d8ef..088637dbe9 100644 --- a/src/components/manage/Blocks/Video/View.jsx +++ b/src/components/manage/Blocks/Video/View.jsx @@ -128,6 +128,15 @@ const View = ({ data }) => ( : data.url } controls + poster={ + data.preview_image + ? isInternalURL(data.preview_image) + ? `${flattenToAppURL( + data.preview_image, + )}/@@images/image` + : data.preview_image + : '' + } type="video/mp4" /> ) : (