Music Hub
..
A session-wide music playback service
|
|
Go to the documentation of this file.
22 #ifndef GSTREAMER_PLAYBIN_H
23 #define GSTREAMER_PLAYBIN_H
113 bool seek(
const std::chrono::microseconds& ms);
154 const QByteArray &source);
167 void setup_video_sink_for_buffer_streaming(
void);
168 bool is_supported_video_sink(
void)
const;
169 bool connect_to_consumer(
void);
170 void send_buffer_data(
int fd,
void *data,
size_t len);
171 void send_frame_ready(
void);
172 void process_missing_plugin_message(GstMessage *message);
176 std::string video_sink_name;
181 #endif // GSTREAMER_PLAYBIN_H
void set_uri(const QUrl &uri, const lomiri::MediaHubService::Player::HeadersType &headers, bool do_pipeline_reset=true)
void setup_pipeline_for_audio_video()
lomiri::MediaHubService::Player::Lifetime player_lifetime
void videoDimensionChanged(const QSize &size)
static std::string get_audio_role_str(lomiri::MediaHubService::Player::AudioStreamRole audio_role)
void set_audio_stream_role(lomiri::MediaHubService::Player::AudioStreamRole new_audio_role)
uint64_t position() const
gulong about_to_finish_handler_id
QSize get_video_dimensions() const
void tagAvailable(Bus::Message::Detail::Tag tag)
gstreamer::Bus & message_bus()
void orientationChanged(lomiri::MediaHubService::Player::Orientation o)
void clientDisconnected()
uint64_t duration() const
void mediaFileTypeChanged()
void updateMediaFileType()
void bufferingChanged(int progress)
void processVideoSinkStateChanged(const Bus::Message::Detail::StateChanged &state)
void set_volume(double new_volume)
bool can_play_streams() const
QString get_file_content_type(const QUrl &uri) const
gulong m_audioChangedHandlerId
void on_new_message(const Bus::Message &message)
void errorOccurred(const Bus::Message::Detail::ErrorWarningInfo &)
bool set_state(GstState new_state)
bool is_audio_file(const QUrl &uri) const
GstState current_new_state
lomiri::MediaHubService::Player::Orientation orientation_lut(const gchar *orientation)
void setMediaFileType(MediaFileType fileType)
gulong m_videoChangedHandlerId
MediaFileType mediaFileType() const
void setup_source(GstElement *source)
static void source_setup(GstElement *, GstElement *source, gpointer user_data)
void infoOccurred(const Bus::Message::Detail::ErrorWarningInfo &)
bool is_video_file(const QUrl &uri) const
Playbin(const lomiri::MediaHubService::Player::PlayerKey key)
static const std::string & pipeline_name()
void stateChanged(const Bus::Message::Detail::StateChanged &state, const QByteArray &source)
void warningOccurred(const Bus::Message::Detail::ErrorWarningInfo &)
bool seek(const std::chrono::microseconds &ms)
QString file_info_from_uri(const QUrl &uri) const
static void streams_changed(GstElement *, gpointer user_data)
void create_video_sink(uint32_t texture_id)
gulong source_setup_handler_id
void process_message_element(GstMessage *message)
bool is_missing_video_codec
bool is_missing_audio_codec
static void about_to_finish(GstElement *, gpointer user_data)
void set_lifetime(lomiri::MediaHubService::Player::Lifetime)
uint64_t previous_position
void seekedTo(uint64_t offset)
lomiri::MediaHubService::Player::HeadersType request_headers