Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I would like a little help and direction on how to add a new provider to video_embed_field.api.php
I am specifically trying to work out how to make the module work with a cloud storage service such as Dropbox or Google Drive
Does anyone have any experience with video_embed_field.api.php, they liked to share?
Thanks,
- Christian
Comments
Comment #2
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedJust for clarification, the video_embed_field.api.php file demonstrates HOW to use the API. It's an example of how you might use the hooks to create a new provider.
Comment #3
S@ilor CreditAttribution: S@ilor commentedThanks for this, Sam152
It should have been evident to me, if I had studied it a bit longer. Still, if you have anything to share regarding adding a cloud storage service, I'd appreciate it.
Comment #4
SAW-James CreditAttribution: SAW-James commented@S@ilor
Below is a simple implementation of the google drive video_embed_field module extension.
The URL to be added to the field is the Embed URL Google Drive provides without the iframe tag.
video_embed_google_drive.module:
Comment #5
S@ilor CreditAttribution: S@ilor commented@SAW-James
Apologies for my belated thanks. May come in handy in the next project.
Comment #6
S@ilor CreditAttribution: S@ilor commentedComment #8
StryKaizerFor drupal 8 users, see:
https://www.drupal.org/project/video_embed_google_drive
d7 not (yet) supported though