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:
commit
37afaaa894
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue