#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 } |
Static Public Member Functions | |
static std::string | get_audio_role_str (core::ubuntu::media::Player::AudioStreamRole audio_role) |
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) |
gstreamer::Playbin::Playbin | ( | ) |
Definition at line 99 of file playbin.cpp.
References pipeline.
gstreamer::Playbin::~Playbin | ( | ) |
Definition at line 145 of file playbin.cpp.
|
static |
bool gstreamer::Playbin::can_play_streams | ( | ) | const |
Definition at line 653 of file playbin.cpp.
void gstreamer::Playbin::create_video_sink | ( | uint32_t | texture_id | ) |
Definition at line 322 of file playbin.cpp.
uint64_t gstreamer::Playbin::duration | ( | ) | const |
Definition at line 421 of file playbin.cpp.
void gstreamer::Playbin::emit_video_dimensions_changed_if_changed | ( | const core::ubuntu::media::video::Dimensions & | new_dimensions | ) |
Definition at line 571 of file playbin.cpp.
|
static |
Translate the AudioStreamRole enum into a string
Definition at line 338 of file playbin.cpp.
std::string gstreamer::Playbin::get_file_content_type | ( | const std::string & | uri | ) | const |
Definition at line 579 of file playbin.cpp.
core::ubuntu::media::video::Dimensions gstreamer::Playbin::get_video_dimensions | ( | ) | const |
Definition at line 550 of file playbin.cpp.
bool gstreamer::Playbin::is_audio_file | ( | const std::string & | uri | ) | const |
Definition at line 620 of file playbin.cpp.
bool gstreamer::Playbin::is_video_file | ( | const std::string & | uri | ) | const |
Definition at line 634 of file playbin.cpp.
gstreamer::Playbin::MediaFileType gstreamer::Playbin::media_file_type | ( | ) | const |
Definition at line 648 of file playbin.cpp.
gstreamer::Bus & gstreamer::Playbin::message_bus | ( | ) |
Definition at line 277 of file playbin.cpp.
void gstreamer::Playbin::on_new_message | ( | const Bus::Message & | message | ) |
void gstreamer::Playbin::on_new_message_async | ( | const Bus::Message & | message | ) |
Definition at line 226 of file playbin.cpp.
References gstreamer::Bus::Message::detail, gstreamer::Bus::Message::Detail::error_warning_info, gstreamer::Bus::Message::message, gstreamer::Bus::Message::source, gstreamer::Bus::Message::Detail::state_changed, gstreamer::Bus::Message::Detail::tag, gstreamer::Bus::Message::Detail::Tag::tag_list, and gstreamer::Bus::Message::type.
media::Player::Orientation gstreamer::Playbin::orientation_lut | ( | const gchar * | orientation | ) |
Definition at line 360 of file playbin.cpp.
|
static |
Definition at line 77 of file playbin.cpp.
uint64_t gstreamer::Playbin::position | ( | ) | const |
Definition at line 401 of file playbin.cpp.
void gstreamer::Playbin::process_message_element | ( | GstMessage * | message | ) |
Definition at line 192 of file playbin.cpp.
void gstreamer::Playbin::reset | ( | ) |
Definition at line 154 of file playbin.cpp.
void gstreamer::Playbin::reset_pipeline | ( | ) |
Definition at line 169 of file playbin.cpp.
bool gstreamer::Playbin::seek | ( | const std::chrono::microseconds & | ms | ) |
Definition at line 540 of file playbin.cpp.
void gstreamer::Playbin::set_audio_stream_role | ( | core::ubuntu::media::Player::AudioStreamRole | new_audio_role | ) |
Sets the new audio stream role on the pulsesink in playbin
Definition at line 375 of file playbin.cpp.
void gstreamer::Playbin::set_lifetime | ( | core::ubuntu::media::Player::Lifetime | ) |
Definition at line 396 of file playbin.cpp.
bool gstreamer::Playbin::set_state_and_wait | ( | GstState | new_state | ) |
Definition at line 480 of file playbin.cpp.
void gstreamer::Playbin::set_uri | ( | const std::string & | uri, |
const core::ubuntu::media::Player::HeadersType & | headers = core::ubuntu::media::Player::HeadersType() , |
||
bool | do_pipeline_reset = true |
||
) |
Definition at line 430 of file playbin.cpp.
void gstreamer::Playbin::set_volume | ( | double | new_volume | ) |
Definition at line 332 of file playbin.cpp.
void gstreamer::Playbin::setup_pipeline_for_audio_video | ( | ) |
Definition at line 282 of file playbin.cpp.
void gstreamer::Playbin::setup_source | ( | GstElement * | source | ) |
Definition at line 447 of file playbin.cpp.
|
static |
Definition at line 89 of file playbin.cpp.
std::string gstreamer::Playbin::uri | ( | ) | const |
Definition at line 469 of file playbin.cpp.
gstreamer::Bus gstreamer::Playbin::bus |
core::ubuntu::media::video::Dimensions gstreamer::Playbin::cached_video_dimensions |
core::Signal<void> gstreamer::Playbin::client_disconnected |
MediaFileType gstreamer::Playbin::file_type |
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_async |
core::Signal<core::ubuntu::media::Player::Orientation> gstreamer::Playbin::on_orientation_changed |
core::Signal<core::ubuntu::media::Player::PlaybackStatus> gstreamer::Playbin::on_playback_status_changed |
core::Signal<std::pair<Bus::Message::Detail::StateChanged,std::string> > gstreamer::Playbin::on_state_changed |
core::Signal<Bus::Message::Detail::Tag> gstreamer::Playbin::on_tag_available |
core::Signal<core::ubuntu::media::video::Dimensions> gstreamer::Playbin::on_video_dimensions_changed |
core::Signal<Bus::Message::Detail::ErrorWarningInfo> gstreamer::Playbin::on_warning |
GstElement* gstreamer::Playbin::pipeline |
core::ubuntu::media::Player::Lifetime gstreamer::Playbin::player_lifetime |
core::ubuntu::media::Player::HeadersType gstreamer::Playbin::request_headers |
struct { ... } gstreamer::Playbin::signals |