0
0
Fork 0

Add color extraction for audio thumbnails (#14209)

This commit is contained in:
Eugen Rochko 2020-07-05 18:28:25 +02:00 committed by GitHub
parent 2f2ab48b75
commit 99f3a55540
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 284 additions and 243 deletions

View file

@ -61,7 +61,9 @@ export default class AudioModal extends ImmutablePureComponent {
duration={media.getIn(['meta', 'original', 'duration'], 0)}
height={150}
poster={media.get('preview_url') || status.getIn(['account', 'avatar_static'])}
blurhash={media.get('blurhash')}
backgroundColor={media.getIn(['meta', 'colors', 'background'])}
foregroundColor={media.getIn(['meta', 'colors', 'foreground'])}
accentColor={media.getIn(['meta', 'colors', 'accent'])}
/>
</div>