diff --git a/packages/gallery/src/components/item/videos/videoItem.js b/packages/gallery/src/components/item/videos/videoItem.js index cfc715c83..1fe373205 100644 --- a/packages/gallery/src/components/item/videos/videoItem.js +++ b/packages/gallery/src/components/item/videos/videoItem.js @@ -114,22 +114,8 @@ class VideoItem extends React.Component { } playVideoIfNeeded(props = this.props) { - const { playingVideoIdx } = props; - const { reactPlayerLoaded, vimeoPlayerLoaded, hlsPlayerLoaded } = - this.state; - try { - //ensure the necessary player is loaded - if ( - (this.isHLSVideo() && !hlsPlayerLoaded) || - (this.props.videoUrl && - this.props.videoUrl.includes('vimeo.com') && - !vimeoPlayerLoaded) || - !reactPlayerLoaded - ) { - return; - } - + const { playingVideoIdx } = props; if (playingVideoIdx === this.props.idx && !this.isPlaying) { this.videoElement = this.videoElement ||