Skip to content

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.

2 participants