You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, it's possible, but I don't have enough time to do that. If you (or anyone else) want to work on this, a pull request is very appreciated.
The way to implement this is by creating a new adapter for Google. You can see the existing adapters for inspiration: https://github.com/oscarotero/Embed/tree/master/src/Adapters (for example, Flickr has an adapter to provide a fallback way to detect the embed code).
This is addressed in PR #593: Google Drive file URLs now get an embed iframe for the file. It is planned for 4.7.0. If you want to try it before the release:
Activity
oscarotero commentedon Dec 4, 2020
Yes, it's possible, but I don't have enough time to do that. If you (or anyone else) want to work on this, a pull request is very appreciated.
The way to implement this is by creating a new adapter for Google. You can see the existing adapters for inspiration:
https://github.com/oscarotero/Embed/tree/master/src/Adapters (for example, Flickr has an adapter to provide a fallback way to detect the embed code).
Then, you have to register the adapter here: https://github.com/oscarotero/Embed/blob/master/src/ExtractorFactory.php#L14, indicating the domain in which the adapter will be loaded.
garbinmarcelo commentedon Dec 4, 2020
Ok, this month I also have tight deadlines for project delivery, but if I can, next month I work on it. =)
Can you leave this issue open?
Thanks
Vitorinox commentedon Nov 21, 2026
This is addressed in PR #593: Google Drive file URLs now get an embed iframe for the file. It is planned for 4.7.0. If you want to try it before the release:
Feedback is very welcome.