Skip to content

Commit

Permalink
Merge pull request #1405 from ardriveapp/PE-4732-video-preview-doesnt…
Browse files Browse the repository at this point in the history
…-accept-all-mov-and-mpg-formats

PE-4732: video-preview-doesnt-accept-all-mov-and-mpg-formats
  • Loading branch information
kunstmusik authored Oct 5, 2023
2 parents c8d7e75 + a740c04 commit f12f643
Show file tree
Hide file tree
Showing 4 changed files with 161 additions and 122 deletions.
3 changes: 1 addition & 2 deletions lib/blocs/fs_entry_preview/fs_entry_preview_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,7 @@ class FsEntryPreviewCubit extends Cubit<FsEntryPreviewState> {
return audioContentTypes
.any((element) => element.contains(fileExtension));
case 'video':
return videoContentTypes
.any((element) => element.contains(fileExtension));
return true;
default:
return false;
}
Expand Down
4 changes: 4 additions & 0 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,10 @@
"@fileType": {
"description": "The MIME type of the file"
},
"fileTypeUnsupported": "File type unsupported by browser or operating system",
"@fileTypeUnsupported": {
"description": "Message shown when unable to load media file due to unsupported file format"
},
"fileWasCreatedWithName": "This file was created with the name {fileName}.",
"@fileWasCreatedWithName": {
"description": "File activity (journal): created",
Expand Down
Loading

0 comments on commit f12f643

Please sign in to comment.