Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot preview Youtube urls #7

Open
imcouri opened this issue Jan 8, 2021 · 5 comments
Open

Cannot preview Youtube urls #7

imcouri opened this issue Jan 8, 2021 · 5 comments

Comments

@imcouri
Copy link

imcouri commented Jan 8, 2021

i don't know if it's just me or others have this issue, but I can't fetch info about any video on yt, youtube.com and other websites work, but video urls don't does anyone else have this issue?

@jaceshim
Copy link

jaceshim commented Feb 5, 2021

i got a same problem.

jaceshim pushed a commit to jaceshim/flutter_link_preview that referenced this issue Feb 5, 2021
@sarinupreti
Copy link

@jaceshim did not work i referenced your commit still the image is not being fetched.

@kunalmanocha98
Copy link

Short links are not visible

@jvinicius66
Copy link

You can use 'https://www.youtube.com/oembed?url=$link&format=json' to get metadata.

Simulator Screen Shot - iPhone 8 - 2021-05-16 at 23 15 09

@asmodeoux
Copy link

You can convert short links to full ones:

if (urlText.contains("youtu.be/")) {
        urlText = urlText.replaceAll(
                "youtu.be/",
                "youtube.com/watch?v=");
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants