#include <player.h>
Classes | |
struct | Client |
struct | Configuration |
Public Types | |
enum | PlaybackStatus { null, ready, playing, paused, stopped } |
enum | LoopStatus { none, track, playlist } |
enum | AudioStreamRole { alarm, alert, multimedia, phone } |
enum | Orientation { rotate0, rotate90, rotate180, rotate270 } |
enum | Lifetime { normal, resumable } |
enum | Error { no_error, resource_error, format_error, network_error, access_denied_error, service_missing_error } |
typedef double | PlaybackRate |
typedef double | Volume |
typedef uint32_t | PlayerKey |
typedef void * | GLConsumerWrapperHybris |
typedef std::map< std::string, std::string > | HeadersType |
typedef void(* | FrameAvailableCbHybris) (GLConsumerWrapperHybris wrapper, void *context) |
typedef void(* | FrameAvailableCb) (void *context) |
typedef void(* | PlaybackCompleteCb) (void *context) |
Public Member Functions | |
Player (const Player &)=delete | |
virtual | ~Player () |
Player & | operator= (const Player &)=delete |
bool | operator== (const Player &) const =delete |
virtual std::shared_ptr< TrackList > | track_list ()=0 |
virtual PlayerKey | key () const =0 |
virtual bool | open_uri (const Track::UriType &uri)=0 |
virtual bool | open_uri (const Track::UriType &uri, const HeadersType &)=0 |
virtual void | create_video_sink (uint32_t texture_id)=0 |
virtual GLConsumerWrapperHybris | gl_consumer () const =0 |
virtual void | next ()=0 |
virtual void | previous ()=0 |
virtual void | play ()=0 |
virtual void | pause ()=0 |
virtual void | stop ()=0 |
virtual void | seek_to (const std::chrono::microseconds &offset)=0 |
virtual void | set_frame_available_callback (FrameAvailableCb cb, void *context)=0 |
virtual void | set_playback_complete_callback (PlaybackCompleteCb cb, void *context)=0 |
virtual const core::Property< bool > & | can_play () const =0 |
virtual const core::Property< bool > & | can_pause () const =0 |
virtual const core::Property< bool > & | can_seek () const =0 |
virtual const core::Property< bool > & | can_go_previous () const =0 |
virtual const core::Property< bool > & | can_go_next () const =0 |
virtual const core::Property< bool > & | is_video_source () const =0 |
virtual const core::Property< bool > & | is_audio_source () const =0 |
virtual const core::Property< PlaybackStatus > & | playback_status () const =0 |
virtual const core::Property< LoopStatus > & | loop_status () const =0 |
virtual const core::Property< PlaybackRate > & | playback_rate () const =0 |
virtual const core::Property< bool > & | is_shuffle () const =0 |
virtual const core::Property< Track::MetaData > & | meta_data_for_current_track () const =0 |
virtual const core::Property< Volume > & | volume () const =0 |
virtual const core::Property< PlaybackRate > & | minimum_playback_rate () const =0 |
virtual const core::Property< PlaybackRate > & | maximum_playback_rate () const =0 |
virtual const core::Property< int64_t > & | position () const =0 |
virtual const core::Property< int64_t > & | duration () const =0 |
virtual const core::Property< AudioStreamRole > & | audio_stream_role () const =0 |
virtual const core::Property< Orientation > & | orientation () const =0 |
virtual const core::Property< Lifetime > & | lifetime () const =0 |
virtual core::Property< LoopStatus > & | loop_status ()=0 |
virtual core::Property< PlaybackRate > & | playback_rate ()=0 |
virtual core::Property< bool > & | is_shuffle ()=0 |
virtual core::Property< Volume > & | volume ()=0 |
virtual core::Property< AudioStreamRole > & | audio_stream_role ()=0 |
virtual core::Property< Lifetime > & | lifetime ()=0 |
virtual const core::Signal< int64_t > & | seeked_to () const =0 |
virtual const core::Signal< void > & | end_of_stream () const =0 |
virtual core::Signal< PlaybackStatus > & | playback_status_changed ()=0 |
virtual const core::Signal< uint64_t > & | video_dimension_changed () const =0 |
virtual const core::Signal< Error > & | error () const =0 |
Protected Member Functions | |
Player () | |
typedef void(* core::ubuntu::media::Player::FrameAvailableCb) (void *context) |
typedef void(* core::ubuntu::media::Player::FrameAvailableCbHybris) (GLConsumerWrapperHybris wrapper, void *context) |
typedef void* core::ubuntu::media::Player::GLConsumerWrapperHybris |
typedef std::map<std::string, std::string> core::ubuntu::media::Player::HeadersType |
typedef void(* core::ubuntu::media::Player::PlaybackCompleteCb) (void *context) |
typedef double core::ubuntu::media::Player::PlaybackRate |
typedef uint32_t core::ubuntu::media::Player::PlayerKey |
typedef double core::ubuntu::media::Player::Volume |
|
delete |
|
virtual |
Definition at line 41 of file player.cpp.
|
protected |
Definition at line 37 of file player.cpp.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerImplementation, and core::ubuntu::media::PlayerStub.
Referenced by media::PlayerSkeleton::Private::handle_create_video_sink().
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Signals all errors and warnings (typically from GStreamer and below)
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerImplementation, and core::ubuntu::media::PlayerStub.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerImplementation, and core::ubuntu::media::PlayerStub.
Referenced by media::PlayerSkeleton::Private::handle_key().
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerImplementation, and core::ubuntu::media::PlayerStub.
Referenced by media::PlayerSkeleton::Private::handle_next().
|
pure virtual |
|
pure virtual |
Implemented in core::ubuntu::media::PlayerImplementation, and core::ubuntu::media::PlayerStub.
|
delete |
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerImplementation, and core::ubuntu::media::PlayerStub.
Referenced by media::PlayerSkeleton::Private::handle_pause(), and media::PlayerSkeleton::Private::handle_play_pause().
|
pure virtual |
Implemented in core::ubuntu::media::PlayerImplementation, and core::ubuntu::media::PlayerStub.
Referenced by media::PlayerSkeleton::Private::handle_play(), and media::PlayerSkeleton::Private::handle_play_pause().
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerImplementation, and core::ubuntu::media::PlayerStub.
Referenced by media::PlayerSkeleton::Private::handle_previous().
|
pure virtual |
Implemented in core::ubuntu::media::PlayerImplementation, and core::ubuntu::media::PlayerStub.
Referenced by media::PlayerSkeleton::Private::handle_seek().
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerImplementation.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerImplementation.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerImplementation.
Referenced by media::PlayerSkeleton::Private::handle_stop().
|
pure virtual |
Implemented in core::ubuntu::media::PlayerImplementation, and core::ubuntu::media::PlayerStub.
|
pure virtual |
Called when the video height/width change. Passes height and width as a bitmask with height in the upper 32 bits and width in the lower 32 bits (both unsigned values)
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.
|
pure virtual |
Implemented in core::ubuntu::media::PlayerStub, and core::ubuntu::media::PlayerSkeleton.