OpenShot Library | libopenshot
0.4.0
|
This is the base class of all Players in libopenshot. More...
#include <PlayerBase.h>
Public Member Functions | |
virtual void | Loading ()=0 |
Display a loading animation. More... | |
virtual PlaybackMode | Mode ()=0 |
Get the current mode. More... | |
virtual void | Pause ()=0 |
Pause the video. More... | |
virtual void | Play ()=0 |
Play the video. More... | |
virtual int64_t | Position ()=0 |
Get the current frame number being played. More... | |
virtual openshot::ReaderBase * | Reader ()=0 |
Get the current reader, such as a FFmpegReader. More... | |
virtual void | Reader (openshot::ReaderBase *new_reader)=0 |
Set the current reader, such as a FFmpegReader. More... | |
virtual void | Seek (int64_t new_frame)=0 |
Seek to a specific frame in the player. More... | |
virtual float | Speed ()=0 |
Get the Playback speed. More... | |
virtual void | Speed (float new_speed)=0 |
Set the Playback speed (1.0 = normal speed, <1.0 = slower, >1.0 faster) More... | |
virtual void | Stop ()=0 |
Stop the video player and clear the cached frames. More... | |
virtual float | Volume ()=0 |
Get the Volume. More... | |
virtual void | Volume (float new_volume)=0 |
Set the Volume (1.0 = normal volume, <1.0 = quieter, >1.0 louder) More... | |
virtual | ~PlayerBase ()=default |
Protected Attributes | |
PlaybackMode | mode |
openshot::ReaderBase * | reader |
float | speed |
float | volume |
This is the base class of all Players in libopenshot.
Players are responsible for displaying images and playing back audio samples with specific frame rates and sample rates. All Players must be based on this class, and include these methods.
Definition at line 41 of file PlayerBase.h.
|
virtualdefault |
|
pure virtual |
Display a loading animation.
Implemented in openshot::QtPlayer.
Definition at line 18 of file PlayerBase.cpp.
|
pure virtual |
Get the current mode.
Implemented in openshot::QtPlayer.
|
pure virtual |
|
pure virtual |
|
pure virtual |
Get the current frame number being played.
Implemented in openshot::QtPlayer.
|
pure virtual |
Get the current reader, such as a FFmpegReader.
Implemented in openshot::QtPlayer.
Definition at line 48 of file PlayerBase.cpp.
|
pure virtual |
Set the current reader, such as a FFmpegReader.
Implemented in openshot::QtPlayer.
Definition at line 53 of file PlayerBase.cpp.
|
pure virtual |
Seek to a specific frame in the player.
Implemented in openshot::QtPlayer.
|
pure virtual |
Get the Playback speed.
Implemented in openshot::QtPlayer.
Definition at line 33 of file PlayerBase.cpp.
|
pure virtual |
Set the Playback speed (1.0 = normal speed, <1.0 = slower, >1.0 faster)
Implemented in openshot::QtPlayer.
Definition at line 38 of file PlayerBase.cpp.
|
pure virtual |
Stop the video player and clear the cached frames.
Implemented in openshot::QtPlayer.
Definition at line 43 of file PlayerBase.cpp.
|
pure virtual |
|
pure virtual |
Set the Volume (1.0 = normal volume, <1.0 = quieter, >1.0 louder)
Implemented in openshot::QtPlayer.
Definition at line 63 of file PlayerBase.cpp.
|
protected |
Definition at line 47 of file PlayerBase.h.
Referenced by Loading(), openshot::QtPlayer::Loading(), openshot::QtPlayer::Mode(), Pause(), openshot::QtPlayer::Pause(), Play(), openshot::QtPlayer::Play(), Stop(), openshot::QtPlayer::Stop(), and openshot::QtPlayer::~QtPlayer().
|
protected |
Definition at line 46 of file PlayerBase.h.
Referenced by openshot::QtPlayer::GetDefaultSampleRate(), openshot::QtPlayer::GetError(), openshot::QtPlayer::Play(), openshot::QtPlayer::QtPlayer(), Reader(), openshot::QtPlayer::Reader(), openshot::QtPlayer::Seek(), openshot::QtPlayer::SetSource(), openshot::QtPlayer::SetTimelineSource(), and openshot::QtPlayer::Stop().
|
protected |
Definition at line 44 of file PlayerBase.h.
Referenced by Speed(), and openshot::QtPlayer::Speed().
|
protected |
Definition at line 45 of file PlayerBase.h.
Referenced by Volume(), and openshot::QtPlayer::Volume().