Repair video playback in viewer

This commit is contained in:
Josh Perez 2022-04-12 15:29:30 -04:00 committed by GitHub
parent 42108c9ca9
commit 1a9547c98f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 112 additions and 29 deletions

View file

@ -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',
})}
/>
));