![]() ![]() If you are using npm and need to support browsers without Promise you will need a Promise polyfill.To generate this file yourself, checkout the repo and run npm run build:dist. ![]() See the demo source for a full example.įor platforms without direct use of npm modules, a minified version of ReactPlayer is located in dist after installing. Props can be passed in to control playback and react to events such as buffering or media ending. The component parses a URL and loads in the appropriate markup and external SDKs to play media from various sources. Import React from 'react' import ReactPlayer from 'react-player/lazy' // Lazy load the YouTube player ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |