#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 | reset () |
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) |
void | set_lifetime (media::Player::Lifetime lifetime) |
uint64_t | position () const |
uint64_t | duration () const |
void | set_uri (const std::string &uri, const core::ubuntu::media::Player::HeadersType &headers=core::ubuntu::media::Player::HeadersType()) |
void | setup_source (GstElement *source) |
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 | source_setup (GstElement *, GstElement *source, gpointer user_data) |
static std::string | get_audio_role_str (media::Player::AudioStreamRole audio_role) |
|
inline |
|
inline |
|
inlinestatic |
Definition at line 66 of file playbin.h.
References about_to_finish, and signals.
|
inline |
Definition at line 252 of file playbin.h.
References pipeline, and video_sink.
|
inline |
|
inlinestatic |
Translate the AudioStreamRole enum into a string
Definition at line 276 of file playbin.h.
Referenced by set_audio_stream_role().
|
inline |
Definition at line 478 of file playbin.h.
Referenced by is_audio_file(), and is_video_file().
|
inline |
Definition at line 455 of file playbin.h.
References signals, video_height, video_sink, and video_width.
Referenced by set_state_and_wait().
|
inline |
Definition at line 468 of file playbin.h.
References video_height.
|
inline |
Definition at line 473 of file playbin.h.
References video_width.
|
inline |
Definition at line 520 of file playbin.h.
References get_file_content_type().
Referenced by set_uri().
|
inline |
Definition at line 534 of file playbin.h.
References get_file_content_type().
Referenced by set_uri().
|
inline |
|
inline |
|
inline |
Definition at line 163 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 298 of file playbin.h.
Referenced by on_new_message().
|
inlinestatic |
|
inline |
|
inline |
Definition at line 128 of file playbin.h.
References player_lifetime, reset_pipeline(), and signals.
|
inline |
|
inline |
Definition at line 445 of file playbin.h.
References is_seeking, and pipeline.
|
inline |
Sets the new audio stream role on the pulsesink in playbin
Definition at line 313 of file playbin.h.
References get_audio_role_str(), and pipeline.
|
inline |
Definition at line 334 of file playbin.h.
References player_lifetime.
|
inline |
Definition at line 404 of file playbin.h.
References get_video_dimensions(), and pipeline.
|
inline |
Definition at line 357 of file playbin.h.
References file_type, is_audio_file(), is_video_file(), MEDIA_FILE_TYPE_AUDIO, MEDIA_FILE_TYPE_VIDEO, pipeline, request_headers, and reset_pipeline().
|
inline |
|
inline |
Definition at line 212 of file playbin.h.
References GST_PLAY_FLAG_AUDIO, GST_PLAY_FLAG_TEXT, GST_PLAY_FLAG_VIDEO, pipeline, and video_sink.
|
inline |
|
inlinestatic |
Definition at line 73 of file playbin.h.
References setup_source().
|
inline |
core::Signal<void> gstreamer::Playbin::about_to_finish |
Definition at line 566 of file playbin.h.
Referenced by about_to_finish().
gstreamer::Bus gstreamer::Playbin::bus |
Definition at line 554 of file playbin.h.
Referenced by message_bus().
core::Signal<void> gstreamer::Playbin::client_disconnected |
MediaFileType gstreamer::Playbin::file_type |
Definition at line 555 of file playbin.h.
Referenced by media_file_type(), reset_pipeline(), and set_uri().
bool gstreamer::Playbin::is_seeking |
Definition at line 561 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 553 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().
media::Player::Lifetime gstreamer::Playbin::player_lifetime |
Definition at line 563 of file playbin.h.
Referenced by reset(), and set_lifetime().
core::ubuntu::media::Player::HeadersType gstreamer::Playbin::request_headers |
Definition at line 562 of file playbin.h.
Referenced by set_uri(), and setup_source().
struct { ... } gstreamer::Playbin::signals |
Referenced by about_to_finish(), get_video_dimensions(), on_new_message(), and reset().
uint32_t gstreamer::Playbin::video_height |
Definition at line 558 of file playbin.h.
Referenced by get_video_dimensions(), and get_video_height().
GstElement* gstreamer::Playbin::video_sink |
Definition at line 557 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 559 of file playbin.h.
Referenced by get_video_dimensions(), and get_video_width().