Commit Graph

54 Commits (394d2f0bff0ce471ca2b6cfdfef32bdc679b8655)

Author SHA1 Message Date
lilia df06499a19 Use blob urls to display attachments
Converting attachment data to base64-encoded data uris takes O(n) and
there's no need! URL.createObjectURL returns a magic link that can be
set as the `src` attribute to `img`, `video`, and `audio` tags to load
blob data directly without copying.

https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
11 years ago
lilia 0778854cc4 Attachments should be in spans, not divs 11 years ago
lilia ddc0ed1b9a Add audio and video players
Basic implementation using html5 audio/video tags and data URIs.
11 years ago
lilia 3d6c251fd1 Group avatars 11 years ago