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

Enable embeds of any other video embed type #81

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Enovale
Copy link

@Enovale Enovale commented Jun 15, 2024

Use a <video> tag to embed any VideoEmbed type.

Also cleaned up the code a bit.

val playButton = cardView.findViewById<View>(Utils.getResId("chat_list_item_embed_image_icons", "id"))
playButton.visibility = View.GONE
chatListItemEmbedImage.visibility = View.GONE
val posterUrl = embed.image?.url
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double check that this is discord media proxy url and not the external url, otherwise this can be used to ip log

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I use the ProxyUrl, the videos don't load, that's why I wasn't using them. I don't know what's wrong with it

Copy link
Author

@Enovale Enovale Jun 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thumbnail can sometimes be proxied however. I'll make sure to enable that, but it can't always be proxied. Sometime's its fetched by preloading the metadata in the video player.

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

Successfully merging this pull request may close these issues.

None yet

2 participants