-
Notifications
You must be signed in to change notification settings - Fork 1
/
fileEditor_video.h
35 lines (25 loc) · 746 Bytes
/
fileEditor_video.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include "audiooutput/AudioOutput_Native.h"
#include "fileEditor.h"
#include "video.h"
struct FileEditor_Video : FileEditor
{
enum SizeMode
{
kSizeMode_Contain,
kSizeMode_Fill,
kSizeMode_DontScale,
kSizeMode_COUNT
};
MediaPlayer mp;
AudioOutput_Native audioOutput;
bool hasAudioInfo = false;
bool audioIsStarted = false;
float progressBarTimer = 0.f;
SizeMode sizeMode = kSizeMode_Contain;
FileEditor_Video(const char * path);
virtual ~FileEditor_Video() override;
virtual bool reflect(TypeDB & typeDB, StructuredType & type) override;
virtual void tick(const int sx, const int sy, const float dt, const bool hasFocus, bool & inputIsCaptured) override;
virtual void doButtonBar() override;
};