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