Skip to content

Add option to fetch OEmbed only #528

@nerg4l

Description

@nerg4l

I think it would be a great addition if there would be an option to fetch OEmbed information only. At the moment, there will be a call to the original URL and then when a value of \Embed\OEmbed is accessed, there will be a new HTTP call to fetch the JSON document.

At the moment the only workaround I could find is to do the following:

$url = 'https://www.youtube.com/watch?v=jNQXAC9IVRw';
new OEmbed(new Extractor(new Uri($url), $factory->createRequest("GET", $url), $factory->createResponse(), new Crawler()))

The main problem I think is the coupling with \Embed\Extractor.

If this is something that not planned, that's not a problem.

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