NDEVR
API Documentation
VideoModel.h
1#pragma once
2#include <NDEVR/Model.h>
3#if NDEVR_VIDEO_MODEL
4namespace NDEVR
5{
6 class File;
12 class NDEVR_DESIGN_API VideoModel : public Model
13 {
14 public:
18 VideoModel();
19
24 VideoModel(const Model& model);
25
29 void init();
30
35 void setVideoData(const StringView& video_data);
36
41 void setSubtitleData(const StringView& subtitle_data);
42
49 void setVideoFile(File file, bool read_data, bool save_to_memory);
50
56 void setSubtitleFile(File file, bool read_data);
57
64 static File SubtitleForFile(const File& media_file);
65
72 File getActiveVideoFile();
73
80 File getActiveSubtitleFile();
81
85 void ensureCacheFileExists();
86
91 File videoCache() const;
92
97 File subtitleCache() const;
98
103 StringView getVideoData() const;
104
109 StringView getSubtitleData() const;
110
115 static constexpr StringView TypeName() { return "video_model"; }
116 };
117}
118#endif
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
Definition File.h:53
A core class that represents a node on model hierarchy.
Definition Model.h:292
The primary namespace for the NDEVR SDK.