SchildiChat / SchildiChat-android

Matrix client / Element Android fork
https://schildi.chat/android/
Apache License 2.0
407 stars 57 forks source link

Add the video title to the message when I share a youtube URL #102

Open juanfra684 opened 2 years ago

juanfra684 commented 2 years ago

Hi, many thanks for your work on the client. It's really great.

Is your feature request related to a problem? Please describe.

I don't know how the Android Share API (not idea about the real name) works, so I will try to describe what I would like to have in the client.

I use NewPipe to watch youtube videos. Sometimes I use the share button to share the video with telegram and the video title + url appears in the message entry of telegram. When I do the same with SC, only the URL appears in the message entry.

The message looks very similar on telegram and SC due the URL preview of the matrix server, which includes the title. However, when the video author (or even youtube) deletes the video, I can't know what was that old video which I have in an old message in a matrix group. With telegram, you can't watch a deleted video but you know what video was there.

Describe the solution you'd like

I think that the only problem here is that SC is using something different that telegram, so it doesn't take (or request) that title which NewPipe has. I would like some way to add automatically the title + url to the message box. Also, some servers and clients don't support the URL previews so in that case it would be a good alternative.