#include <playbin.h>
Public Types | |
enum | PlayFlags { GST_PLAY_FLAG_VIDEO = (1 << 0), GST_PLAY_FLAG_AUDIO = (1 << 1), GST_PLAY_FLAG_TEXT = (1 << 2) } |
enum | MediaFileType { MEDIA_FILE_TYPE_NONE, MEDIA_FILE_TYPE_AUDIO, MEDIA_FILE_TYPE_VIDEO } |
Public Member Functions | |
Playbin () | |
~Playbin () | |
void | on_client_died () |
void | reset_pipeline () |
void | on_new_message (const Bus::Message &message) |
gstreamer::Bus & | message_bus () |
void | setup_pipeline_for_audio_video () |
void | create_video_sink (uint32_t texture_id) |
void | set_volume (double new_volume) |
media::Player::Orientation | orientation_lut (const gchar *orientation) |
void | set_audio_stream_role (media::Player::AudioStreamRole new_audio_role) |
uint64_t | position () const |
uint64_t | duration () const |
void | set_uri (const std::string &uri) |
std::string | uri () const |
bool | set_state_and_wait (GstState new_state) |
bool | seek (const std::chrono::microseconds &ms) |
void | get_video_dimensions () |
int | get_video_height () const |
int | get_video_width () const |
std::string | get_file_content_type (const std::string &uri) const |
bool | is_audio_file (const std::string &uri) const |
bool | is_video_file (const std::string &uri) const |
MediaFileType | media_file_type () const |
Static Public Member Functions | |
static const std::string & | pipeline_name () |
static void | about_to_finish (GstElement *, gpointer user_data) |
static void | on_client_died_cb (void *context) |
static std::string | get_audio_role_str (media::Player::AudioStreamRole audio_role) |
Public Attributes | |
GstElement * | pipeline |
gstreamer::Bus | bus |
MediaFileType | file_type |
SurfaceTextureClientHybris | stc_hybris |
GstElement * | video_sink |
uint32_t | video_height |
uint32_t | video_width |
core::Connection | on_new_message_connection |
bool | is_seeking |
struct { | |
core::Signal< void > about_to_finish | |
core::Signal < Bus::Message::Detail::ErrorWarningInfo > on_error | |
core::Signal < Bus::Message::Detail::ErrorWarningInfo > on_warning | |
core::Signal < Bus::Message::Detail::ErrorWarningInfo > on_info | |
core::Signal < Bus::Message::Detail::Tag > on_tag_available | |
core::Signal < Bus::Message::Detail::StateChanged > on_state_changed | |
core::Signal< uint64_t > on_seeked_to | |
core::Signal< void > on_end_of_stream | |
core::Signal < media::Player::PlaybackStatus > on_playback_status_changed | |
core::Signal < media::Player::Orientation > on_orientation_changed | |
core::Signal< uint32_t, uint32_t > on_add_frame_dimension | |
core::Signal< void > client_disconnected | |
} | signals |
|
inline |
|
inline |
|
inlinestatic |
Definition at line 66 of file playbin.h.
References about_to_finish, and signals.
|
inline |
Definition at line 240 of file playbin.h.
References pipeline, and video_sink.
|
inline |
|
inlinestatic |
Translate the AudioStreamRole enum into a string
Definition at line 264 of file playbin.h.
Referenced by set_audio_stream_role().
|
inline |
Definition at line 434 of file playbin.h.
Referenced by is_audio_file(), and is_video_file().
|
inline |
Definition at line 411 of file playbin.h.
References signals, video_height, video_sink, and video_width.
Referenced by set_state_and_wait().
|
inline |
Definition at line 424 of file playbin.h.
References video_height.
|
inline |
Definition at line 429 of file playbin.h.
References video_width.
|
inline |
Definition at line 476 of file playbin.h.
References get_file_content_type().
Referenced by set_uri().
|
inline |
Definition at line 490 of file playbin.h.
References get_file_content_type().
Referenced by set_uri().
|
inline |
|
inline |
|
inline |
Definition at line 121 of file playbin.h.
References reset_pipeline(), and signals.
Referenced by on_client_died_cb().
|
inlinestatic |
Definition at line 112 of file playbin.h.
References on_client_died().
|
inline |
Definition at line 151 of file playbin.h.
References gstreamer::Bus::Message::detail, gstreamer::Bus::Message::Detail::error_warning_info, is_seeking, orientation_lut(), signals, gstreamer::Bus::Message::Detail::state_changed, gstreamer::Bus::Message::Detail::tag, gstreamer::Bus::Message::Detail::Tag::tag_list, and gstreamer::Bus::Message::type.
|
inline |
Definition at line 286 of file playbin.h.
Referenced by on_new_message().
|
inlinestatic |
|
inline |
|
inline |
Definition at line 132 of file playbin.h.
References file_type, MEDIA_FILE_TYPE_NONE, and pipeline.
Referenced by on_client_died().
|
inline |
Definition at line 401 of file playbin.h.
References is_seeking, and pipeline.
|
inline |
Sets the new audio stream role on the pulsesink in playbin
Definition at line 301 of file playbin.h.
References get_audio_role_str(), and pipeline.
|
inline |
Definition at line 360 of file playbin.h.
References get_video_dimensions(), and pipeline.
|
inline |
Definition at line 340 of file playbin.h.
References file_type, is_audio_file(), is_video_file(), MEDIA_FILE_TYPE_AUDIO, MEDIA_FILE_TYPE_VIDEO, and pipeline.
|
inline |
|
inline |
Definition at line 200 of file playbin.h.
References GST_PLAY_FLAG_AUDIO, GST_PLAY_FLAG_TEXT, GST_PLAY_FLAG_VIDEO, pipeline, and video_sink.
|
inline |
core::Signal<void> gstreamer::Playbin::about_to_finish |
Definition at line 520 of file playbin.h.
Referenced by about_to_finish().
gstreamer::Bus gstreamer::Playbin::bus |
Definition at line 510 of file playbin.h.
Referenced by message_bus().
core::Signal<void> gstreamer::Playbin::client_disconnected |
MediaFileType gstreamer::Playbin::file_type |
Definition at line 511 of file playbin.h.
Referenced by media_file_type(), reset_pipeline(), and set_uri().
bool gstreamer::Playbin::is_seeking |
Definition at line 517 of file playbin.h.
Referenced by on_new_message(), and seek().
core::Signal<uint32_t, uint32_t> gstreamer::Playbin::on_add_frame_dimension |
core::Signal<Bus::Message::Detail::ErrorWarningInfo> gstreamer::Playbin::on_error |
core::Signal<Bus::Message::Detail::ErrorWarningInfo> gstreamer::Playbin::on_info |
core::Connection gstreamer::Playbin::on_new_message_connection |
core::Signal<media::Player::Orientation> gstreamer::Playbin::on_orientation_changed |
core::Signal<media::Player::PlaybackStatus> gstreamer::Playbin::on_playback_status_changed |
core::Signal<Bus::Message::Detail::StateChanged> gstreamer::Playbin::on_state_changed |
core::Signal<Bus::Message::Detail::Tag> gstreamer::Playbin::on_tag_available |
core::Signal<Bus::Message::Detail::ErrorWarningInfo> gstreamer::Playbin::on_warning |
GstElement* gstreamer::Playbin::pipeline |
Definition at line 509 of file playbin.h.
Referenced by create_video_sink(), duration(), Playbin(), position(), reset_pipeline(), seek(), set_audio_stream_role(), set_state_and_wait(), set_uri(), set_volume(), setup_pipeline_for_audio_video(), uri(), and ~Playbin().
struct { ... } gstreamer::Playbin::signals |
Referenced by about_to_finish(), get_video_dimensions(), on_client_died(), and on_new_message().
uint32_t gstreamer::Playbin::video_height |
Definition at line 514 of file playbin.h.
Referenced by get_video_dimensions(), and get_video_height().
GstElement* gstreamer::Playbin::video_sink |
Definition at line 513 of file playbin.h.
Referenced by create_video_sink(), get_video_dimensions(), and setup_pipeline_for_audio_video().
uint32_t gstreamer::Playbin::video_width |
Definition at line 515 of file playbin.h.
Referenced by get_video_dimensions(), and get_video_width().