Ajaxy / telegram-tt

Telegram Web A, GPL v3
https://web.telegram.org/a
GNU General Public License v3.0
2.39k stars 519 forks source link

Youtube link preview with embed player #386

Open shevernitskiy opened 3 weeks ago

shevernitskiy commented 3 weeks ago

It would be more convenient if the YouTube URL preview included an embedded player instead of a static image. While the desktop and iOS clients allow videos to be played directly within the app, on the web version, I have to follow the link to watch the video. We need just get an ID (by regex for example) and add https://www.youtube.com/embed/{ID}iframe.

https://developers.google.com/youtube/player_parameters