2#include <NDEVR/Model.h>
12 class NDEVR_DESIGN_API VideoModel :
public Model
24 VideoModel(
const Model& model);
35 void setVideoData(
const StringView& video_data);
41 void setSubtitleData(
const StringView& subtitle_data);
49 void setVideoFile(File file,
bool read_data,
bool save_to_memory);
56 void setSubtitleFile(File file,
bool read_data);
64 static File SubtitleForFile(
const File& media_file);
72 File getActiveVideoFile();
80 File getActiveSubtitleFile();
85 void ensureCacheFileExists();
91 File videoCache()
const;
97 File subtitleCache()
const;
103 StringView getVideoData()
const;
109 StringView getSubtitleData()
const;
115 static constexpr StringView TypeName() {
return "video_model"; }
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
A core class that represents a node on model hierarchy.
The primary namespace for the NDEVR SDK.