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

Commit

Permalink
Disable download option on <video/> , preferring dedicated download b…
Browse files Browse the repository at this point in the history
…utton (#8403)
  • Loading branch information
t3chguy authored Apr 25, 2022
1 parent 6bfe043 commit a3f9123
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/views/messages/MVideoBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ export default class MVideoBody extends React.PureComponent<IBodyProps, IState>
src={contentUrl}
title={content.body}
controls
// Disable downloading as it doesn't work with e2ee video,
// users should use the dedicated Download button in the Message Action Bar
controlsList="nodownload"
preload={preload}
muted={autoplay}
autoPlay={autoplay}
Expand Down

0 comments on commit a3f9123

Please sign in to comment.