diff --git a/README.md b/README.md index e6b6763..25d4c30 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ import ApiVideoPlayer from '@api.video/react-player' // ... - + ``` ## Documentation @@ -105,16 +105,18 @@ Examples ```tsx {/* default: all controls are displayed */} + video={{id: "vi5fv44Hol1jFrCovyktAJS9"}} style={{ height: '480px' }} /> {/* all controls hidden (equivalent to chromeless=true) */} { /* only the play button & the unmute one are displayed */} ``` @@ -128,6 +130,7 @@ Example { /* display the text in blue and the progress bar in red */} + token: "e1bdf9a8-da40-421e-87f3-75b15232c531"}} + style={{ height: '480px' }} /> ``` #### Defining metadata @@ -211,6 +215,7 @@ To play a [private video](https://api.video/blog/tutorials/tutorial-private-vide // ... ``` @@ -222,6 +227,7 @@ const playerRef = useRef(null); return