Repair video playback in viewer
This commit is contained in:
parent
42108c9ca9
commit
1a9547c98f
5 changed files with 112 additions and 29 deletions
|
@ -14,6 +14,7 @@ import {
|
|||
fakeAttachment,
|
||||
fakeThumbnail,
|
||||
} from '../test-both/helpers/fakeAttachment';
|
||||
import { VIDEO_MP4 } from '../types/MIME';
|
||||
|
||||
const i18n = setupI18n('en', enMessages);
|
||||
|
||||
|
@ -87,3 +88,13 @@ story.add('Broken Image (thumbnail)', () => (
|
|||
isThumbnail
|
||||
/>
|
||||
));
|
||||
|
||||
story.add('Video', () => (
|
||||
<StoryImage
|
||||
{...getDefaultProps()}
|
||||
attachment={fakeAttachment({
|
||||
contentType: VIDEO_MP4,
|
||||
url: '/fixtures/pixabay-Soap-Bubble-7141.mp4',
|
||||
})}
|
||||
/>
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue