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 /**--------------------------------------------------------------------------------------------------
8 \brief A Model which contains data or points to a stream of video data which can be played back to
9 the software user.
10 **/
11 class NDEVR_DESIGN_API VideoModel : public Model
12 {
13 public:
14 VideoModel();
15 VideoModel(const Model& model);
16 void init();
17 void setVideoData(const String& video_data);
18 void setSubtitleData(const String& subtitle_data);
19 void setVideoFile(File file, bool read_data, bool save_to_memory);
20 void setSubtitleFile(File file, bool read_data);
21
22 static File SubtitleForFile(const File& media_file);
23 File getActiveVideoFile();
24 File getActiveSubtitleFile();
25
26 void ensureCacheFileExists();
27 File videoCache() const;
28 File subtitleCache() const;
29 String getVideoData() const;
30 String getSubtitleData() const;
31 static constexpr const char* TypeName() { return "video_model"; }
32 };
33}
34#endif
#define NDEVR_DESIGN_API
Definition DLLInfo.h:55
Definition ACIColor.h:37