-
public final class VideoCacheConfigConfiguration for the on-disk cache used when streaming video attachments.
Wrap an instance in StreamCacheConfig and pass it to io.getstream.chat.android.client.ChatClient.Builder.cacheConfig to opt in. When the cache is enabled, replaying or seeking within a previously watched video reuses cached byte ranges instead of re-downloading from the CDN.
Cache entries are keyed by URL path only; query parameters are stripped. URLs that differ only in their query string share the same cache entry.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classVideoCacheConfig.Companion
-
Field Summary
Fields Modifier and Type Field Description private final LongmaxSizeBytes
-
Constructor Summary
Constructors Constructor Description VideoCacheConfig(Long maxSizeBytes)
-
Method Summary
Modifier and Type Method Description final LonggetMaxSizeBytes()-
-
Constructor Detail
-
VideoCacheConfig
VideoCacheConfig(Long maxSizeBytes)
- Parameters:
maxSizeBytes- Soft cap on cache size; LRU eviction kicks in once exceeded.
-
-
Method Detail
-
getMaxSizeBytes
final Long getMaxSizeBytes()
-
-
-
-