Music Hub  ..
A session-wide music playback service
gstreamer::MetaDataExtractor Class Reference

#include <meta_data_extractor.h>

+ Inheritance diagram for gstreamer::MetaDataExtractor:
+ Collaboration diagram for gstreamer::MetaDataExtractor:

Public Member Functions

 MetaDataExtractor ()
 
 ~MetaDataExtractor ()
 
bool set_state_and_wait (GstState new_state)
 
core::ubuntu::media::Track::MetaData meta_data_for_track_with_uri (const core::ubuntu::media::Track::UriType &uri)
 

Static Public Member Functions

static const std::map< std::string, std::string > & gstreamer_to_mpris_tag_lut ()
 
static void on_tag_available (const gstreamer::Bus::Message::Detail::Tag &tag, core::ubuntu::media::Track::MetaData &md)
 

Additional Inherited Members

- Protected Member Functions inherited from core::ubuntu::media::Engine::MetaDataExtractor
 MetaDataExtractor ()=default
 
 MetaDataExtractor (const MetaDataExtractor &)=delete
 
MetaDataExtractoroperator= (const MetaDataExtractor &)=delete
 

Detailed Description

Definition at line 36 of file meta_data_extractor.h.

Constructor & Destructor Documentation

gstreamer::MetaDataExtractor::MetaDataExtractor ( )
inline

Definition at line 163 of file meta_data_extractor.h.

gstreamer::MetaDataExtractor::~MetaDataExtractor ( )
inlinevirtual

Reimplemented from core::ubuntu::media::Engine::MetaDataExtractor.

Definition at line 176 of file meta_data_extractor.h.

References set_state_and_wait().

+ Here is the call graph for this function:

Member Function Documentation

static const std::map<std::string, std::string>& gstreamer::MetaDataExtractor::gstreamer_to_mpris_tag_lut ( )
inlinestatic

Definition at line 39 of file meta_data_extractor.h.

Referenced by on_tag_available().

core::ubuntu::media::Track::MetaData gstreamer::MetaDataExtractor::meta_data_for_track_with_uri ( const core::ubuntu::media::Track::UriType uri)
inlinevirtual

Implements core::ubuntu::media::Engine::MetaDataExtractor.

Definition at line 214 of file meta_data_extractor.h.

References gstreamer::Bus::on_new_message, set_state_and_wait(), and gstreamer::Bus::Message::type.

+ Here is the call graph for this function:

static void gstreamer::MetaDataExtractor::on_tag_available ( const gstreamer::Bus::Message::Detail::Tag tag,
core::ubuntu::media::Track::MetaData md 
)
inlinestatic

Definition at line 64 of file meta_data_extractor.h.

References gstreamer_to_mpris_tag_lut(), and gstreamer::Bus::Message::Detail::Tag::tag_list.

Referenced by gstreamer::Engine::Private::on_tag_available().

+ Here is the call graph for this function:

bool gstreamer::MetaDataExtractor::set_state_and_wait ( GstState  new_state)
inline

Definition at line 182 of file meta_data_extractor.h.

Referenced by meta_data_for_track_with_uri(), and ~MetaDataExtractor().


The documentation for this class was generated from the following file: