BB FlashBack SDK: Base Classes


The FBPlayer class keeps a cache of frames that have been decompressed from the movie file. This cache makes it faster to display frames out of sequence. When the player is required to show a particular frame, it pulls from the cache the frame  nearest and before the requested frame, using this as a convenient starting point from which to render the requested frame.

The larger the cache, the smaller the time taken, on average, to render randomly selected frames.

The type of cache, disk or memory, is selected by the CacheType property.

Setting CacheEnabled to True means FBPlayer will try to set sensible defaults for other cache-related properties. It is not necessary to set these properties manually, unless defaults need to be overridden.

The SDK decides the default cache type as follows: it calculates 2/3 of the free physical memory and tries to allocate that amount. If the allocation succeeds, the cache is held in memory. If the allocation fails, it uses a disk cache of that size.

The CacheFramesFrequency property determines how often frames are saved to the cache.

The CacheDiskLimit and CacheMemoryLimit properties set the maximum size of the cache.

The CacheCompressionType property sets the degree of compression used in the cache.