fix failed video sent on sealed channel

This commit is contained in:
balzack 2023-05-05 22:39:29 -07:00
parent 245b05d192
commit 95b5c82b36
3 changed files with 4 additions and 4 deletions

View File

@ -756,7 +756,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "c++14";
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
@ -828,7 +828,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "c++14";
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;

View File

@ -126,7 +126,7 @@ async function getThumb(file, type, position) {
return `data:image/jpeg;base64,${base}`;
}
else if (type === 'video') {
const shot = await createThumbnail({ url: url, timeStamp: position * 1000 })
const shot = await createThumbnail({ url: file, timeStamp: position * 1000 })
const thumb = await ImageResizer.createResizedImage('file://' + shot.path, 192, 192, "JPEG", 50, 0, null);
const base = await RNFS.readFile(thumb.path, 'base64')
return `data:image/jpeg;base64,${base}`;