Logo
Explore Help
Register Sign In
ZF/jitsi-meet
1
0
Fork 0
You've already forked jitsi-meet
mirror of https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git synced 2026-05-17 09:37:48 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
a5d0bfe1d4fdafced3cc052d6dd74aef6429e659
jitsi-meet/react/features/mobile/image-cache/index.js

5 lines
95 B
JavaScript
Raw Normal View History

[RN] Prefetch remote avatar images 1/2
2017-08-03 12:43:04 -05:00
export * from './functions';
[RN] Fix a strange import of a feature by itself
2017-08-18 14:52:41 -05:00
export * from './react-native-img-cache';
[RN] Prefetch remote avatar images 1/2
2017-08-03 12:43:04 -05:00
[RN] Cache avatars and provide a default in case load fails Avatars are cached to the filesystem and loaded from there when requested again. The cache is cleaned after a conference ends and on application startup (defensive move). In addition, implement a fully local avatar system, which is used as a fallback when loading a remote avatar fails. It can also be forced using a prop. The fully local avatars use a user icon as a mask and apply a background color qhich is picked by hashing the URI passed to the avatar. If no URI is passed a random color is chosen. A grace period of 1 second is also implemented so a default local avatar will be rendered if an Avatar component is mounted but has no URI. If a URI is specified later on, it will be loaded and displayed. In case loading the remote avatar fails, the locally generated one will be used.
2017-07-21 16:41:01 +02:00
import './middleware';
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 183ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API