32#ifndef OPENSHOT_QT_PLAYER_H
33#define OPENSHOT_QT_PLAYER_H
85 void Seek(int64_t new_frame);
88 void SetSource(
const std::string &source);
102 void Speed(
float new_speed);
117 void Volume(
float new_volume);
Header file for PlayerBase class.
Source file for PlayerPrivate class.
Header file for RendererBase class.
This is the base class of all Players in libopenshot.
The private part of QtPlayer class, which contains an audio thread and video thread,...
This class is used to playback a video from a reader.
void Loading()
Display a loading animation.
void Seek(int64_t new_frame)
Seek to a specific frame in the player.
void SetSource(const std::string &source)
Set the source URL/path of this player (which will create an internal Reader)
int64_t Position()
Get the current frame number being played.
QtPlayer()
Default constructor.
void SetQWidget(int64_t qwidget_address)
std::vector< openshot::AudioDeviceInfo > GetAudioDeviceNames()
Get Audio Devices from JUCE.
std::string GetError()
Get Error (if any)
void CloseAudioDevice()
Close audio device.
float Volume()
Get the Volume.
virtual ~QtPlayer()
Default destructor.
float Speed()
Get the Playback speed.
void Play()
Play the video.
openshot::PlaybackMode Mode()
Get the current mode.
void Pause()
Pause the video.
openshot::ReaderBase * Reader()
Get the current reader, such as a FFmpegReader.
int64_t GetRendererQObject()
Get the Renderer pointer address (for Python to cast back into a QObject)
void Stop()
Stop the video player and clear the cached frames.
This abstract class is the base class, used by all readers in libopenshot.
This is the base class of all Renderers 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....