Fix videos on Firefox (#32497)
* Fix videos on Firefox Videos are using cross-origin requests, and Firefox blocks them before passing to the service worker if the element doesn't have the crossorigin attribute to give CORS support * React needs camelCase attr names --------- Co-authored-by: David Baker <dbkr@users.noreply.github.com>
This commit is contained in:
@@ -326,6 +326,10 @@ class MVideoBodyInner extends React.PureComponent<IProps, IState> {
|
||||
// Disable downloading as it doesn't work with e2ee video,
|
||||
// users should use the dedicated Download button in the Message Action Bar
|
||||
controlsList="nodownload"
|
||||
// The video uses a cross-origin request.
|
||||
// Firefox explicitly bypasses services workers for crossorigin
|
||||
// video elements without crossorigin attribute.
|
||||
crossOrigin="anonymous"
|
||||
preload={preload}
|
||||
muted={autoplay}
|
||||
autoPlay={autoplay}
|
||||
|
||||
Reference in New Issue
Block a user