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