Package 

Class VideoCacheConfig


  • 
    public final class VideoCacheConfig
    
                        

    Configuration for the on-disk cache used when streaming video attachments.

    Wrap an instance in StreamCacheConfig and set it on io.getstream.chat.android.client.api.ChatClientConfig.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.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Long maxSizeBytes
    • Method Summary

      Modifier and Type Method Description
      final Long getMaxSizeBytes()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VideoCacheConfig

        VideoCacheConfig(Long maxSizeBytes)
        Parameters:
        maxSizeBytes - Soft cap on cache size; LRU eviction kicks in once exceeded.