react player disable download

JavaScript
// credit goes to CookPete
<ReactPlayer 
  url={[{src: Video, type: 'video/mp4'}]} // video location
  controls  // gives the front end video controls 
  width='100%' 
  height='100%'
  config={{ file: { 
      attributes: {
        controlsList: 'nodownload'  //<- this is the important bit
      }
  }}}
  onEnded={()=>this.onEnded()}
/>

/* Ez game */
Source

Also in JavaScript: