#include <engine.h>
Classes | |
| class | MetaDataExtractor |
Public Types | |
| enum class | State { no_media , ready , busy , playing , paused , 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.
Referenced by audioStreamRole(), doSetVolume(), isAudioSource(), isVideoSource(), lifetime(), metadataExtractor(), orientation(), playbackStatus(), setAudioStreamRole(), setIsAudioSource(), setIsVideoSource(), setLifetime(), setMetadataExtractor(), setOrientation(), setPlaybackStatus(), setState(), setTrackMetadata(), setVideoDimension(), setVolume(), state(), trackMetadata(), videoDimension(), and volume().
|
virtualdefault |
Reimplemented in gstreamer::Engine.
|
signal |
Referenced by gstreamer::EnginePrivate::EnginePrivate().
| Player::AudioStreamRole Engine::audioStreamRole | ( | ) | const |
Definition at line 157 of file engine.cpp.
References Engine().
Referenced by gstreamer::Engine::Engine().
|
signal |
References state().
Referenced by gstreamer::EnginePrivate::EnginePrivate().
|
signal |
Referenced by gstreamer::EnginePrivate::EnginePrivate().
|
pure virtual |
Implemented in gstreamer::Engine.
|
protectedpure virtual |
Implemented in gstreamer::Engine.
Referenced by setAudioStreamRole().
|
protectedpure virtual |
Implemented in gstreamer::Engine.
References lifetime().
Referenced by setLifetime().
|
protectedpure virtual |
Implemented in gstreamer::Engine.
References Engine(), and volume().
Referenced by setVolume().
|
pure virtual |
Implemented in gstreamer::Engine.
References lifetime(), and volume().
|
signal |
|
signal |
Referenced by gstreamer::EnginePrivate::EnginePrivate().
|
signal |
| bool Engine::isAudioSource | ( | ) | const |
Definition at line 129 of file engine.cpp.
References Engine().
|
signal |
Referenced by setIsAudioSource().
| bool Engine::isVideoSource | ( | ) | const |
Definition at line 115 of file engine.cpp.
References Engine().
|
signal |
| Player::Lifetime Engine::lifetime | ( | ) | const |
Definition at line 171 of file engine.cpp.
References Engine().
Referenced by gstreamer::Engine::doSetLifetime(), doSetLifetime(), duration(), gstreamer::Engine::Engine(), gstreamer::Engine::metaDataExtractor(), and setLifetime().
| const QSharedPointer< Engine::MetaDataExtractor > & Engine::metadataExtractor | ( | ) | const |
Definition at line 87 of file engine.cpp.
References Engine().
|
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.
References Engine().
|
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.
References Engine().
|
signal |
Referenced by setPlaybackStatus().
|
pure virtual |
Implemented in gstreamer::Engine.
|
signal |
|
pure virtual |
Implemented in gstreamer::Engine.
|
pure virtual |
Implemented in gstreamer::Engine.
|
signal |
Referenced by gstreamer::EnginePrivate::EnginePrivate().
| void Engine::setAudioStreamRole | ( | Player::AudioStreamRole | role | ) |
Definition at line 149 of file engine.cpp.
References doSetAudioStreamRole(), and Engine().
|
protected |
Definition at line 121 of file engine.cpp.
References Engine(), and isAudioSourceChanged().
|
protected |
Definition at line 107 of file engine.cpp.
References Engine(), and isVideoSourceChanged().
| void Engine::setLifetime | ( | Player::Lifetime | lifetime | ) |
Definition at line 163 of file engine.cpp.
References doSetLifetime(), Engine(), and lifetime().
|
protected |
Definition at line 81 of file engine.cpp.
References Engine().
Referenced by gstreamer::Engine::Engine().
|
protected |
Definition at line 135 of file engine.cpp.
References Engine(), and orientationChanged().
Referenced by gstreamer::EnginePrivate::EnginePrivate().
|
protected |
Definition at line 190 of file engine.cpp.
References Engine(), and playbackStatusChanged().
Referenced by gstreamer::Engine::stop().
|
protected |
Definition at line 93 of file engine.cpp.
References Engine(), state(), and stateChanged().
Referenced by gstreamer::EnginePrivate::EnginePrivate(), gstreamer::Engine::pause(), gstreamer::Engine::play(), gstreamer::Engine::stop(), and gstreamer::Engine::~Engine().
|
protected |
Definition at line 177 of file engine.cpp.
References Engine(), and trackMetadataChanged().
|
protected |
Definition at line 204 of file engine.cpp.
References Engine(), and videoDimensionChanged().
Referenced by gstreamer::EnginePrivate::EnginePrivate().
| void Engine::setVolume | ( | double | volume | ) |
Definition at line 218 of file engine.cpp.
References doSetVolume(), Engine(), and volume().
| Engine::State Engine::state | ( | ) | const |
Definition at line 101 of file engine.cpp.
References Engine().
Referenced by bufferingChanged(), setState(), and gstreamer::Engine::stop().
|
signal |
|
pure virtual |
Implemented in gstreamer::Engine.
| QPair< QUrl, Track::MetaData > Engine::trackMetadata | ( | ) | const |
Definition at line 184 of file engine.cpp.
References Engine().
|
signal |
Referenced by setTrackMetadata().
| QSize Engine::videoDimension | ( | ) | const |
Definition at line 212 of file engine.cpp.
References Engine().
|
signal |
Referenced by setVideoDimension().
| double Engine::volume | ( | ) | const |
Definition at line 225 of file engine.cpp.
References Engine().
Referenced by gstreamer::Engine::doSetVolume(), doSetVolume(), duration(), gstreamer::Engine::metaDataExtractor(), and setVolume().