Skip to content

Commit

Permalink
clobber the mimetype to make it work in e2ee rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
ara4n committed Mar 22, 2022
1 parent c98fb4f commit 9a76bb0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ContentMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,12 @@ export default class ContentMessages {
// if we have a mime type for the file, add it to the message metadata
if (file.type) {
content.info.mimetype = file.type;

// clobber quicktime muxed files to be considered MP4 so browsers
// are willing to play them
if (content.info.mimetype == "video/quicktime") {
content.info.mimetype = "video/mp4";
}
}

const prom = new Promise<void>((resolve) => {
Expand Down

0 comments on commit 9a76bb0

Please sign in to comment.