Skip to content

Google Drive support #408

Open
Open

Description

@garbinmarcelo

Hello, I recently discovered that Google Drive has a video player and embed sharing (via iframe) of videos.

I would like to know if this package would support this feature, in the case of using video links from Google Drive.

It would be possible? If so, how could you do it?

Thanks

Activity

  1. oscarotero commented on Dec 4, 2020

    @oscarotero
    Collaborator

    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.

  2. garbinmarcelo commented on Dec 4, 2020

    @garbinmarcelo
    Author

    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

  3. Vitorinox commented on Nov 21, 2026

    @Vitorinox
    Collaborator

    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:

    composer require embed/embed:dev-feat/providers-4.7.0
    

    Feedback is very welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions