- Issue created by @makbay
- Merge request !2Issue #3410692: Youtu.be doesn't seem to work with Media Library and Fitvids → (Open) created by makbay
- 🇳🇱Netherlands florisg
It seems like the library is not included as dependency in the module (2.x).
found a blog that got it working when implemented.It describes to add the following under `repositories` in `composer.json`:
```
{
"type": "package",
"package": {
"name": "davatron5000/fitvids",
"version": "1.2.0",
"type": "drupal-library",
"source": {
"url": "https://github.com/davatron5000/FitVids.js.git",
"type": "git",
"reference": "v1.2.0"
},
"require": {
"composer/installers": "^2.0"
},
"extra": {
"installer-name": "fitvids"
}
}
}
```
Then include the library from github:
```
composer require davatron5000/fitvids:1.2.0
```Finally apply the css from issue 3158833 🐛 Not applying to oEmbed videos Needs work
Now the fitVids works for oembed external video like youtube, vimeo etcetera.