Merge branch 'fix-video-blackscreen' into 'develop'

Remove unnecessary video preview url that was breaking video previews

See merge request soapbox-pub/soapbox-fe!151
This commit is contained in:
Alex Gleason 2020-08-11 00:12:26 +00:00
commit 37afaaa894
1 changed files with 1 additions and 2 deletions

View File

@ -396,7 +396,7 @@ class Video extends React.PureComponent {
} }
render() { render() {
const { preview, src, inline, onOpenVideo, onCloseVideo, intl, alt, detailed, sensitive, link, aspectRatio } = this.props; const { src, inline, onOpenVideo, onCloseVideo, intl, alt, detailed, sensitive, link, aspectRatio } = this.props;
const { containerWidth, currentTime, duration, volume, buffer, dragging, paused, fullscreen, hovered, muted, revealed } = this.state; const { containerWidth, currentTime, duration, volume, buffer, dragging, paused, fullscreen, hovered, muted, revealed } = this.state;
const progress = (currentTime / duration) * 100; const progress = (currentTime / duration) * 100;
@ -445,7 +445,6 @@ class Video extends React.PureComponent {
{revealed && <video {revealed && <video
ref={this.setVideoRef} ref={this.setVideoRef}
src={src} src={src}
poster={preview}
// preload={this.getPreload()} // preload={this.getPreload()}
loop loop
role='button' role='button'