LensStudio:Ui.Movie.CacheMode
EnumEnum specifying how a Movie caches decoded frames.
Index
Example
// CacheAll keeps every decoded frame in memory — smoothest replay for short
// loops. CacheNone decodes on demand — preferred for long videos to bound
// memory. Assign after construction: `movie.cacheMode = Movie.CacheMode.CacheAll`.
const root = new Widget(parent);
const layout = new BoxLayout();
layout.setDirection(Direction.TopToBottom);
root.layout = layout;
const title = new Label(root);
title.text = 'Movie.CacheMode';
layout.addWidget(title);
const allLabel = new Label(root);
allLabel.text = `CacheAll = ${Movie.CacheMode.CacheAll} (in-memory, short loops)`;
layout.addWidget(allLabel);
const noneLabel = new Label(root);
noneLabel.text = `CacheNone = ${Movie.CacheMode.CacheNone} (on-demand, long videos)`;
layout.addWidget(noneLabel);
Enumeration Members
CacheAll
CacheAll:
number
All decoded frames are cached in memory for fast playback.
CacheNone
CacheNone:
number
No frames are cached; each frame is decoded on demand.