chore: fix video follow up
This commit is contained in:
parent
18e6ed3855
commit
bac79a553b
1 changed files with 3 additions and 3 deletions
|
|
@ -21,8 +21,8 @@ extension ResizeImage on MatrixFile {
|
|||
|
||||
Future<MatrixVideoFile> resizeVideo() async {
|
||||
final tmpDir = await getTemporaryDirectory();
|
||||
final tmpFile = File(tmpDir.path + name);
|
||||
final compressedFile = File(tmpDir.path + 'compressed_' + name);
|
||||
final tmpFile = File(tmpDir.path + '/' + name);
|
||||
final compressedFile = File(tmpDir.path + '/compressed_' + name);
|
||||
MediaInfo? mediaInfo;
|
||||
await tmpFile.writeAsBytes(bytes);
|
||||
try {
|
||||
|
|
@ -43,7 +43,7 @@ extension ResizeImage on MatrixFile {
|
|||
Future<MatrixImageFile?> getVideoThumbnail() async {
|
||||
if (!PlatformInfos.isMobile) return null;
|
||||
final tmpDir = await getTemporaryDirectory();
|
||||
final tmpFile = File(tmpDir.path + name);
|
||||
final tmpFile = File(tmpDir.path + '/' + name);
|
||||
if (await tmpFile.exists() == false) {
|
||||
await tmpFile.writeAsBytes(bytes);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue