Jwplayer
Wrapper Promise of jwplayer for npm packages
; const setup = file: 'https://raw.githubusercontent.com/juanpablocs/react-vplayer/master/demo/video/720p.mp4' type: "video/mp4" width: windowinnerWidth height: windowinnerHeight; async { try const player = await ; // jwplayer library instance player; catche console; };
React implementation
;; { const playerRef = React; React; return <div className="App"> <div ref=playerRef id='player'></div> </div> ;}