This website requires JavaScript.
Explore
Help
Register
Sign In
ZF
/
jitsi-meet
Watch
1
Star
0
Fork
0
You've already forked jitsi-meet
mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced
2026-05-17 03:17:47 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
342a00a6af323d98eef33fc60f4e2a515c8e254d
jitsi-meet
/
react
/
features
/
mobile
/
image-cache
/
index.js
5 lines
95 B
JavaScript
Raw
Normal View
History
Unescape
Escape
[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