|
|
|
@ -4,6 +4,7 @@ import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
|
|
|
|
import { throttle } from 'lodash';
|
|
|
|
|
import classNames from 'classnames';
|
|
|
|
|
import { isFullscreen, requestFullscreen, exitFullscreen } from 'flavours/glitch/util/fullscreen';
|
|
|
|
|
import { displaySensitiveMedia } from 'flavours/glitch/util/initial_state';
|
|
|
|
|
|
|
|
|
|
const messages = defineMessages({
|
|
|
|
|
play: { id: 'video.play', defaultMessage: 'Play' },
|
|
|
|
@ -108,7 +109,7 @@ export default class Video extends React.PureComponent {
|
|
|
|
|
fullscreen: false,
|
|
|
|
|
hovered: false,
|
|
|
|
|
muted: false,
|
|
|
|
|
revealed: !this.props.sensitive,
|
|
|
|
|
revealed: !this.props.sensitive || displaySensitiveMedia,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
setPlayerRef = c => {
|
|
|
|
|