Skip to content

Commit

Permalink
Merge pull request #1638 from FreeFeed/disable-video-player
Browse files Browse the repository at this point in the history
Disable player for video attachments
  • Loading branch information
davidmz authored Aug 10, 2023
2 parents 1610e89 + adea227 commit 034f78a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.123.0] - Not released
### Changed
- Disable player for video attachments until we can deal with the increased
traffic from them.

## [1.122.0] - 2023-07-31
### Added
Expand Down
5 changes: 5 additions & 0 deletions src/components/post/post-attachments.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import AudioAttachment from './post-attachment-audio';
import GeneralAttachment from './post-attachment-general';
import VideoAttachment from './post-attachment-video';

/*
const videoTypes = {
mov: 'video/quicktime',
mp4: 'video/mp4; codecs="avc1.42E01E"',
Expand All @@ -26,6 +27,10 @@ Object.keys(videoTypes).forEach((extension) => {
}
});
video = null;
*/

// Nov video support for now
const supportedVideoTypes = [];

const looksLikeAVideoFile = (attachment) => {
const lowercaseFileName = attachment.fileName.toLowerCase();
Expand Down

0 comments on commit 034f78a

Please sign in to comment.