Video.js
14 lines
| 1 | const Video = ( { url, title } ) => ( |
| 2 | <div className="aspect-video rounded-lg bg-background-tertiary overflow-clip shadow-sm"> |
| 3 | <iframe |
| 4 | src={ url } |
| 5 | title={ title } |
| 6 | className="w-full h-full border-none" |
| 7 | allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
| 8 | allowFullScreen |
| 9 | /> |
| 10 | </div> |
| 11 | ); |
| 12 | |
| 13 | export default Video; |
| 14 |