#include <engine.h>
Classes | |
class | MetaDataExtractor |
Public Types | |
enum | State { State::no_media, State::ready, State::busy, State::playing, State::paused, State::stopped } |
Signals | |
void | stateChanged () |
void | isVideoSourceChanged () |
void | isAudioSourceChanged () |
void | positionChanged () |
void | durationChanged () |
void | orientationChanged () |
void | trackMetadataChanged () |
void | aboutToFinish () |
void | seekedTo (uint64_t offset) |
void | clientDisconnected () |
void | endOfStream () |
void | playbackStatusChanged () |
void | videoDimensionChanged () |
void | errorOccurred (Player::Error error) |
void | bufferingChanged (int) |
Public Member Functions | |
Engine (QObject *parent=nullptr) | |
virtual | ~Engine () |
const QSharedPointer< MetaDataExtractor > & | metadataExtractor () const |
virtual bool | open_resource_for_uri (const QUrl &uri, bool do_pipeline_reset)=0 |
virtual bool | open_resource_for_uri (const QUrl &uri, const Player::HeadersType &)=0 |
virtual void | create_video_sink (uint32_t texture_id)=0 |
virtual bool | play ()=0 |
virtual bool | stop ()=0 |
virtual bool | pause ()=0 |
virtual bool | seek_to (const std::chrono::microseconds &ts)=0 |
State | state () const |
bool | isVideoSource () const |
bool | isAudioSource () const |
virtual uint64_t | position () const =0 |
virtual uint64_t | duration () const =0 |
void | setAudioStreamRole (Player::AudioStreamRole role) |
Player::AudioStreamRole | audioStreamRole () const |
void | setLifetime (Player::Lifetime lifetime) |
Player::Lifetime | lifetime () const |
Player::Orientation | orientation () const |
QPair< QUrl, Track::MetaData > | trackMetadata () const |
Player::PlaybackStatus | playbackStatus () const |
QSize | videoDimension () const |
void | setVolume (double volume) |
double | volume () const |
virtual void | reset ()=0 |
Protected Member Functions | |
void | setMetadataExtractor (const QSharedPointer< MetaDataExtractor > &extractor) |
void | setState (State state) |
void | setIsVideoSource (bool value) |
void | setIsAudioSource (bool value) |
void | setOrientation (Player::Orientation o) |
void | setTrackMetadata (const QPair< QUrl, Track::MetaData > &metadata) |
void | setVideoDimension (const QSize &size) |
void | setPlaybackStatus (Player::PlaybackStatus status) |
virtual void | doSetAudioStreamRole (Player::AudioStreamRole role)=0 |
virtual void | doSetLifetime (Player::Lifetime lifetime)=0 |
virtual void | doSetVolume (double volume)=0 |
|
strong |
Engine::Engine | ( | QObject * | parent = nullptr | ) |
Definition at line 73 of file engine.cpp.
|
virtualdefault |
Reimplemented in gstreamer::Engine.
|
signal |
Referenced by gstreamer::EnginePrivate::EnginePrivate().
Player::AudioStreamRole Engine::audioStreamRole | ( | ) | const |
Definition at line 157 of file engine.cpp.
Referenced by gstreamer::Engine::Engine().
|
signal |
|
signal |
|
pure virtual |
Implemented in gstreamer::Engine.
|
protectedpure virtual |
Implemented in gstreamer::Engine.
Referenced by setAudioStreamRole().
|
protectedpure virtual |
Implemented in gstreamer::Engine.
Referenced by setLifetime().
|
protectedpure virtual |
Implemented in gstreamer::Engine.
Referenced by setVolume().
|
pure virtual |
Implemented in gstreamer::Engine.
|
signal |
|
signal |
|
signal |
bool Engine::isAudioSource | ( | ) | const |
Definition at line 129 of file engine.cpp.
|
signal |
Referenced by setIsAudioSource().
bool Engine::isVideoSource | ( | ) | const |
Definition at line 115 of file engine.cpp.
|
signal |
Player::Lifetime Engine::lifetime | ( | ) | const |
Definition at line 171 of file engine.cpp.
Referenced by gstreamer::Engine::Engine(), and setLifetime().
const QSharedPointer< Engine::MetaDataExtractor > & Engine::metadataExtractor | ( | ) | const |
Definition at line 87 of file engine.cpp.
|
pure virtual |
Implemented in gstreamer::Engine.
|
pure virtual |
Implemented in gstreamer::Engine.
Player::Orientation Engine::orientation | ( | ) | const |
Definition at line 143 of file engine.cpp.
|
signal |
Referenced by setOrientation().
|
pure virtual |
Implemented in gstreamer::Engine.
|
pure virtual |
Implemented in gstreamer::Engine.
Player::PlaybackStatus Engine::playbackStatus | ( | ) | const |
Definition at line 198 of file engine.cpp.
|
signal |
Referenced by setPlaybackStatus().
|
pure virtual |
Implemented in gstreamer::Engine.
|
signal |
|
pure virtual |
Implemented in gstreamer::Engine.
|
pure virtual |
Implemented in gstreamer::Engine.
|
signal |
void Engine::setAudioStreamRole | ( | Player::AudioStreamRole | role | ) |
Definition at line 149 of file engine.cpp.
References doSetAudioStreamRole().
|
protected |
Definition at line 121 of file engine.cpp.
References isAudioSourceChanged().
|
protected |
Definition at line 107 of file engine.cpp.
References isVideoSourceChanged().
void Engine::setLifetime | ( | Player::Lifetime | lifetime | ) |
Definition at line 163 of file engine.cpp.
References doSetLifetime(), and lifetime().
|
protected |
Definition at line 81 of file engine.cpp.
Referenced by gstreamer::Engine::Engine().
|
protected |
Definition at line 135 of file engine.cpp.
References orientationChanged().
Referenced by gstreamer::EnginePrivate::EnginePrivate().
|
protected |
Definition at line 190 of file engine.cpp.
References playbackStatusChanged().
|
protected |
Definition at line 93 of file engine.cpp.
References state(), and stateChanged().
Referenced by gstreamer::EnginePrivate::EnginePrivate().
|
protected |
Definition at line 177 of file engine.cpp.
References trackMetadataChanged().
|
protected |
Definition at line 204 of file engine.cpp.
References videoDimensionChanged().
Referenced by gstreamer::EnginePrivate::EnginePrivate().
void Engine::setVolume | ( | double | volume | ) |
Definition at line 218 of file engine.cpp.
References doSetVolume(), and volume().
Engine::State Engine::state | ( | ) | const |
Definition at line 101 of file engine.cpp.
Referenced by setState().
|
signal |
|
pure virtual |
Implemented in gstreamer::Engine.
QPair< QUrl, Track::MetaData > Engine::trackMetadata | ( | ) | const |
Definition at line 184 of file engine.cpp.
|
signal |
Referenced by setTrackMetadata().
QSize Engine::videoDimension | ( | ) | const |
Definition at line 212 of file engine.cpp.
|
signal |
Referenced by setVideoDimension().
double Engine::volume | ( | ) | const |
Definition at line 225 of file engine.cpp.
Referenced by setVolume().