Answers for "react player disable download"

2

react player disable download

// 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 */
Posted by: Guest on March-24-2020
0

react player disable download

hstr1782@gmail.
Posted by: Guest on July-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language