Upgrade Storybook
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
8c966dfbd8
commit
502ea174ab
328 changed files with 10863 additions and 12432 deletions
|
@ -21,6 +21,8 @@ import {
|
|||
} from '../types/Attachment';
|
||||
import { getClassNamesFor } from '../util/getClassNamesFor';
|
||||
import { isVideoTypeSupported } from '../util/GoogleChrome';
|
||||
import * as log from '../logging/log';
|
||||
import * as Errors from '../types/errors';
|
||||
|
||||
export type PropsType = {
|
||||
readonly attachment?: AttachmentType;
|
||||
|
@ -75,7 +77,12 @@ export function StoryImage({
|
|||
videoRef.current.pause();
|
||||
} else {
|
||||
onMediaPlaybackStart();
|
||||
void videoRef.current.play();
|
||||
void videoRef.current.play().catch(error => {
|
||||
log.error(
|
||||
'StoryImage: Failed to play video',
|
||||
Errors.toLogFormat(error)
|
||||
);
|
||||
});
|
||||
}
|
||||
}, [isPaused, onMediaPlaybackStart]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue