fix encrypted video not rendering
This commit is contained in:
parent
fcb3577cf6
commit
73c4caf2e1
1 changed files with 1 additions and 1 deletions
|
|
@ -311,7 +311,7 @@ type MVideoProps = {
|
|||
};
|
||||
export function MVideo({ content, mediaAutoLoad, outlined }: MVideoProps) {
|
||||
const videoInfo = rContent.info(content);
|
||||
const mxcUrl = rEncryptedFile.url(rContent.file) ?? rContent.url(content);
|
||||
const mxcUrl = rEncryptedFile.url(rContent.file(content)) ?? rContent.url(content);
|
||||
const safeMimeType = getBlobSafeMimeType(rInfo.mimetype(videoInfo) ?? '');
|
||||
|
||||
if (!videoInfo || !safeMimeType.startsWith('video') || typeof mxcUrl !== 'string') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue