OpenShot Library | libopenshot
0.3.3
|
Go to the documentation of this file.
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 int64_t Position()=0
Get the current frame number being played.
@ PLAYBACK_PLAY
Play the video normally.
This namespace is the default namespace for all code in the openshot library.
virtual float Volume()=0
Get the Volume.
virtual float Speed()=0
Get the Playback speed.
virtual PlaybackMode Mode()=0
Get the current mode.
virtual openshot::ReaderBase * Reader()=0
Get the current reader, such as a FFmpegReader.
virtual void Seek(int64_t new_frame)=0
Seek to a specific frame in the player.
@ PLAYBACK_STOPPED
Stop playing the video (clear cache, done with player)
virtual void Pause()=0
Pause the video.
virtual void Stop()=0
Stop the video player and clear the cached frames.
PlaybackMode
This enumeration determines the mode of the video player (i.e. playing, paused, etc....
virtual void Play()=0
Play the video.
Header file for ReaderBase class.
virtual ~PlayerBase()=default
@ PLAYBACK_LOADING
Loading the video (display a loading animation)
@ PLAYBACK_PAUSED
Pause the video (holding the last displayed frame)
This is the base class of all Players in libopenshot.
This abstract class is the base class, used by all readers in libopenshot.
virtual void Loading()=0
Display a loading animation.
openshot::ReaderBase * reader