|
OpenShot Library | libopenshot
0.7.0
|
Go to the documentation of this file.
14 #ifndef OPENSHOT_QT_PLAYER_H
15 #define OPENSHOT_QT_PLAYER_H
29 using AudioDeviceList = std::vector<std::pair<std::string, std::string>>;
79 void Seek(int64_t new_frame);
82 void Seek(int64_t new_frame,
bool start_preroll);
85 void SetSource(
const std::string &source);
105 void Speed(
float new_speed);
120 void Volume(
float new_volume);
QtPlayer()
Default constructor.
This struct hold information about Audio Devices.
std::vector< std::pair< std::string, std::string > > AudioDeviceList
void Seek(int64_t new_frame)
Seek to a specific frame in the player.
double GetDefaultSampleRate()
Return the default audio sample rate (from the system)
This namespace is the default namespace for all code in the openshot library.
AudioDeviceList GetAudioDeviceNames()
Get Audio Devices from JUCE.
uintptr_t GetRendererQObject()
Get the Renderer pointer address (for Python to cast back into a VideoRenderer)
float Speed()
Get the Playback speed.
openshot::PlaybackMode Mode()
Get the current mode.
int64_t Position()
Get the current frame number being played.
virtual ~QtPlayer()
Default destructor.
Header file for PlayerBase class.
std::string GetError()
Get Error (if any)
void Pause()
Pause the video.
AudioDeviceInfo GetCurrentAudioDevice()
Get current audio device or last attempted.
std::vector< std::pair< std::string, std::string > > AudioDeviceList
The private part of QtPlayer class, which contains an audio thread and video thread,...
void SetTimelineSource(const std::string &json)
Set the source JSON of an openshot::Timelime.
float Volume()
Get the Volume.
PlaybackMode
This enumeration determines the mode of the video player (i.e. playing, paused, etc....
Source file for PlayerPrivate class.
This class is used to playback a video from a reader.
openshot::ReaderBase * Reader()
Get the current reader, such as a FFmpegReader.
This is the base class of all Renderers in libopenshot.
void CloseAudioDevice()
Close audio device.
This is the base class of all Players in libopenshot.
void SetQWidget(uintptr_t qwidget_address)
This abstract class is the base class, used by all readers in libopenshot.
void Play()
Play the video.
void Stop()
Stop the video player and clear the cached frames.
Header file for RendererBase class.
void SetSource(const std::string &source)
Set the source URL/path of this player (which will create an internal Reader)
void Loading()
Display a loading animation.