Show image thumbnail or website video as soon as you type site url

Asked

Viewed 72 times

1

I have a posting system, but if I put for example: "/questions/ask" The system will interpret it that way and print it that way. I would like to know how to do before the user post, appear a preview of the image or video and after that post, appear as an external image or external video. Just like on Facebook.

  • I believe it’s 'simple' but not so much, but I can’t say, so I’ll just comment, I think it’s a request via websocket and reads the link, and by reading the structure of the html pages, the tags 'article', or by the size of 'H4' (there are more things that can be read) and returns a formatted response, or it may be until there is a google api for this, but I could not find.

  • Vlw friend, I’m almost done with my project. All help is welcome.

  • @Louie I also believe it is easy, here it will be kind of difficult to get a complete code, I advise to search the internet similar subjects and go changed to your code.

  • Vlw by the board. :)

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.