|
|
@@ -2,6 +2,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes'; |
|
|
|
import PureRenderMixin from 'react-addons-pure-render-mixin'; |
|
|
|
import IconButton from './icon_button'; |
|
|
|
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; |
|
|
|
import { isIOS } from '../is_mobile'; |
|
|
|
|
|
|
|
const messages = defineMessages({ |
|
|
|
toggle_sound: { id: 'video_player.toggle_sound', defaultMessage: 'Toggle sound' }, |
|
|
@@ -197,7 +198,7 @@ const VideoPlayer = React.createClass({ |
|
|
|
<div style={{ cursor: 'default', marginTop: '8px', overflow: 'hidden', width: `${width}px`, height: `${height}px`, boxSizing: 'border-box', background: '#000', position: 'relative' }}> |
|
|
|
{spoilerButton} |
|
|
|
{muteButton} |
|
|
|
<video ref={this.setRef} src={media.get('url')} autoPlay={true} loop={true} muted={this.state.muted} style={videoStyle} onClick={this.handleVideoClick} /> |
|
|
|
<video ref={this.setRef} src={media.get('url')} autoPlay={!isIOS()} loop={true} muted={this.state.muted} style={videoStyle} onClick={this.handleVideoClick} /> |
|
|
|
</div> |
|
|
|
); |
|
|
|
} |
|
|
|