13 #ifndef OPENSHOT_PLAYER_BASE_H 14 #define OPENSHOT_PLAYER_BASE_H 58 virtual void Play() = 0;
61 virtual void Pause() = 0;
67 virtual void Seek(int64_t new_frame) = 0;
70 virtual float Speed() = 0;
73 virtual void Speed(
float new_speed) = 0;
76 virtual void Stop() = 0;
85 virtual float Volume() = 0;
88 virtual void Volume(
float new_volume) = 0;
virtual void Seek(int64_t new_frame)=0
Seek to a specific frame in the player.
virtual void Play()=0
Play the video.
Header file for ReaderBase class.
Loading the video (display a loading animation)
Stop playing the video (clear cache, done with player)
This abstract class is the base class, used by all readers in libopenshot.
virtual void Pause()=0
Pause the video.
virtual void Loading()=0
Display a loading animation.
This is the base class of all Players in libopenshot.
openshot::ReaderBase * reader
virtual PlaybackMode Mode()=0
Get the current mode.
Pause the video (holding the last displayed frame)
virtual float Volume()=0
Get the Volume.
virtual openshot::ReaderBase * Reader()=0
Get the current reader, such as a FFmpegReader.
virtual float Speed()=0
Get the Playback speed.
This namespace is the default namespace for all code in the openshot library.
PlaybackMode
This enumeration determines the mode of the video player (i.e. playing, paused, etc...)
virtual void Stop()=0
Stop the video player and clear the cached frames.
virtual int64_t Position()=0
Get the current frame number being played.
virtual ~PlayerBase()=default