API Documentation
Loading...
Searching...
No Matches
VideoModel.h
Go to the documentation of this file.
1#pragma once
2#include <NDEVR/Model.h>
3#if NDEVR_VIDEO_MODEL
4namespace NDEVR
5{
6 class File;
7 class NDEVR_DESIGN_API VideoModel : public Model
8 {
9 public:
10 VideoModel();
11 VideoModel(const Model& model);
12 void init();
13 void setVideoData(const String& video_data);
14 void setSubtitleData(const String& subtitle_data);
15 void setVideoFile(File file, bool read_data, bool save_to_memory);
16 void setSubtitleFile(File file, bool read_data);
17
18 static File SubtitleForFile(const File& media_file);
19 File getActiveVideoFile();
20 File getActiveSubtitleFile();
21
22 void ensureCacheFileExists();
23 File videoCache() const;
24 File subtitleCache() const;
25 String getVideoData() const;
26 String getSubtitleData() const;
27 static constexpr const char* TypeName() { return "video_model"; }
28 };
29}
30#endif
#define NDEVR_DESIGN_API
Definition DLLInfo.h:77
Definition ACIColor.h:37