GATE
gate::tech::MediaPlayer Class Reference

Public Types

enum  StatusEnum {
  Status_Unknown = GATE_MEDIAPLAYER_STATUS_UNKONWN , Status_Idle = GATE_MEDIAPLAYER_STATUS_IDLE , Status_Playing = GATE_MEDIAPLAYER_STATUS_PLAYING , Status_Stopped = GATE_MEDIAPLAYER_STATUS_STOPPED ,
  Status_Paused = GATE_MEDIAPLAYER_STATUS_PAUSED , Status_Seeking = GATE_MEDIAPLAYER_STATUS_SEEKING , Status_Recording = GATE_MEDIAPLAYER_STATUS_RECORDING , Status_Error = GATE_MEDIAPLAYER_STATUS_ERROR
}
 
typedef gate_mediaplayer_id_t device_id_t
 
typedef gate_mediaplayer_id_t DeviceId
 
typedef gate_mediaplayer_status_t status_t
 
typedef gate_mediaplayer_status_t Status
 
typedef Delegate2< DeviceId, String const & > callback_delegate_t
 
typedef Delegate2< DeviceId, String const & > CallbackDelegate
 
typedef Map< DeviceId, Stringdevice_map_t
 
typedef Map< DeviceId, StringDeviceMap
 

Public Member Functions

 MediaPlayer (DeviceId playerId)
 
void loadFile (String const &filePath)
 
Status getStatus ()
 
void play ()
 
void stop ()
 
gate_mediaplayer_device_t * c_impl ()
 

Static Public Member Functions

static void enumDevices (CallbackDelegate const &callback)
 
static DeviceMap enumDevices ()
 

The documentation for this class was generated from the following files: