This is an experimental feature.
This component inserts the Youtube iframe player into your react application
To use the react Youtube player component you have to import it from the
reactjs-media module as
List of the available props:
Note: Since this is an experimental feature we recommend right clicking on the video inorder to get the video url instead of copying from the browser address bar. Both work but there are some issuses incase of page reloads.
|string: Required||This represents the url of the video|
|string: Optional||This is needed to prevent iframe warning in the terminal|
|Boolean: Optional||This will enable the fullsscreen button on the player|
|string: Optional||The can be placed incase you want to use it|
|string or number: Optional||The max height of the player|
|string or number: Optional||The max width of the player|
Youtube player is only available in version
1.2.0 above if you want to use it then upgrade.
1.3.x we plan to improve the youtube player component and add a soundcloud and other players. If you are willing you can contribute to the projects on Github