mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-17 14:30:40 +01:00
chore: fix video follow up
This commit is contained in:
parent
5e0002fbb8
commit
f522c81834
@ -21,8 +21,8 @@ extension ResizeImage on MatrixFile {
|
|||||||
|
|
||||||
Future<MatrixVideoFile> resizeVideo() async {
|
Future<MatrixVideoFile> resizeVideo() async {
|
||||||
final tmpDir = await getTemporaryDirectory();
|
final tmpDir = await getTemporaryDirectory();
|
||||||
final tmpFile = File(tmpDir.path + name);
|
final tmpFile = File(tmpDir.path + '/' + name);
|
||||||
final compressedFile = File(tmpDir.path + 'compressed_' + name);
|
final compressedFile = File(tmpDir.path + '/compressed_' + name);
|
||||||
MediaInfo? mediaInfo;
|
MediaInfo? mediaInfo;
|
||||||
await tmpFile.writeAsBytes(bytes);
|
await tmpFile.writeAsBytes(bytes);
|
||||||
try {
|
try {
|
||||||
@ -43,7 +43,7 @@ extension ResizeImage on MatrixFile {
|
|||||||
Future<MatrixImageFile?> getVideoThumbnail() async {
|
Future<MatrixImageFile?> getVideoThumbnail() async {
|
||||||
if (!PlatformInfos.isMobile) return null;
|
if (!PlatformInfos.isMobile) return null;
|
||||||
final tmpDir = await getTemporaryDirectory();
|
final tmpDir = await getTemporaryDirectory();
|
||||||
final tmpFile = File(tmpDir.path + name);
|
final tmpFile = File(tmpDir.path + '/' + name);
|
||||||
if (await tmpFile.exists() == false) {
|
if (await tmpFile.exists() == false) {
|
||||||
await tmpFile.writeAsBytes(bytes);
|
await tmpFile.writeAsBytes(bytes);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user