-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
base: main
Are you sure you want to change the base?
Conversation
Also cleanup code a bit.
...Embeds/src/main/kotlin/dev/vendicated/aliucordplugins/betterplatformembeds/PlayableEmbeds.kt
Outdated
Show resolved
Hide resolved
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Use a <video> tag to embed any VideoEmbed type.
Also cleaned up the code a bit.