Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Autoplay videos and GIFs if enabled by the user. #730

Merged
merged 3 commits into from
Mar 2, 2017

Conversation

Half-Shot
Copy link
Contributor

@Half-Shot Half-Shot commented Feb 27, 2017

(Also mutes the video, because nobody wants that).

Fixes element-hq/element-web#2433

@matrixbot
Copy link
Member

Can one of the admins verify this patch?

@dbkr
Copy link
Member

dbkr commented Mar 2, 2017

@matrixbot test this please

@Half-Shot
Copy link
Contributor Author

Signed-off-by: Will Hunt half-shot@molrams.com

@@ -100,7 +104,9 @@ module.exports = React.createClass({

_getThumbUrl: function() {
const content = this.props.mxEvent.getContent();
console.log(content);
Copy link
Member

Choose a reason for hiding this comment

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

stray log line

return (
content &&
content.info &&
content.info.mimetype === "image/gif");
Copy link
Member

Choose a reason for hiding this comment

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

nitpick: bracket generally goes on a new line

if (content.file !== undefined) {
// Don't use the thumbnail for client's wishing to autoplay gifs.
Copy link
Member

Choose a reason for hiding this comment

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

image

@dbkr dbkr merged commit 8be66d0 into matrix-org:develop Mar 2, 2017
@Half-Shot Half-Shot deleted the hs/video-gif-autoplay branch March 2, 2017 13:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants